[mythtv-users] random livetv stalls

Russell Gower mythtv at thegowers.me.uk
Wed Feb 5 13:40:34 UTC 2014


On 5 Feb 2014, at 12:43, Brian J. Murrell <brian at interlinx.bc.ca> wrote:

> On Wed, 2014-02-05 at 19:23 +1100, Jean-Yves Avenard wrote: 
>> 
>> First is the recorder writing to the disk: that's thread #1
>> Then you have thread #2 handling request from the frontend and
>> requesting data; that is reading the data from the disk.
> 
> Why would it be?  As long as the frontend/viewer was not "too" far
> behind the live data, the front-end's read(2)s would be coming out of
> the kernel's disk buffers wouldn't it?
Yes, but that can only happen after Mythtv (thread #1 in the example above) has written the data to disk - the threadedfilewriter class buffers those writes and does them in blocks, if playback is too close to realtime then the Frontend finds itself  waiting for data that the backend hasn't yet saved.

R. 


More information about the mythtv-users mailing list