[mythtv] Loud hard drive due to NuppelVideoRecorder.cpp sync()
Marc Slemko
marcs at znep.com
Fri Jun 13 10:33:13 EDT 2003
On Fri, 13 Jun 2003, Isaac Richards wrote:
> The main issue is that quite a few versions of the kernel _don't_ write
> in-memory buffers to disk in a timely fashion. Without the sync() there,
> I've seen it spool up several hundred MB in to to-write-to-disk buffer, then
> decide to dump it all to disk all at once, causing a lot of frame drops, etc.
Calling sync() seems like a really bad solution because it impacts
everything on the system.
If you must flush data, then on Linux calling fsync() or preferrably
fdatasync() is a bit better, since then you aren't impacting the
rest of the system and you should avoid a number of seeks.
More information about the mythtv-dev
mailing list