Actions
Bug #1661
closedtvheadend (on OpenELEC) writes 1kB/min to syslog, slowly eating RAM
Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2013-03-12
Due date:
% Done:
0%
Estimated time:
Found in version:
3.3.491
Affected Versions:
Description
Not related to the previously reported issue, while debugging tvheadend I found it writing continously to the log (3 to 4 entries every 20 seconds). Since this is going to a ramfs (on OpenELEC) it means we are slowly (but eventually) filling RAM. After 4 hours uptime, /var was consuming 840kB, a few minutes later 848kB.
Mar 12 16:38:19 xbmc02 daemon.debug tvheadend[1056]: dvb: "/dev/dvb/adapter0" tuning to "VRTmux1: 666,000 kHz" (Autoscan) Mar 12 16:38:19 xbmc02 daemon.debug tvheadend[1056]: eit: install table handlers Mar 12 16:38:39 xbmc02 daemon.debug tvheadend[1056]: dvb: "/dev/dvb/adapter0" tuning to "VRTmux1: 482,000 kHz" (Autoscan) Mar 12 16:38:39 xbmc02 daemon.debug tvheadend[1056]: eit: install table handlers Mar 12 16:38:40 xbmc02 daemon.debug tvheadend[1056]: eit: begin processing Mar 12 16:38:59 xbmc02 daemon.debug tvheadend[1056]: eit: processing cancelled Mar 12 16:38:59 xbmc02 daemon.debug tvheadend[1056]: dvb: "/dev/dvb/adapter0" tuning to "VRTmux1: 754,000 kHz" (Autoscan) Mar 12 16:38:59 xbmc02 daemon.debug tvheadend[1056]: eit: install table handlers Mar 12 16:38:59 xbmc02 daemon.debug tvheadend[1056]: eit: begin processing Mar 12 16:39:19 xbmc02 daemon.debug tvheadend[1056]: eit: processing cancelled Mar 12 16:39:19 xbmc02 daemon.debug tvheadend[1056]: dvb: "/dev/dvb/adapter0" tuning to "VRTmux1: 482,000 kHz" (Autoscan) Mar 12 16:39:19 xbmc02 daemon.debug tvheadend[1056]: eit: install table handlers Mar 12 16:39:20 xbmc02 daemon.debug tvheadend[1056]: eit: begin processing
Syslog mentions this is debugging information, however option -d is not provided to the process:
xbmc02:~ # ps aux | grep tvheadend 1054 root 0:00 {tvheadend.start} /bin/sh /storage/.xbmc/addons/service.multimedia.tvheadend/bin/tvheadend.start 1056 root 1:27 tvheadend -C -s -u root -g video -c /storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend
So we should teach tvheadend to only report fatal or error conditions to syslog, this would save about 1kB per minute. On a typical day tvheadend is using 138k additional RAM. This is about 4MB/month (on low-memory systems like AppleTV with only 256MB RAM this is quite problematic).
Actions