[mythtv-commits] Ticket #5545: Mythbackend fills up memory till it crashes (~2GByte VSZ, 700MByte RSS)

MythTV mythtv at cvs.mythtv.org
Tue Jul 15 17:00:42 UTC 2008


#5545: Mythbackend fills up memory till it crashes (~2GByte VSZ, 700MByte RSS)
-----------------------------------------+----------------------------------
 Reporter:  AntiCat (mythtv at anticat.ch)  |       Owner:  ijr    
     Type:  defect                       |      Status:  new    
 Priority:  major                        |   Milestone:  unknown
Component:  mythtv                       |     Version:  head   
 Severity:  medium                       |     Mlocked:  0      
-----------------------------------------+----------------------------------
 I have a memory leak on my mythtv. It started when I switched from an old
 fashion tv (analog) card to a DVB-C card.
 The amount of memory growth changes between idle and
 recording.
 If I am recording the leek is about 5-10x higher then in idle.
 (In Idle mode mythtv is scanning my channels for EIT data. I do not
 use any XML grabber as our broadcaster offers 7 Days of EPG on a
 transport stream.)

 I tried to produce vallgrind logs, however I can not keep valgrind
 running for a long time as it kills the rest of my system: 99% CPU usage
 during recording -> frameloss and mythweb not working properly.

 I hope all needed information is included. If you need any additional info
 let me know. The problem happens in the 21.fixes branch to. I just
 switched to trunk in the hope it would be less segnificant there.

 {{{
 Operating System:
 =================
 Gentoo  - Pentium 4 (without HT) 1GByte Ram.
 Kernel  - 2.6.24-gentoo-r8
 TV-Card - Teratec Cynergy DVB-C Card
 }}}

 {{{
 g++ -v
 ======
 Using built-in specs.
 Target: i686-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
 --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
 --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
 --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
 --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4
 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
 --enable-nls --without-included-gettext --with-system-zlib
 --disable-checking --disable-werror --enable-secureplt
 --disable-libunwind-exceptions --disable-multilib --enable-libmudflap
 --disable-libssp --disable-libgcj --with-arch=i686
 --enable-languages=c,c++,treelang,fortran --enable-shared
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 Thread model: posix
 gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)
 }}}

 {{{
 MythTV Version
 ==============
 Source: Trunk
 Revision: 17733
 Configured with:
 --prefix=/usr --mandir=/usr/share/man --libdir-name=lib
 --disable-audio-alsa --disable-altivec --disable-audio-jack
 --enable-libx264 --enable-glx-procaddrarb --enable-dvb
 --disable-firewire --disable-lirc --disable-audio-arts
 --disable-directfb  --dvb-path=/usr/include --enable-xv
 --enable-opengl-vsync --enable-xrandr --enable-x11 --enable-mmx
 --with-bindings=perl,python --compile-type=debug --tune=i686
 --disable-distcc --disable-ccache
 }}}

 Mythfrontend was not running during valgrind test.

 I am currently restarting mythbackend with a cron job twice a week to
 guarantee proper operating. If I keep it open longer it is killed due to
 extensive memory allocation.

 message lissted in kernel-ringbuffer:
 {{{
 "mythbackend[5177]: segfault at 000002ed eip b5177f12 esp a9dfea10 error
 4"
 }}}

 VSZ, RSS Statistic is (1 line every full hour):
 {{{
 USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
 mythtv   10319  0.8  5.5 263340 57436 ?        Ssl  10:26   0:17
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.4  5.2 260244 54872 ?        Ssl  10:26   0:25
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3  5.0 257548 52020 ?        Ssl  10:26   0:31
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3  4.7 254200 49108 ?        Ssl  10:26   0:43
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3  4.4 251104 45912 ?        Ssl  10:26   0:51
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2  4.1 248008 42660 ?        Ssl  10:26   0:57
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.5 19.2 430296 199012 ?       Ssl  10:26   2:06
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 20.3 433868 211160 ?       Ssl  10:26   1:15
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 20.3 433868 211168 ?       Ssl  10:26   1:26
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 20.3 434384 211212 ?       Ssl  10:26   1:36
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.5 33.4 587320 346912 ?       Ssl  10:26   3:35
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.4 40.5 652888 420360 ?       Ssl  10:26   2:49
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.4 52.1 774624 540752 ?       Ssl  10:26   3:15
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.8 851948 620480 ?       Ssl  Jul14   2:34
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.6 852480 618476 ?       Ssl  Jul14   2:41
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 59.4 852480 616228 ?       Ssl  Jul14   2:48
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 852480 616468 ?       Ssl  Jul14   3:13
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 852480 616468 ?       Ssl  Jul14   3:20
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 852480 616468 ?       Ssl  Jul14   3:26
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 852480 616468 ?       Ssl  Jul14   3:36
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 852480 616476 ?       Ssl  Jul14   3:43
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 59.5 852480 616492 ?       Ssl  Jul14   3:49
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853128 616652 ?       Ssl  Jul14   4:11
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853128 616652 ?       Ssl  Jul14   4:18
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.2 59.5 853264 616680 ?       Ssl  Jul14   4:24
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853264 616740 ?       Ssl  Jul14   4:45
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853396 616824 ?       Ssl  Jul14   5:08
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853396 616880 ?       Ssl  Jul14   5:13
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853532 616944 ?       Ssl  Jul14   5:22
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 59.5 853532 617048 ?       Ssl  Jul14   5:40
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 71.4 997060 739780 ?       Ssl  Jul14   6:46
 /usr/bin/mythbackend --verb...
 mythtv   10319  0.3 71.9 1000956 745716 ?      Ssl  Jul14   5:54
 /usr/bin/mythbackend --verb...
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5545>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list