All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Mirkin <major@openvz.org>
To: Oren Laadan <orenl@cs.columbia.edu>
Cc: Andrey Mirkin <major@openvz.org>,
	containers@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] In-kernel process restart
Date: Wed, 26 Nov 2008 15:44:24 +0400	[thread overview]
Message-ID: <200811261444.26345.major@openvz.org> (raw)
In-Reply-To: <492C59DD.5070401@cs.columbia.edu>

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_restart()
> > once with new flag CR_CTX_RSTR_IN_KERNEL. All work will be done in kernel
> > in this case.
> >
> > Small changes to image format are required to make in-kernel process
> > creation more easy.
> >
> > Oren, please take a look on this patchset. I've tried to port OpenVZ
> > functionality on top of yours with minimal changes.
>
> Thanks, Andrey. The patch looks simple and good.
>
> Did you look at my (user-space) process creation code ?  specifically, it
> uses the task-pids array (that is saved during checkpoint) to figure out
> how many children a task has to spawn and their corresponding pids.

Yes, I've take a look on mktree tool. The algorithm of process creation is 
quite clear.

> Is there a particular reason that you chose not to use that data during
> restart ?  eventually, you'll need to add the rest of it, too, to the task
> data, like you did with the number of children in this patch.

Agree, I'll rework my patchset to use already existing data.

> Instead, since the data is available and the logic is available, we can
> have each new thread call do_restart_task(), and the container init
> should call do_restart_root().
>
> What do you think ?  I can go ahead and make the changes on top of your
> patch.

I'll take a closer look on these functions and maybe we can use them for 
created threads too. But from our experience during in-kernel process 
creation and restore it is needed to perfrorm some restore procedures when 
process is inactive. That is why I think we can't reuse all existing code for 
in-kernel restart. Anyway I'll check everything once again.

Andrey

  reply	other threads:[~2008-11-26 11:44 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 15:39 [PATCH 0/2] In-kernel process restart Andrey Mirkin
2008-11-24 15:39 ` [PATCH 1/2] Add flags for user-space and in-kernel process creation Andrey Mirkin
2008-11-24 15:39   ` [PATCH 2/2] Add support for in-kernel process creation during restart Andrey Mirkin
2008-11-25  0:45     ` Alexey Dobriyan
     [not found]       ` <20081125004024.GA4440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-11-26  5:07         ` Andrey Mirkin
2008-11-26  5:07       ` Andrey Mirkin
2008-11-25 20:17     ` Oren Laadan
     [not found]       ` <492C5D74.7040302-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2008-11-26 11:58         ` Andrey Mirkin
2008-11-26 11:58       ` Andrey Mirkin
     [not found]     ` <1227541175-30301-3-git-send-email-major-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-11-25  0:45       ` Alexey Dobriyan
2008-11-25 20:17       ` Oren Laadan
     [not found]   ` <1227541175-30301-2-git-send-email-major-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-11-24 15:39     ` Andrey Mirkin
2008-11-24 16:02     ` [PATCH 1/2] Add flags for user-space and in-kernel process creation Louis Rilling
2008-11-24 16:02       ` Louis Rilling
2008-11-26  4:55       ` Andrey Mirkin
     [not found]       ` <20081124160211.GE27238-Hu8+6S1rdjywhHL9vcZdMVaTQe2KTcn/@public.gmane.org>
2008-11-26  4:55         ` Andrey Mirkin
2008-11-25 20:02 ` [PATCH 0/2] In-kernel process restart Oren Laadan
2008-11-26 11:44   ` Andrey Mirkin [this message]
     [not found]   ` <492C59DD.5070401-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2008-11-26 11:44     ` Andrey Mirkin
     [not found] ` <1227541175-30301-1-git-send-email-major-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-11-24 15:39   ` [PATCH 1/2] Add flags for user-space and in-kernel process creation Andrey Mirkin
2008-11-25 20:02   ` [PATCH 0/2] In-kernel process restart Oren Laadan
  -- strict thread matches above, loose matches on Subject: below --
2008-11-24 15:39 Andrey Mirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811261444.26345.major@openvz.org \
    --to=major@openvz.org \
    --cc=containers@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=orenl@cs.columbia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.