[mythtv] Loud hard drive due to NuppelVideoRecorder.cpp sync()
Matt Zimmerman
mdz at debian.org
Fri Jun 13 14:15:48 EDT 2003
On Fri, Jun 13, 2003 at 09:33:13AM -0700, 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.
I have code to do this sitting in my CVS tree, which was waiting until after
the release settled.
--
- mdz
More information about the mythtv-dev
mailing list