Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oren Laadan
Date: Wednesday, October 8, 2008 - 2:59 am

Serge E. Hallyn wrote:

As far as I can see, there isn't an inherent reason not to handle
kernel threads. However, I never looked deep into the problem.

The main issue that I can see with it is similar to what the
hibernation developers must tackle anyway - how to freeze kernel
threads when some of them may still be needed to take the system
down.

Assuming that is solved, then we're left with how to freeze the
kernel threads in a state that makes sense for a restart; for
regular tasks this is right before going back to user-land (*),
for kernel threads it may not be the best place :)

(*) however, tasks that are ptraced or in the middle of a vfork
will require special treatment - since upon freezing they cannot
be forced to that convenient position; so upon restart there must
be special code to make their behavior after restart compatible
with what they would have done originally - probably by emulation
as opposed to rebuilding their old kernel stack. For instance,
if a task was stopped due to ptrace before return from a syscall,
then upon restart it should return to that exact state.

So I'd assume that kernel threads could be treated in a similar
manner by special-casing, if necessary.

Question: I'd assume that at least for some of the kernel threads
a simple re-launch at restart will do; how many really require that
we save and restore their state ?

Oren

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Oren Laadan, (Sat Sep 13, 4:05 pm)
[RFC v5][PATCH 3/8] x86 support for checkpoint/restart, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 4/8] Dump memory address space, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 5/8] Restore memory address space, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 7/8] Infrastructure for shared objects, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 8/8] Dump open file descriptors, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Sat Sep 13, 4:22 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Bastian Blank, (Sun Sep 14, 2:51 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Oren Laadan, (Sun Sep 14, 8:40 am)
Re: [RFC v5][PATCH 5/8] Restore memory address space, Dave Hansen, (Mon Sep 15, 12:14 pm)
Re: [RFC v5][PATCH 3/8] x86 support for checkpoint/restart, Serge E. Hallyn, (Mon Sep 15, 2:31 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Tue Sep 16, 8:54 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Tue Sep 16, 9:55 am)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects, Serge E. Hallyn, (Tue Sep 16, 1:54 pm)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects, Serge E. Hallyn, (Tue Sep 16, 3:09 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Serge E. Hallyn, (Tue Sep 16, 4:03 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Serge E. Hallyn, (Tue Sep 16, 4:08 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Tue Sep 16, 5:11 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Serge E. Hallyn, (Tue Sep 16, 9:56 pm)
Re: [RFC v5][PATCH 4/8] Dump memory address space, MinChan Kim, (Tue Sep 16, 11:48 pm)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Serge E. Hallyn, (Wed Sep 17, 7:16 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Mon Sep 22, 8:31 am)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Dave Hansen, (Mon Sep 22, 9:02 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Serge E. Hallyn, (Wed Sep 24, 2:42 pm)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Cedric Le Goater, (Thu Sep 25, 5:58 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Oren Laadan, (Wed Oct 8, 2:59 am)