LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-01-2009, 05:12 AM   #1
Ranny
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 0
Suspending a single process to disk


Hi all,
I am running a server for our research group, and in charge of it, since I'm the main user.
I want to be able to (First) restart the server, while keeping some processes in their running state (runs can take weeks and killing them costs a lot of run time sometimes).
The problem is that I wish also to update the computer (and kernel) occasionally, which means hibernation is not sufficient.
What I'm looking for is a software that "freezes" a process to disk, then revives it after reboot, preferably (of course) in a newer kernel.
I foud the program called cryopid (http://cryopid.berlios.de/ ) that claims to do so but doesn't compile, and is quite old.
Do you know anything like that? I also looked at (and installed) tuxonice, but it doesn't seem to have this feature.
Thanks,
Ranny.
 
Old 02-01-2009, 06:22 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
Well, if you're the admin anyway (and the main user), why not just run the updates when no job is running ?

And scheduled downtimes, like e.g last friday of the month 7pm, must be respected by the other users anyway. If that's not the case...

The easiest solution for what you need would be to run the compute jobs inside a virtual machine. These can be frozen and restored as you like. There's virtualbox or a free vmware server available.

Last edited by rtspitz; 02-01-2009 at 06:30 PM.
 
Old 02-02-2009, 05:45 AM   #3
Ranny
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Well, I didn't go into details, but what happens is that jobs take a long time to run, sometimes over a week, and since it's a dual-quad, there are a few of them almost all the time. Especially for weekends...
I'm not quite sure about the virtual thingy. The machine is a 64 bit 32 GB mem, and some jobs use a lot of resources. Losing resources for virtualization would be a bad thing to do, and my (personal old laptop) experience with VMware, for instance, was not promising on that part.
Thanks for the advice though.
BTW, some news: I found: http://sourceforge.net/projects/cryopid2 , which is exactly what I'm looking for, only it doesn't work on amd64 (They said it won't and I tried to compile and failed).
 
Old 02-04-2009, 06:32 PM   #4
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
Virtualization isn't bad. VMWare is used in our department to run e.g. a license server and other stuff. Very reliable. I had the free version running on my machine some time ago. Compared to VirtualBox it is nice that it comes with a console that connects to the server (local or remote). So you won't have a window pop up for every guest OS that runs. Nice for headless machines. I don't know if it supports assigning multiple cores to a virtual machine though, in case your jobs can be parallelized.

Still by far the easiest way to solve this problem is to have scheduled downtimes, announced a few weeks ahead. Any job running gets killed. End of problem.
 
  


Reply

Tags
hibernate, kernel, suspend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem unmounting flash drive after suspending to disk 10110111 Linux - Hardware 1 08-31-2008 08:48 AM
suspending to disk vs. to RAM newbiesforever MEPIS 2 08-24-2008 08:18 PM
suspending a startup process called by rc.local jbeige Linux - Server 1 07-15-2008 08:38 AM
issue with suspending to disk/ram schatoor Linux - Laptop and Netbook 1 11-30-2006 02:45 AM
suspending a process kornelix Programming 7 05-14-2006 08:59 AM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration