Project

General

Profile

Bug #1661

tvheadend (on OpenELEC) writes 1kB/min to syslog, slowly eating RAM

Added by Dag Wieers over 11 years ago. Updated over 11 years ago.

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).

History

#1

Updated by Adam Sutton over 11 years ago

  • Status changed from New to Invalid

OK, gonna bounce this one to OE, this is a packaging issue.

-s means enable debug to syslog. I admit the cmd line options are entirely obvious, but unfortunately I don't want to change them now (at least not the existing ones) to ensure backwards compatibility.

However without (-s) TVH will still output standard INFO/WARN/ERROR/etc messages to syslog, this is the default for official (deb) packages.

Adam

Also available in: Atom PDF