On Thu, Aug 21, 2008 at 11:38:56AM -0700, Gregory K. Ruiz-Ade wrote:
On Aug 21, 2008, at 12:06 AM, SJS wrote:
When I can type "sync" on a long-running yet-mostly-idle system and have
the system take a noticeable (wall-clock) amount of time writing to the
disks, I fail to have a warm fuzzy. When this happens, I put in a sync
hack.
So I'm not the only one this happens to...
Do either of you mind if I ask what kernel version you have? The
default parameters should be waking every 5 seconds to write, but
forcing writes for any data older than 30 seconds.
The problem with a background 'sync' is that it does a full sync every
time it runs, where as the normal pdflush tries to write things out
more gradually, unless they start to get too old.
If you're on a laptop, running off of battery, the laptop mode tends
to tweak these parameters to not flushing. So, unless you're on a
laptop running on battery, you should never have dirty data older than
30 seconds.
David
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list