Bug #4177
Memory leak when recording
0%
Description
As soon as I start a recording my memory is being used at the same rate as the recording is being written to disk. My caching setting was originally on 'System', but even after changing it to 'Don't keep' it keeps using all my memory. As soon as the recording is deleted (not stopped), the memory will be free again.
I tried downgrading, as I was sure this issue didn't happen before, but the same happens in 4.1.2277.
History
Updated by Jaroslav Kysela almost 8 years ago
What do you mean with 'memory' in this case? 'ps' or 'free' ?
Updated by John Doe almost 8 years ago
Jaroslav Kysela wrote:
What do you mean with 'memory' in this case? 'ps' or 'free' ?
I use 'free -m' to see the usage, memory is decreasing and caching is increasing.
Updated by John Doe almost 8 years ago
Also circumstances that may have had an impact, I ran 'sudo apt-get upgrade' before installing some other software today. I can't imagine that this happened during my recordings in the last week, as my system (RPi) would've crashed.
Updated by John Doe almost 8 years ago
I did some more testing, and the same occurs in 4.0.9 and 4.0.9-17, so I reckon caching isn't working properly as result of an upgraded package or something of the sort. Perhaps it never worked, I can't tell to be honest. For some reason recordings are being cached till it reaches the last 25 mb of memory, at the point the total usage is 430 MB, and then it's just fluctating. So the whole 'cache scheme' setting doesn't appear to be working.
Updated by Joe User almost 8 years ago
Is the memory usage causing some problem? If it is just cache, it should be freed if something else needs memory.
You can try to run "top" and see if it is the system or tvheadend using the memory.
Updated by John Doe almost 8 years ago
Joe User wrote:
Is the memory usage causing some problem? If it is just cache, it should be freed if something else needs memory.
You can try to run "top" and see if it is the system or tvheadend using the memory.
It appears my lack of knowledge of Linux got the better of me. Thanks for the help, it appears my system just starts caching recordings and the like immediately, but this cache/buffer is still considered free memory.
This issue can be closed.