[Devel] [RFC PATCH 0/5] Resend -v2 - Use procfs to change a syscall behavior
Oren Laadan
orenl at cs.columbia.edu
Thu Jul 17 15:42:56 PDT 2008
Eric W. Biederman wrote:
> Alexey Dobriyan <adobriyan at gmail.com> writes:
I seem to not have received any of Alexey's emails... ?
>
>> On Tue, Jul 08, 2008 at 01:24:22PM +0200, Nadia.Derbey at bull.net wrote:
>>> # echo "LONG1 XX" > /proc/self/task/<my_tid>/next_syscall_data
>> Same stuff.
>>
>> There is struct task_struct::did_exec , what about it?
>>
>> Also, patches are about de-serializing, how serializing from userspace looks
>> like?
>> You freezed group of processes, then what?
>>
>> How, for example, dump all VMAs correctly?
>> [prepares counter-example]
>
> Alexey userspace vs a kernel space implementation is the wrong argument.
>
> It is clearly established that the current user space interfaces are
> insufficient to do the job. So we need to implement something in the kernel.
>
> Further I have heard of no one suggesting running a single kernel on multiple
> machines. Therefore there no one seems to be doing this entirely in the kernel
> and so we need a user space component.
I'm not sure I understand this argument ?
In a kernel implementation, the component will merely open a file descriptor
(to which the data will be streamed), freeze the container and invoke a
system call. In a userland implementation, the component will do most of
the work by continuously probing the kernel for information about the
processes that are being checkpointed.
So, of course we need a "component" - but what does that component do ?
> So the question should not be user space vs. kernel space but can we build clean
> interfaces for checkpoint/restart? What will those interfaces be?
My question is why build a set of interfaces to export this and that from
the kernel to user space ? if a kernel implementation (with minimal user
space support) is chosen, then information extraction (and restoration) is
straightforward and we don't get ourselves tied until the end of times to
API exported to userland.
The output of the module will be a binary (like a core dump) that can be
used by the same module to restart. User utilities will be available to
inspect the contents (for whatever reason - like a debugger can inspect a
core dump), and moreover to convert between old and new formats when moving
from older to newer kernels.
By doing so, we avoid many API issues - design, complexity, contents, and
the amount of interfaces to be added.
By doing so, we also gain much in terms of atomicity, possibility to add
optimizations and improve performance, as well as add features as we wish,
without the burden of commitments to userspace.
I think the kernel space vs. user space must be the first issue on our
table to solve, as it has a wide impact on the rest of the work.
Oren.
>
> Although I think it is good that we are seeing more people play with this as
> that should mean that our pool of people for doing code review on the implementation
> should be reasonable.
>
> Eric
> _______________________________________________
> Containers mailing list
> Containers at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/containers
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list