Skip to contentSkip to conversation

A possible idea for Linux: Save running programs to disk

DISCUSSION Bodo Eggert 4 participants 5 messages Oct 2, 2005 – Oct 3, 2005 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · lokum spand

I allow myself to suggest the following, although not sure if I post in the right group:

Suppose Linux could save the total state of a program to disk, for instance, imagine a program like mozilla with many open windows. I give it a SIGNAL-SAVETODISK and the process memory image is dropped to a file. I can then turn off the computer and later continue using the program where I left it, by loading it back into memory.

What about the open file descriptors? If the program uses temporary files, closing them will destroy the data in the temp files. Therefore you can't close these fds, and this prevents you from doing a shutdown. Use suspend-to-disk instead.

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 10 lines · Bernard Blackham
Quoted 2 lines · Ed Tomlinson

Is there any kernel api that adding would make cryopid more dependable/cleaner?

Currently a fair bit of information is obtained by injecting code into the process's memory space, executing it, and reaping out the results (eg, termcaps, file offsets, fcntl states, locks, signal actions, etc). Can't think of ways to make it cleaner off the top of my head, but I'm open to ideas.

What about using an uml wrapper + vncserver? This would give you a complete virtual environment, and if you can make uml suspend-to-disk, you've got most of it. (I admit I never tried uml, so this is just a guess.) Off cause the network connections will still time out etc etc, but that's nothing you can do about that.

Be fvzcyl hfr bcren, juvpu pna fnsr vg'f bja fgngr.

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#6 lore raw
Quoted 11 lines · Bodo Eggert
Quoted 8 lines · Bernard Blackham
Quoted 2 lines

Is there any kernel api that adding would make cryopid more dependable/cleaner?

Currently a fair bit of information is obtained by injecting code into the process's memory space, executing it, and reaping out the results (eg, termcaps, file offsets, fcntl states, locks, signal actions, etc). Can't think of ways to make it cleaner off the top of my head, but I'm open to ideas.

What about using an uml wrapper + vncserver?

Requires consciously doing so when you start it. It most certainly could be done that way, but one of cryopid's aims is to work on any running process without prior planning.

Interesting idea though - it'd be somewhat akin to porting suspend-to-disk to UML (which has been on suspend2's todo list for a while though :)

Bernard.

#7 lore raw
Quoted 3 lines · Bernard Blackham

Interesting idea though - it'd be somewhat akin to porting suspend-to-disk to UML (which has been on suspend2's todo list for a while though :)

It would be exactly that. Note that external network connections are still going to cause problems.

Jeff

#8 lore raw
In reply to Bernard Blackham

Hi!

Quoted 9 lines
Quoted 1 line

What about using an uml wrapper + vncserver?

Requires consciously doing so when you start it. It most certainly could be done that way, but one of cryopid's aims is to work on any running process without prior planning.

Interesting idea though - it'd be somewhat akin to porting suspend-to-disk to UML (which has been on suspend2's todo list for a while though :)

Better port swsusp1... I was thinking about that, too, but it is going to be quite complex. Patches certainly welcome.
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address