On Tuesday 25 November 2008 23:17 Oren Laadan wrote:
> Hi,
>
> Andrey Mirkin wrote:
> > All work (process tree creation and process state restore) now can be
> > done in kernel.
> >
> > Task structure in image file is extended with 2 fields to make in-kern
On Tuesday 25 November 2008 23:02 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > These patchset introduces OpenVZ kernel based restart procedure on top of
> > Oren's checkpoint/restart patchset v9.
> >
> > For restarting a set of processes one will need to call sys_
On Tuesday 25 November 2008 03:45 Alexey Dobriyan wrote:
> On Mon, Nov 24, 2008 at 06:39:35PM +0300, Andrey Mirkin wrote:
> > +static int cr_rstr_task_struct(struct cr_ctx *ctx, struct cr_hdr_task
> > *ht) +{
> > + struct task_struct *t = current;
> > + char *buf
On Monday 24 November 2008 19:02 Louis Rilling wrote:
> On 24/11/08 18:39 +0300, Andrey Mirkin wrote:
> > Introduce 2 flags for user-space and in-kernel process creation during
> > restart procedure.
> > Also a stub function for in-kernel process restart is introduced.
>
&g
Introduce 2 flags for user-space and in-kernel process creation during
restart procedure.
Also a stub function for in-kernel process restart is introduced.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Makefile|2 +-
checkpoint/restart.c
These patchset introduces OpenVZ kernel based restart procedure on top of
Oren's checkpoint/restart patchset v9.
For restarting a set of processes one will need to call sys_restart() once with
new flag CR_CTX_RSTR_IN_KERNEL. All work will be done in kernel in this case.
Small changes to image for
All work (process tree creation and process state restore) now can be
done in kernel.
Task structure in image file is extended with 2 fields to make in-kernel
process creation more easy.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/checkpoint.c| 17
chec
Oren,
Can you please check your git server. I can't update to the latest version:
# git-pull
fatal: The remote end hung up unexpectedly
git-clone exits with the same error.
Andrey
On Thursday 30 October 2008 16:51 Oren Laadan wrote:
> Basic checkpoint-restart [C/R]: v8 adds support for "exter
On Monday 27 October 2008 17:39 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > On Monday 20 October 2008 19:55 Dave Hansen wrote:
> >> On Mon, 2008-10-20 at 16:14 +0400, Andrey Mirkin wrote:
> >>> Right now my patchset (v2) provides an ability to checkpoint and
>
On Monday 27 October 2008 18:58 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > The whole tree of processes can be checkpointed and restarted now.
> > Shared objects are not supported yet.
> >
> > Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
> > -
On Monday 20 October 2008 21:02 Dave Hansen wrote:
> On Sat, 2008-10-18 at 03:11 +0400, Andrey Mirkin wrote:
> > +typedef struct cpt_context
> > +{
> > + pid_t pid;/* should be changed to ctid later */
> > + int ctx_id; /* c
On Sunday 26 October 2008 01:10 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > On Thursday 23 October 2008 17:57 Dave Hansen wrote:
> >> On Thu, 2008-10-23 at 13:00 +0400, Andrey Mirkin wrote:
> >>>>>>> It is not related to the freezer code actually.
&g
On Monday 20 October 2008 20:37 Daniel Lezcano wrote:
> Oren Laadan wrote:
> > Daniel Lezcano wrote:
> >> Louis Rilling wrote:
> >>> On Fri, Oct 17, 2008 at 04:33:03PM -0700, Dave Hansen wrote:
> >>>> On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin w
On Monday 20 October 2008 21:17 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > On Saturday 18 October 2008 03:33 Dave Hansen wrote:
> >> On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin wrote:
> >>> This patchset introduces kernel based checkpointing/restart as it
On Monday 20 October 2008 19:55 Dave Hansen wrote:
> On Mon, 2008-10-20 at 16:14 +0400, Andrey Mirkin wrote:
> > Right now my patchset (v2) provides an ability to checkpoint and restart
> > a group of processes. The process of checkpointing and restart can be
> > initiated
On Monday 20 October 2008 21:48 Serge E. Hallyn wrote:
> Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > + t->cpt_uid = tsk->uid;
> > + t->cpt_euid = tsk->euid;
> > + t->cpt_suid = tsk->suid;
> > + t->cpt_fsuid = tsk->fsuid;
> > +
On Monday 20 October 2008 15:02 Louis Rilling wrote:
> Hi,
>
> On Sat, Oct 18, 2008 at 03:11:33AM +0400, Andrey Mirkin wrote:
> > Functions to dump task struct, fpu state and registers are added.
> > All IDs are saved from the POV of process (container) namespace.
>
&
On Thursday 23 October 2008 17:51 Dave Hansen wrote:
> On Thu, 2008-10-23 at 12:43 +0400, Andrey Mirkin wrote:
> > > > +#ifdef CONFIG_X86
> > > > + if (pmd_huge(*pmd)) {
> > > > + eprintk("page_huge\n&quo
On Thursday 23 October 2008 17:49 Dave Hansen wrote:
> On Thu, 2008-10-23 at 13:54 +0400, Andrey Mirkin wrote:
> > We are putting special structure on stack, which is used at the very end
> > of the whole restart procedure to restore complex states (ptrace is one
> > of suc
On Thursday 23 October 2008 17:57 Dave Hansen wrote:
> On Thu, 2008-10-23 at 13:00 +0400, Andrey Mirkin wrote:
> > > >>> It is not related to the freezer code actually.
> > > >>> That is needed to restart syscalls. Right now I don't have a code
>
On Monday 20 October 2008 17:25 Louis Rilling wrote:
> On Sat, Oct 18, 2008 at 03:11:36AM +0400, Andrey Mirkin wrote:
> > Functions to restart process, restore its state, fpu and registers are
> > added.
>
> [...]
>
> > diff --git a/checkpoint/rst_process.c b/checkpo
On Wednesday 22 October 2008 16:47 Cedric Le Goater wrote:
> >>> +ENTRY(i386_ret_from_resume)
> >>> + CFI_STARTPROC
> >>> + pushl %eax
> >>> + CFI_ADJUST_CFA_OFFSET 4
> >>> + call schedule_tail
> >>> + GET_THREAD_INFO(%ebp)
> >>> + popl %eax
> >>> + CFI_ADJUST_CFA_OFFSET -4
> >>> + movl (%esp), %ea
On Wednesday 22 October 2008 19:25 Oren Laadan wrote:
> Andrey Mirkin wrote:
> > On Wednesday 22 October 2008 13:25 Louis Rilling wrote:
> >> On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote:
> >>> On Monday 20 October 2008 13:23 Cedric Le Goa
On Wednesday 22 October 2008 14:46 Louis Rilling wrote:
> On Wed, Oct 22, 2008 at 02:12:12PM +0400, Andrey Mirkin wrote:
> > On Wednesday 22 October 2008 13:25 Louis Rilling wrote:
> > > On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote:
> > > > On Monda
On Monday 20 October 2008 21:21 Dave Hansen wrote:
> On Sat, 2008-10-18 at 03:11 +0400, Andrey Mirkin wrote:
> > +static void page_get_desc(struct vm_area_struct *vma, unsigned long
> > addr, + struct page_desc *pdesc, cpt_context_t *
> > ctx)
On Wednesday 22 October 2008 13:25 Louis Rilling wrote:
> On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote:
> > On Monday 20 October 2008 13:23 Cedric Le Goater wrote:
> > > Hello Andrey !
> > >
> > > > diff --git a/arch/x86/kernel/entry_32.S b/a
On Monday 20 October 2008 16:25 Louis Rilling wrote:
> On Sat, Oct 18, 2008 at 03:11:34AM +0400, Andrey Mirkin wrote:
> > Functions to dump mm struct, VMAs and mm context are added.
>
> Again, a few little comments.
>
> [...]
>
> > diff --git a/checkpoint/cpt_mm.c
On Monday 20 October 2008 13:23 Cedric Le Goater wrote:
> Hello Andrey !
>
> > diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
> > index 109792b..a4848a3 100644
> > --- a/arch/x86/kernel/entry_32.S
> > +++ b/arch/x86/kernel/entry_32.S
> > @@ -225,6 +225,7 @@ ENTRY(ret_from_fork
On Saturday 18 October 2008 03:33 Dave Hansen wrote:
> On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin wrote:
> > This patchset introduces kernel based checkpointing/restart as it is
> > implemented in OpenVZ project. This patchset has limited functionality
> > and are able
Functions to restore mm, VMAs and mm context are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Makefile |2 +-
checkpoint/checkpoint.h |1 +
checkpoint/cpt_image.h |5 +
checkpoint/rst_mm.c
The whole tree of processes can be checkpointed and restarted now.
Shared objects are not supported yet.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/cpt_image.h |2 +
checkpoint/cpt_process.c | 24 +
checkpoint/rst_process.c
takes as the first argument
a container ID (right now it will not be used).
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
Makefile |2 +-
arch/x86/kernel/syscall_table_32.S |2 +
checkpoint/Makefile|1 +
checkpoint
Functions to dump mm struct, VMAs and mm context are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
arch/x86/mm/hugetlbpage.c |2 +
checkpoint/Makefile |2 +-
checkpoint/checkpoint.h |1 +
checkpoint/cpt_image.h| 61 +++
checkpoint/cpt_mm.c
Add functions for context allocation/destroy.
Introduce functions to read/write image.
Introduce image header and object header.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/checkpoint.h | 40 +++
checkpoint/cpt_image.h
Actually, right now this function will restart only one process.
Function to read head of dump file is introduced.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Makefile |2 +-
checkpoint/checkpoint.h |1 +
checkpoint/restart.c
Functions to restart process, restore its state, fpu and registers are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
arch/x86/kernel/entry_32.S | 21 +++
arch/x86/kernel/process_32.c |3 +
checkpoint/Makefile |3 +-
checkpoint/checkpoint.h
Actually right now we are going to dump only one process.
Function for dumping head of image file are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Makefile |2 +-
checkpoint/checkpoint.c | 79 +++
chec
Functions to dump task struct, fpu state and registers are added.
All IDs are saved from the POV of process (container) namespace.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Makefile |2 +-
checkpoint/checkpoint.c |2 +-
checkpoint/checkpoint.h
A config option CONFIG_CHECKPOINT is introduced.
New structure cpt_operations is introduced to store pointers to
checkpoint/restart functions from module.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
checkpoint/Kconfig |7 ++
checkpoint/Makefile |4 +++
chec
These patchset introduces kernel based checkpointing/restart as it is
implemented in OpenVZ project. This version (v2) supports multiple
processes with simple private memory and open files (regular files).
Todo:
- Create processes with the same PID during restart
- Add support for x86-64
- Add
On Wednesday 03 September 2008 15:44 Cedric Le Goater wrote:
> Andrey Mirkin wrote:
> > Right now they just return -ENOSYS. Later they will provide functionality
> > to checkpoint and restart a container.
> >
> > Both syscalls take as arguments a file descriptor and fla
On Thursday 04 September 2008 18:42 Serge E. Hallyn wrote:
> Quoting Oren Laadan ([EMAIL PROTECTED]):
> > Create trivial sys_checkpoint and sys_restore system calls. They will
> > enable to checkpoint and restart an entire container, to and from a
> > checkpoint image file descriptor.
> >
> > The s
On Sunday 31 August 2008 21:34 Cedric Le Goater wrote:
> Oren Laadan wrote:
> > Dave, Serge:
> >
> > I'm currently away so I must keep this short. I think we have so far
> > more discussion than an actual problem. I'm happy to coordinate with
> > every interested party to eventually see this work g
On Wednesday 03 September 2008 18:27 Serge E. Hallyn wrote:
> Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > A config option CONFIG_CHECKPOINT is introduced.
> > New structure cpt_operations is introduced to store pointers to
> > checkpoint/restart functions from module.
&g
On Wednesday 03 September 2008 18:26 Cedric Le Goater wrote:
> > Forgot a global comment: you will probably get the same (rather pointless
> > for a proof of concept, IMHO) requests as Oren got, to
> > 1) improve coding style:
> > a) especially avoid error handling like:
> > err = foo();
> >
On Wednesday 03 September 2008 18:23 Serge E. Hallyn wrote:
> Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > Actually right now we are going to dump only one process.
> > Function for dumping head of image file are added.
> >
> > Signed-off-by: Andrey Mirkin <[EMAI
On Wednesday 03 September 2008 18:13 Cedric Le Goater wrote:
> > +void context_release(struct cpt_context *ctx)
> > +{
> > + ctx->ctx_state = CPT_CTX_ERROR;
> > +
> > + if (ctx->file)
> > + fput(ctx->file);
> > + kfree(ctx);
> > +}
> > +
> > +static void context_put(struct cpt_conte
On Wednesday 03 September 2008 18:06 Louis Rilling wrote:
> On Wed, Sep 03, 2008 at 03:49:51PM +0200, Louis Rilling wrote:
> > On Wed, Sep 03, 2008 at 02:57:47PM +0400, Andrey Mirkin wrote:
> > > This patchset introduces kernel based checkpointing/restart as it is
> >
On Wednesday 03 September 2008 16:29 Matthieu Fertré wrote:
> Andrey Mirkin a écrit :
> > Add functions for context allocation/destroy.
> > Introduce functions to read/write image.
> > Introduce image header and object header.
> >
> > Signed-off-by
On Wednesday 03 September 2008 16:28 Cedric Le Goater wrote:
> Andrey Mirkin wrote:
> > This patchset introduces kernel based checkpointing/restart as it is
> > implemented in OpenVZ project. This patchset has limited functionality
> > and are able to checkpoint/restar
On Wednesday 03 September 2008 17:56 Louis Rilling wrote:
> On Wed, Sep 03, 2008 at 02:57:50PM +0400, Andrey Mirkin wrote:
> > Add functions for context allocation/destroy.
> > Introduce functions to read/write image.
> > Introduce image header and object header.
>
> [
On Wednesday 03 September 2008 16:15 Cedric Le Goater wrote:
> Andrey Mirkin wrote:
> > On Sunday 31 August 2008 21:34 Cedric Le Goater wrote:
> >> Oren Laadan wrote:
> >>> Dave, Serge:
> >>>
> >>> I'm currently away so I must keep this
Actually right now we are going to dump only one process.
Function for dumping head of image file are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/Makefile |2 +-
cpt/checkpoint.c | 74 ++
cpt/cpt.h
On Friday 22 August 2008 01:37 Serge E. Hallyn wrote:
> Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > On Friday 01 August 2008 01:28 Serge E. Hallyn wrote:
> > > Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > > > Hello Oren,
> > > >
> > > >
Functions to dump mm struct, VMAs and mm context are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
arch/x86/mm/hugetlbpage.c |2 +
cpt/Makefile |2 +-
cpt/cpt.h |1 +
cpt/cpt_image.h | 61 +++
cpt/cpt_mm.c
Functions to dump task struct, fpu state and registers are added.
All IDs are saved from the POV of process (container) namespace.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/Makefile |2 +-
cpt/checkpoint.c |2 +-
cpt/cpt.h |1 +
cpt/cpt_image.h
Actually, right now this function will restart only one process.
Function to read head of dump file is introduced.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/Makefile |2 +-
cpt/cpt.h |1 +
cpt/restart.c
Functions to restart process, restore its state, fpu and registers are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
arch/x86/kernel/entry_32.S | 21 +++
arch/x86/kernel/process_32.c |3 +
cpt/Makefile |3 +-
cpt/cpt.h|2
A config option CONFIG_CHECKPOINT is introduced.
New structure cpt_operations is introduced to store pointers to
checkpoint/restart functions from module.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/Kconfig|7 +++
cpt/Makefile |4
cpt/cpt.h
Add functions for context allocation/destroy.
Introduce functions to read/write image.
Introduce image header and object header.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/cpt.h | 37
cpt/cpt_image.h | 63 +++
cpt
Functions to restore mm, VMAs and mm context are added.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
cpt/Makefile |2 +-
cpt/cpt.h |1 +
cpt/cpt_image.h |5 +
cpt/rst_mm.c | 320 +
cpt/rst_pro
This patchset introduces kernel based checkpointing/restart as it is
implemented in OpenVZ project. This patchset has limited functionality and
are able to checkpoint/restart only single process. Recently Oren Laaden
sent another kernel based implementation of checkpoint/restart. The main
differenc
takes as the first argument
a container ID (right now it will not be used).
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
---
Makefile |2 +-
arch/x86/kernel/syscall_table_32.S |2 +
cpt/Makefile |1 +
cpt
On Friday 01 August 2008 01:28 Serge E. Hallyn wrote:
> Quoting Andrey Mirkin ([EMAIL PROTECTED]):
> > Hello Oren,
> >
> > That is great, that you have proposed your version of
> > checkpointing/restart. In a few days I will send a patchset with OpenVZ
> > chec
Hello Oren,
That is great, that you have proposed your version of checkpointing/restart.
In a few days I will send a patchset with OpenVZ checkpointing/restart.
So, we will be able to compare our approaches and take the best parts from
both.
Regards,
Andrey
On Wednesday 30 July 2008 07:24 Oren
From: Andrey Mirkin <[EMAIL PROTECTED]>
Right now futexfs and inotifyfs have one magic 0xBAD1DEA, that looks a little
bit confusing.
Use 0xBAD1DEA as magic for futexfs and 0x2BAD1DEA as magic for inotifyfs.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
fs/inotify_user.
From: Andrey Mirkin <[EMAIL PROTECTED]>
Right now futexfs and inotifyfs have one magic 0xBAD1DEA, that looks a little
bit confusing.
Use 0xBAD1DEA as magic for futexfs and 0x2BAD1DEA as magic for inotifyfs.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
diff --git a/fs/inot
From: Andrey Mirkin <[EMAIL PROTECTED]>
Right now register edi is just cleared before calling do_exit.
That is wrong because correct return value will be ignored.
Value from rax should be copied to rdi instead of clearing edi.
Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]>
-
68 matches
Mail list logo