When is "save" really "maybe save"?
Posted Sep 26, 2008 15:05 UTC (Fri) by dmarti
In reply to: Now what about shutdown?
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.)
to post comments)