Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > checkpoint/restart python processes

Thread Tools

checkpoint/restart python processes

Neal Becker
Posts: n/a
Hi numeric processing fans. I'm pleased to report that you can now have
convenient checkpoint/restart, at least if you are running fedora linux.

python -i <<< this will start python, then checkpoint it
c_int(2) (ignore this debug)


cr_restart checkpoint.nbecker1.23768 <<< this will restart

Berkeley Lab Checkpoint/Restart for Linux (BLCR)

What I've done is:
1) built 2 rpm packages for blcr. First installs everything except kernel
module. 2nd is the kernel module, packaged for use with akmods, which will
be (I think) the kmod format of choice in rpmfusion.

2) made a python ctypes module to use it. This allows your python program
to checkpoint itself. This is (This is my first ctypes
experience, be gentle)

You will need a couple of packages from livna development to use this:
rpm -q --whatprovides kmodtool
rpm -q --whatprovides akmods

You can find this stuff here:

I grabbed the development srpms from livna and built them for my F8 machine.

My stuff is here:

Note: My RPM packages are provided as a convenience for fedora users. You
can just get the original blcr tar files from the above mentioned url and
build if you prefer, or if you are using a different linux distribution
than I am.

Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling processes and what to "feed" other processes Marc Heiler Ruby 1 05-24-2009 05:37 PM
python processes names Sylwia Python 3 04-05-2004 02:07 PM
TCP servers in Python - two processes want to use same port Pif Paf Python 4 02-24-2004 12:46 PM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM
Clueless: piping between 2 non-python processes Michael Lehmeier Python 11 10-27-2003 04:19 AM