Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Any way to hibernate a running process?

 
   Linux (Home) -> Genreal Discussions RSS
Next:  What ist "cpu storage interval"?  
Author Message
useful_infos

External


Since: Sep 16, 2007
Posts: 3



(Msg. 1) Posted: Sun Sep 16, 2007 3:27 pm
Post subject: Any way to hibernate a running process?
Archived from groups: comp>os>linux>misc, others (more info?)

Hi all,

Suppose I've started a program that will take hours or
even days to complete, and the program lacks any
ability to stop and later resume.

Is there any way to hiberate a process? By this I mean
store its RAM data to disk, freeze access to any files
that it was accessing, and be able to later resume
these?

Thanks.
Back to top
Login to vote
Dances With Crows

External


Since: May 07, 2007
Posts: 106



(Msg. 2) Posted: Sun Sep 16, 2007 10:47 pm
Post subject: Re: Any way to hibernate a running process? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

["Followup-To:" header set to comp.os.linux.misc.]
useful_infos.TakeThisOut@yahoo.com staggered into the Black Sun and said:
> Suppose I've started a program that will take hours or even days to
> complete, and the program lacks any ability to stop and later resume.

The program needs to be fixed if it runs for multiple hours and doesn't
save its state periodically or have any way to resume without losing
everything. File a bug report.

> Is there any way to hiberate a process? By this I mean store its RAM
> to disk, freeze access to any files that it was accessing, and be able
> to resume [it] later?

I think the thing you're looking for has been implemented at least
partially. They called it "checkpointing" and said they were using it
to migrate processes among nodes of a cluster. IIRC, it required kernel
patches and that all files the process was accessing be on an NFS
server. So it wasn't a general solution, but you might want to Google
that keyword and see if it's been improved.

If your process isn't user-interactive, kill -STOP will stop it eating
CPU, but the process will still be using RAM until the VM shuffles it
off to swap. Using -STOP on user-interactive things like X clients can
cause them to react weirdly, so be careful. -CONT should start it up
again. HTH anyway,

--
"Dreams? Best leave dreams to those that can afford them."
--Aunt Cordelia, _Wizard and Glass_, Stephen King
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can't connect to process running on Linux - HELP PLEASE! - Guys, Hopefully someone will see what we are doing wrong here and be able to assist. We have a Java process running on Linux which opens a port and wants to receive a message that is sent over Unicast. The port we are using is 5399 and when we run..

Closing lid = sleep/hibernate - I've just purchased an Aspire One (Acer) because I needed an inexpensive Linux-based system laptop. OS: Linpus Lite - based on Fedora (Intel Atom 1.6GHz, 8GB SSD) The laptop goes into sleep or hibernate (not sure which) when I close the lid. I talked....

How do I get a process back ? - I log onto another computer using ssh and tell the second computer to start a download using wget. I then shutdown the first computer and leave the second computer downloading for a few days When I start the first computer and then logon to the secon...

$ BUSINESS PROCESS $ - $ BUSINESS PROCESS $ Metastorm, FileNet, Tibco, IBM, Oracle, Pegasystems, Ultimus, Lombardi, Fuego, and Intalio. Business Software Avilable Here http://www.geocities.com/disamster/

how much memory uses a process - After years as sysadmin I still dont know all the stuff about memory and processes. I use bind as nameserver at to me it looks that the process is memleaking and so I monitor the process using top and ps. # top -n1 b | egrep -e 'PID|named' PID USER ...
       Linux (Home) -> Genreal Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact