From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Oct 11 2005 - 12:00:47 PDT
Since we already have an extra checkpoint thread in BLCR's library, it might not be too hard for us to use it as a periodic checkpoint requester for use within an application that wants to checkpoint itself. I'd need to think a bit about how a request from this thread (which normally is SERVICING requests) would be done to avoid deadlock (perhaps yet another thread?). I am guessing an interface like: cr_request_periodic(const char * filename_prefix, int interval_in_seconds); I don't want to suggest that we are going to do this any time soon - I'm just folloing through on the thought process while the idea is fresh. -Paul JCDuell_at_lbl_dot_gov wrote: >On Tue, Oct 11, 2005 at 02:40:39PM -0400, Neal Becker wrote: > >>I'm interested in periodically checkpointing my executable. While it's not >>difficult to do this from the shell using e.g., cron, I wonder if blcr-devel >>has a programmatic interface I could use? Maybe I could write a little >>python wrapper for it. >> > >Yes, for the moment, you'd need to use cron or write your own wrapper, >etc. It's too hard to write something like this in a way that will >please everyone (so everyone gets to write it themselves ;) > > -- Paul H. Hargrove PHHargrove_at_lbl_dot_gov Future Technologies Group HPC Research Department Tel: +1-510-495-2352 Lawrence Berkeley National Laboratory Fax: +1-510-486-6900