Re: cr_save bug?

From: Jason Duell (
Date: Fri Sep 27 2002 - 14:40:23 PDT

On Thu, Sep 26, 2002 at 04:04:34PM -0500, Sriram Sankaran wrote:
> Hi Jason,
> cr_save, when invoked without the -f option, saves the context of all 
> threads (app, manager and cr_handler) of a process separately (as 
> context.<pid>). 
> However, with the -f option only one context-file (with the name supplied)  
> is dumped to disk. I'm guessing that the context-file of each thread uses
> the same name, and so the previous ones are overwritten.


Actually, using '-f foo' will result in all the checkpoints for a group
being *serialized* into one file.  So it should be OK.  This is the
option Eric has been using to checkpoint (and, when lucky, restore)
multithreaded processes.

The cr_save program will also accept a '-d flag', which takes a
directory name, into which all the separate files are put.
But Eric tells me it doesn't work yet, so use -f.


Jason Duell                               jcduell_at_lbl_dot_gov
NERSC Future Technologies Group           Tel: +1-510-495-2354
Lawrence Berkeley National Laboratory     Fax: +1-510-495-2998