Bug #6052
closedpacket buffer number increasing until out-of-memory with 1GB on RPi while DVR recording to disk/NFS
0%
Description
tvheadend is "reaped" by the Linux oom killer after exhausting all available memory when using DVR. I have turned swapping off to stay with a responsive system at least. Streaming is fine. The issue shows only when recording. I have tested
- 4.2.4-dmo1~bpo9+1~rpt1
- current stable (4.2.8?)
- and the current unstable 4.3-1964~g637844055
Suggestion: If a ring buffer is used for reusable packet buffers: maybe the write-to-disk code does not pass ownership to the allocator, again? Such a problem will not show on systems with todays amount of RAM (8GB or more + swap), as most recordings will be done within <5GB. I did not test with a short recording (<10 min.), whether the packet buffers will be deallocated after recording stops.
In such a case valgrind won't help much, because all memory is accounted for... Please find attached a valgrind log, regardless.
Files