[mythtv-firehose] mythtv/devel/mythtv-rec2 commit: ac156f4c8 by Daniel Kristjansson (daniel-kristjansson)
MythTV
noreply at mythtv.org
Tue Apr 10 07:43:00 UTC 2012
Author: Daniel Kristjansson <danielk at cuymedia.net>
Change Date: 2011-03-12T09:00:49-08:00
Push Date: 2012/04/10 00:41:52 -0700
Repository: mythtv
Branch: devel/mythtv-rec2
New Revision: ac156f4c8e645c93f6fa469d19e991ef3dd94107
Changeset: https://github.com/MythTV/mythtv/commit/ac156f4c8
Log:
Some fadvise changes.
First this gets rid of DONTNEED advice. These calls a global, so in order for these to be safe in the MythTV context we'd need to make sure that no other process is currently accessing the file. This is complicated on 64 bit platforms where you can memory map the whole file and extreemely complicated on 32 bit platforms.. Instead lets leave this task to the OS.
Second we change some of the WILLNEED calls. On Linux these are unfortunately implemented as blocking calls; that is they block until the requested number of bytes have been read, instead of just telling the OS to start reading in those bytes in a kernel thread. Consequently, this drops the calls in some cases and reduces the number of bytes to read in other cases.
Modified:
mythtv/libs/libmythtv/ThreadedFileWriter.cpp
mythtv/libs/libmythtv/fileringbuffer.cpp
mythtv/libs/libmythtv/ringbuffer.cpp
More information about the mythtv-firehose
mailing list