When is "save" really "maybe save"?
Posted Sep 26, 2008 15:05 UTC (Fri) by
dmarti (subscriber, #11625)
In reply to:
Now what about shutdown? by njs
Parent article:
LPC: Booting Linux in five seconds
Applications could be smart about this. The answer might be something like: fsync on save if 100 user actions or 10s of CPU time have been spent on the file since the last save. Or fsync on save if the file has gone from a broken state (invalid HTML, spelling errors, audio that clips, program that won't compile) to a fixed state.
(And you could always do the fsync in a separate thread or process, so the app is responsive again.)
(
Log in to post comments)