[mythtv] Loud hard drive due to NuppelVideoRecorder.cpp sync()

Isaac Richards ijr at po.cwru.edu
Fri Jun 13 13:50:37 EDT 2003


On Friday 13 June 2003 12:33 pm, Marc Slemko wrote:
> 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.

Feel free to submit a patch.

Isaac


More information about the mythtv-dev mailing list