Hi Damian,

On 30/03/2011 13:28, Damian Steer wrote:

[...]
This reminds me of a discussion about sync (roughly flush to kernel) and
fsync (flush kernel buffers to disk) on linux, triggered by firefox [1]
many moons ago. In that discussion I recall one of the reasons for
avoiding fsync was to preserve laptop battery. [2]
Thanks for the pointers - interesting discussion. You are right that one motivation was to preserve laptop battery by not spinning up an idle disk. Personally, I'm not sure that's a good reason to ignore Posix.

In my tests the disk was already spinning and the laptop on mains power.

Brian

Damian

[1]<http://shaver.off.net/diary/2008/05/25/fsyncers-and-curveballs/>
[2]<http://thunk.org/tytso/blog/2009/03/15/dont-fear-the-fsync/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2TIdUACgkQAyLCB+mTtykhPwCfbiz3bJw+tie81gZcuXQQF19w
F3MAoIjtFmstC2JimfBAHLozaPrH4w1z
=yple
-----END PGP SIGNATURE-----

Reply via email to