iceman1992 wrote:How much time is generally required to write a checkpoint?
From the small to medium sized WU's that I have been doing recently, just a few seconds. But that is written to cache in system RAM. It may take a bit longer when dealing with large and bigadv WU's. The vulnerable time is between when the checkpoint is written to the RAM and when the entire contents are flushed to the hard drive's media. There is also caching going on in the drive between the interface and the media that depends on the drive settings, that can also be an issue sometimes. Some of the file metadata is already updated at the time the checkpoint is written and in cache.
As for the time before cache contents are flushed to disk, as I said that depends. A recent version of OS X for instance had a system process that once a minute flushed all cached writes that were still pending. I have not checked if that has been changed in current versions. Windows and Linux have similar processes, it just has been a while since I looked up what their defaults were. With Linux the choice of filesystem type and its settings will also vary that even more.
The gap in time between a checkpoint write and it being fully flushed to disk is another reason to not do them too frequently. That increases the chance that you will interrupt and corrupt the checkpoint. To use the current minimum setting of 3 minutes as an example, each time it is done there would be up to a minute period on that version of OS X I mentioned where it was not on disk. Even if the average was 30 seconds, with 20 an hour that adds up to potentially 1/6th of the time you could corrupt the checkpoint. With 15 minutes it is reduced to less than 1 in 30. Anyways, when I do check first before shutting down folding or my machine, I have yet to get a corrupted checkpoint. I have had a few corrupted when I did not check.
To Jesse_V and Joe_H, where do I find the work directory on linux? Tried and couldn't find it.
It has been a while since I tried a Linux install in a VM, so no idea where current clients stick the work directory. At one time they used similar paths to what is used for OS X, but that may have changed.