473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

checkpoint/restart python processes

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.

Example:
python -i blcr_mod.py <<< this will start python, then checkpoint it
c_int(2) (ignore this debug)
>>>
[quit]

cr_restart checkpoint.nbecker1.23768 <<< this will restart
>>>
Berkeley Lab Checkpoint/Restart for Linux (BLCR)
http://ftg.lbl.gov/CheckpointRestart...ownloads.shtml

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 blcr_mod.py. (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
kmodtool-1-7.fc8.noarch
rpm -q --whatprovides akmods
akmods-0.2.1-1.fc8.noarch

You can find this stuff here:
http://livna-dl.reloumirrors.net/fed...lopment/SRPMS/

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

My stuff is here:
https://nbecker.dyndns.org/RPM/blcr_mod.py
https://nbecker.dyndns.org/RPM/blcr-0.6.4-1.src.rpm
https://nbecker.dyndns.org/RPM/blcr-...-2.fc8.src.rpm

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.

Feb 1 '08 #1
0 1329

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Jane Austine | last post by:
As far as I know python's threading module models after Java's. However, I can't find something equivalent to Java's interrupt and isInterrupted methods, along with InterruptedException....
6
by: Hennie de Nooijer | last post by:
Hi, Currently we're a building a metadatadriven datawarehouse in SQL Server 2000. We're investigating the possibility of the updating tables with enormeous number of updates and insert and the...
1
by: jasonshohet | last post by:
I read recently that: "if a before-image was made before an interruption in database processing, you use the before-image dump & simply begin processing again from just before the last...
18
by: Bruno Baguette | last post by:
Hello, I have to design a table wich will store some action reports. Each report have an ID like this 1/2004, 2/2004, ... and each years, they restart to 1 (1/2004, 1/2005, 1/2006,...). So, I...
14
by: Rochester | last post by:
Hi, I just found out that the general open file mechanism doesn't work for named pipes (fifo). Say I wrote something like this and it simply hangs python: #!/usr/bin/python import os
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
1
by: oraclerohith | last post by:
Hi All, I have a query with regards to checkpoint queue. Does checkpoint queue have RBA information, if it does have.. can I know how RBA address, which is the address in a physical file (Redo...
3
by: ramesh.nrk | last post by:
Hi, I need to re-start the windows explorer programmatically. How can I restart Windows Explorer using programmatically? Thank you
1
by: beyrself | last post by:
Public Function RsReDir() 'function to restart dns redirector - working as of 12-11-08' Dim plist As Process() = Process.GetProcesses() 'Get and parse list of processes to plist' For Each p As...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.