Project

General

Profile

Bug #4177

Memory leak when recording

Added by John Doe almost 8 years ago. Updated over 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2017-01-13
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1-2414~g041b949
Affected Versions:

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

#1

Updated by Jaroslav Kysela almost 8 years ago

What do you mean with 'memory' in this case? 'ps' or 'free' ?

#2

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.

#3

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.

#4

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.

#5

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.

#6

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.

#7

Updated by Jaroslav Kysela over 7 years ago

  • Status changed from New to Invalid

Also available in: Atom PDF