client_state.xml file(s)

MarkF
MarkF
Joined: 12 Apr 05
Posts: 393
Credit: 1516715
RAC: 0
Topic 190182

I just noticed that boinc is constantly updating the 3 files client_state.xml, client_state_prev.xml and client_state_next.xml. How can I control how often these updates are performed? I am running boinc manager 5.25 if that makes any difference.

The Pirate
The Pirate
Joined: 11 Nov 04
Posts: 57
Credit: 23332769
RAC: 0

client_state.xml file(s)

Why would you want to change the internal workings of the BOINC client?


MarkF
MarkF
Joined: 12 Apr 05
Posts: 393
Credit: 1516715
RAC: 0

Never mind It seems to be

Never mind
It seems to be controled by general prefernces value for "Write to disk at most every". For some reason this did not appear to work initially but eventually it took hold.
Pirate:
It just seems wasteful to me.

Jord
Joined: 26 Jan 05
Posts: 2952
Credit: 5779100
RAC: 0

RE: Pirate: It just seems

Message 19513 in response to message 19512

Quote:
Pirate:
It just seems wasteful to me.


I hope you didn't put it to a too high a number, like a month orso...
For when a next time your system goes haywire, you won't have an up to date backup file (prev file) of your client state file.

MarkF
MarkF
Joined: 12 Apr 05
Posts: 393
Credit: 1516715
RAC: 0

Naw, just 10 minutes.

Naw, just 10 minutes.

Tern
Tern
Joined: 27 Jul 05
Posts: 309
Credit: 93415503
RAC: 924

RE: Naw, just 10

Message 19515 in response to message 19514

Quote:
Naw, just 10 minutes.

One warning on setting this value "higher", even just to 10 minutes... whenever a result is "switched out" and removed from memory, for any reason, then when that result is restarted, it will restart at the last 'checkpoint'. The setting is a "no more often than", which means if the app attempts to checkpoint every 9.99 minutes on your machine, succeeds, fails because you said 10, then just before it tries again, you quit BOINC... you can lose up to 20 minutes of crunching on that result.

If apps are left in memory (another preference setting) then they won't lose time every time BOINC switches to another project, but if they are removed from memory, they can. Rosetta had a problem on very slow machines because they weren't (under an older version of the app) checkpointing within the one HOUR default switch time, and the results would get 'stuck' and never progress unless they were left in memory.

If you leave apps in memory and run BOINC 24/7, then you can safely go to 10 minutes without losing any crunching time.

MarkF
MarkF
Joined: 12 Apr 05
Posts: 393
Credit: 1516715
RAC: 0

Bill Thanks for the heads up,

Bill
Thanks for the heads up, I do in fact keep the app in memory (and run 24/7 when my DSL connection permits).

Marck
Marck
Joined: 11 Feb 05
Posts: 9
Credit: 23428347
RAC: 0

RE: If apps are left in

Message 19517 in response to message 19515

Quote:
If apps are left in memory (another preference setting) then they won't lose time every time BOINC switches to another project, but if they are removed from memory, they can.


But usually, a checkpoint is written when switching without keeping the application in memory? It is regarded an error if a project does not do this, isn't it? I'm asking because I've set the write-to-disk interval to 15 minutes with a switch time of 1 hour and removing the application from memory.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5850
Credit: 110026379489
RAC: 22494944

Check the files Fstats.Ha and

Check the files Fstats.Ha and Fstats.Ha.ckp in the folder ...\\BOINC\\slots\\0\\ (or whichever subfolder of slots they are in). Those two files are updated when checkpoints are written. See if it's happening every 15 mins for you and then again at project switch time.

Cheers,
Gary.

Tern
Tern
Joined: 27 Jul 05
Posts: 309
Credit: 93415503
RAC: 924

RE: But usually, a

Message 19519 in response to message 19517

Quote:
But usually, a checkpoint is written when switching without keeping the application in memory? It is regarded an error if a project does not do this, isn't it?

One would hope... but some (most?) simply don't. Likewise I would think that being told to quit, as in when BOINC is shut down, would checkpoint. But they don't appear to. I haven't tested it on every project, but I know at least two do not. Don't know about Einstein.

John McLeod VII
John McLeod VII
Moderator
Joined: 10 Nov 04
Posts: 547
Credit: 632255
RAC: 0

RE: RE: But usually, a

Message 19520 in response to message 19519

Quote:
Quote:
But usually, a checkpoint is written when switching without keeping the application in memory? It is regarded an error if a project does not do this, isn't it?

One would hope... but some (most?) simply don't. Likewise I would think that being told to quit, as in when BOINC is shut down, would checkpoint. But they don't appear to. I haven't tested it on every project, but I know at least two do not. Don't know about Einstein.


Most applications have limited locations where they can checkpoint, so checkpointing at an arbitrary time is not an option.

If an application checkpoints every 8 minutes on your machine, and you have write to disk at most every 10, and then 15 minutes after the last checkpoint you shutdown, or the result is removed from memory, then you will lose 15 minutes of work.

With the above numbers, the project will checkpoint every 16 minutes. After 8 minutes, it asks for a checkpoint - and BOINC refuses. 8 minutes later, it asks again, and BOINC says OK, so a checkpoint is written, and the clock starts for 10 minutes again.

Known exceptions to the above. CPDN checkpoints at fixed places in the result (every 144 time steps, I believe), and does NOT ask BOINC for permission. S@H can checkpoint every few seconds (the reason for the setting in the first place). There may be more exceptions.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.