[mythtv-users] Memory needs

Gary Buhrmaster gary.buhrmaster at gmail.com
Wed Oct 19 22:24:44 UTC 2016


On Wed, Oct 19, 2016 at 11:05 AM, Simon Hobson <linux at thehobsons.co.uk> wrote:

> Now suppose you don't (for whatever reason) start the job until the recording is complete. The transcode process starts, and the first few blocks it needs are in memory. The process writes it's output stream to disk - and this causes the oldest blocks in cache to get flushed. Within a few blocks, the ones being flushed are actually the ones we will need next !

Actually this depends on whether your application is being smart
and has provided hints to the OS that something is being read
or written in certain ways.  Appropriate uses of fadvise and
O_DIRECT might be beneficial for some use cases.  As with
much else, your mileage will vary (I recall seeing fadvise in some
part of the MythTV code, but I have no idea if it would effect this
specific example).


More information about the mythtv-users mailing list