Opened 17 years ago

Closed 15 years ago

#450 closed Enhancement (worksforme)

Checkpoint while standalone

Reported by: Nicolas Owned by: davea
Priority: Minor Milestone: Undetermined
Component: BOINC - API Version:
Keywords: Cc:

Description (last modified by Nicolas)

Debugging checkpoint code can be hard if it requires running under the control of the core client, so it's often useful to make it checkpoint without caring about preferences when running as standalone. For example, making it checkpoint always if standalone (instead of calling boinc_time_to_checkpoint), but that causes too much I/O. It's much better to make it checkpoint at a fixed interval

I suggest adding a feature inside boinc_time_to_checkpoint itself to return true every few seconds if running standalone. Maybe make it possible to change the checkpoint interval.

Attachments (2)

always_checkpoint.c (115 bytes) - added by Nicolas 17 years ago.
A really simple workaround: make it checkpoint always
other_workaround.c (392 bytes) - added by Nicolas 17 years ago.
Another workaround: if standalone, call a different function

Download all attachments as: .zip

Change History (6)

Changed 17 years ago by Nicolas

Attachment: always_checkpoint.c added

A really simple workaround: make it checkpoint always

Changed 17 years ago by Nicolas

Attachment: other_workaround.c added

Another workaround: if standalone, call a different function

comment:1 Changed 17 years ago by Nicolas

Description: modified (diff)

comment:2 Changed 15 years ago by Nicolas

Description: modified (diff)

comment:3 Changed 15 years ago by romw

Owner: changed from Bruce Allen to davea

comment:4 Changed 15 years ago by davea

Resolution: worksforme
Status: newclosed

The default checkpoint period (which applies if standalone) is DEFAULT_CHECKPOINT_PERIOD, defined as 300 (5 min) in lib/app_ipc.h

Note: See TracTickets for help on using tickets.