lkml.org 
[lkml]   [1999]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Saving/Restoring the virtual address space of a linux process
>I am working on a process migration process. Without modfying the kernel, 
>I want to create an environment, where a linux process may save its
>virtual memory space into a file upon receiving a user signal, may be
>transferred to a different linux box with its memory dump file, and
>restore its state on that box by restoring its virtual address space and
>values of Base Pointer, Stack Pointer and Instruction pointer.

Take a look at the way emacs does this. When you build emacs from
source (this used to be true for version 18.<mumble> but I think it hasn't
changed) it actually builds a small lisp machine (temacs), loads in all the
real emacs lisp (which takes some time), gets itself to a state where it's
ready to edit files and dumps an image to disk, converting it to an
executeable. When you fire up the [quite large] executeable it's ready to
edit files almost immediately.

I was amazed (and not a little impressed) that this was a mechanism that
could be used cross platform.

Brian
--
briank@aldiscon.ie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.063 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site