public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: kernel upgrade on the fly
@ 2002-06-20 20:40 Jesse Pollard
  0 siblings, 0 replies; 11+ messages in thread
From: Jesse Pollard @ 2002-06-20 20:40 UTC (permalink / raw)
  To: linux-kernel

zaimi@pegasus.rutgers.edu:
> 
> Thanks for the responses especially Rob. I was trying to find previous
> threads about this and could not find them. Agreed, swsusp is a step
> further to that goal; the way that memory is saved though may not make it
> necessarily easier, at least in the current state of swsusp.
> 
> As you were mentioning, the processes information needs
> to be summarised and saved in such a way that the new kernel can pick up
> and construct its own queues of processes independent on the differences
> between the kernels being swapped.
> 
> Well, this does touch the idea of having migrating processes from one
> machine to others in a network. In fact, I dont understand why is it so
> hard to reparent a process. If it can be reparented within a machine, then
> it can migrate to other machines as well, no?

No.

Reparenting a process only changes the identity of the parent reference of a
process.

Migrating to another machine has to handle (at a minimum):

1. open files - file id, file pointer values must be moved.
2. network connections must be redirected, existing queues must be transferred
3. shared memory segment references must be transferred, possibly even the
   file referenced by mmap operations (see item 5)
4. semaphores must be transferred
5. disk files may have to be transferred (currently open files in /tmp ?)
6. pipes to other processes must be re-established, as the current contents
   of any pipe buffers, and even the other process(s) attached to the pipe
7. process kernel stack must be preserved (current syscall activity?) and
   process control block state
8. the curren process data must be transferred (memory image, shared
   library references)
9. recreating the same/equivalent process context (pid, ppid,uid,gid, and
   all the kernel setup may/will have to be transferred)

A lot of things NOT mentioned (what about the active buffer cache for open
files... shared file access...)
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: kernel upgrade on the fly
@ 2002-06-20 20:19 zaimi
  2002-06-21 13:42 ` Rob Landley
  0 siblings, 1 reply; 11+ messages in thread
From: zaimi @ 2002-06-20 20:19 UTC (permalink / raw)
  To: linux-kernel, Rob Landley

Thanks for the responses especially Rob. I was trying to find previous
threads about this and could not find them. Agreed, swsusp is a step
further to that goal; the way that memory is saved though may not make it
necessarily easier, at least in the current state of swsusp.

As you were mentioning, the processes information needs
to be summarised and saved in such a way that the new kernel can pick up
and construct its own queues of processes independent on the differences
between the kernels being swapped.

Well, this does touch the idea of having migrating processes from one
machine to others in a network. In fact, I dont understand why is it so
hard to reparent a process. If it can be reparented within a machine, then
it can migrate to other machines as well, no?

Rob, I am going to the Newark campus FYI, and have interests in some AI
stuff.
Thanks again,

Adi


^ permalink raw reply	[flat|nested] 11+ messages in thread
* kernel upgrade on the fly
@ 2002-06-18 21:21 zaimi
  2002-06-18 19:37 ` Rob Landley
  2002-06-18 21:30 ` Russell King
  0 siblings, 2 replies; 11+ messages in thread
From: zaimi @ 2002-06-18 21:21 UTC (permalink / raw)
  To: linux-kernel

Hi all,

 has anybody worked or thought about a property to upgrade the kernel
while the system is running?  ie. with all processes waiting in their
queues while the resident-older kernel gets replaced by a newer one.

I can see the advantage of such a thing when a server can have the kernel
upgraded (major or minor upgrade) without disrupting the ongoing services
(ok, maybe a small few-seconds delay). Another instance would be to
switch between different kernels in the /boot/ directory (for testing
purposes, etc.) without rebooting the machine.

A search of the web resulted in no related information to the above so I
dont know if such an issue has been raised before.

Would anybody else think this to be an interesting property to have for
the linux kernel or care to comment on this idea?

Cheers,

Adi Zaimi
Rutgers University


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-06-24 14:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-20 20:40 kernel upgrade on the fly Jesse Pollard
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20 20:19 zaimi
2002-06-21 13:42 ` Rob Landley
2002-06-18 21:21 zaimi
2002-06-18 19:37 ` Rob Landley
2002-06-19  5:09   ` Michael S. Zick
2002-06-19 17:22   ` John Alvord
2002-06-19 16:56     ` Rob Landley
2002-06-22  8:40       ` Pavel Machek
2002-06-22  8:34   ` Pavel Machek
2002-06-18 21:30 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox