From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [RFC v9][PATCH 12/13] Checkpoint multiple processes Date: Thu, 13 Nov 2008 21:41:30 -0600 Message-ID: <20081114034130.GA14171@us.ibm.com> References: <1226335060-7061-1-git-send-email-orenl@cs.columbia.edu> <1226335060-7061-13-git-send-email-orenl@cs.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1226335060-7061-13-git-send-email-orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Oren Laadan Cc: Andrew Morton , Linus Torvalds , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner , Dave Hansen , Ingo Molnar , "H. Peter Anvin" , Alexander Viro List-Id: linux-api@vger.kernel.org Quoting Oren Laadan (orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org): > Checkpointing of multiple processes works by recording the tasks tree > structure below a given task (usually this task is the container init). > > For a given task, do a DFS scan of the tasks tree and collect them > into an array (keeping a reference to each task). Using DFS simplifies > the recreation of tasks either in user space or kernel space. For each > task collected, test if it can be checkpointed, and save its pid, tgid, > and ppid. > > The actual work is divided into two passes: a first scan counts the > tasks, then memory is allocated and a second scan fills the array. > > The logic is suitable for creation of processes during restart either > in userspace or by the kernel. > > Currently we ignore threads and zombies, as well as session ids. > > Signed-off-by: Oren Laadan Looks good. Acked-by: Serge Hallyn thanks, -serge -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html