Feature #6062
user imposable upper memory limit, e.g. for packet buffers while recording
Start date:
2021-06-09
Due date:
% Done:
0%
Estimated time:
Description
I could not find anything like this in the configuration and no pointers to something similar in the forum. First of all, I see no sense in letting packet buffers reside in swappable memory areas and/or forcing other memory to be swapped.
Instead of leaving the job of killing the whole of tvheadend to, e.g., the oom killer on Linux, may I suggest the following features:
- Configurable packet buffer memory limit: ignore (current behavior), manual setting, heuristic/automatic setting based on system RAM
- Configurable out-of-memory action: drop frames, stop recording, restart recording
- Side effect: provide meaningful error message, if recording destination is too slow for real-time recording