CryoPID: Freeze and Unfreeze processes in Linux

CryoPID is an application that allows you to capture the state of a running process in Linux and save it to a file. You can use this file to resume the process later on, either after a reboot or even on another machine. Both x86 and x86_64 are supported and you can get sources for these platforms accordingly here and here. Ubuntu users can use aptitude or apt-get to install this utility (sudo aptitude install cryopid).

After installation program freeze will be available allowing you to suspend process(es) into a file(s) and resume them later. The file you capture process’ state to is self-executing, so to resume process it’s enough to run that file.

One of the major features is that fact that freeze can be run by regular user (not root) and doesn’t need any kernel modifications.

Here is common cryopid usage example: let’s imagine you use MUTT that has thousands e-mails indexed that you don’t want to be closed and re-indexed. But at the same time you may want to start some application that consumes much memory but it seems that mutt along with this application will exhaust ALL ram. In this case the simplest way is to suspend mutt with cryopid, run that memory consuming application and resume mutt when it’s finished.

To find out PID of mutt process run:

ps ax | grep [e]volution

It should show something like this:

26410 ? Ssl 0:16 mutt

where 26410 is needed PID.

Now you can suspend mutt by cryopid:

freeze ~/captured_mutt 26410

After mutt state is stored, close mutt. To restore mutt, run:

~/captured_mutt

and in few seconds you’ll get fully workable mutt with all messages indexed etc.

I recommend cryopid, mates, it’s really useful! ;)

 
 
» You might also be interested in the following articles:
Automatic "zombie" processes killing (shell script)
htop: new generation Linux processes viewer
Fun: bash:~$ man condom
Testing system validity
BMW migrates FROM Unix on race to Intel



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

0 Responses to “CryoPID: Freeze and Unfreeze processes in Linux”


  1. No Comments

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
TuxArena: The arena of Tux | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››