[mythtv] [Fwd: [mythtv-users] .21 fixes memory exhaustion -looks like memory problem in 'ticket locking']

belcampo belcampo at zonnet.nl
Wed Jun 25 08:38:52 UTC 2008


Asked this question a few days ago on the users list bit didn't get any 
reaction.

-------- Original Message --------
Subject: [mythtv-users] .21 fixes memory exhaustion -looks like memory 
problem in 'ticket locking'
Date: Fri, 20 Jun 2008 11:09:47 +0200
From: belcampo <belcampo at zonnet.nl>
Reply-To: Discussion about mythtv <mythtv-users at mythtv.org>
To: Discussion about mythtv <mythtv-users at mythtv.org>

Hi all,

Running .21 fixes svn 17487 from a few days ago.

Running on a Mandriva 2008 system, freshly installed yesterday.

Yesterday evening I scheduled several programs, the system hung this
morning at 05:02 with no apparant problems in mythbackend.log
this are the last lines.
2008-06-20 05:02:28.708 adding: mm0.eurobrand.nl as a client (events: 1)
2008-06-20 05:02:30.975 RingBuf(/pvfs/tv/8302_20080620043500.mpg):
Waited 1.0 seconds for data to become available...
2008-06-20 05:02:32.086 RingBuf(/pvfs/tv/8302_20080620043500.mpg):
Waited 2.0 seconds for data to become available...
2008-06-20 05:02:32.603 AFD: Opened codec 0x8234240, id(MPEG2VIDEO)
type(Video)
2008-06-20 05:02:32.730 AFD: codec MP3 has 2 channels
2008-06-20 05:02:32.789 AFD: Opened codec 0x8234830, id(MP3) type(Audio)
2008-06-20 05:02:32.864 AFD: codec MP3 has 2 channels
2008-06-20 05:02:32.914 AFD: Opened codec 0x8234e70, id(MP3) type(Audio)
2008-06-20 05:02:32.975 AFD: Opened codec 0x823af30, id(DVB_SUBTITLE)
type(Subtitle)
2008-06-20 09:26:23.900 Using runtime prefix = /usr
----
Neither does var/log/messages
Jun 20 05:01:02 mm0 crond[5788]: (root) CMD (nice -n 19 run-parts
--report /etc/cron.hourly)
Jun 20 09:26:13 mm0 syslogd 1.4.2: restart.
Jun 20 09:26:13 mm0 kernel: klogd 1.4.2, log source = /proc/kmsg started.
Jun 20 09:26:13 mm0 kernel: Linux version 2.6.17-pnfs-om
(mythtv at mm0.eurobrand.nl) (gcc version 4.2.2 20071128 (prerelease)
(4.2.2-3.1mdv2008.0)) #2 SMP Mon Jun 16 11:55:30 CEST 2008
Jun 20 09:26:13 mm0 kernel: BIOS-provided physical RAM map:
----
I hard rebooted the system, mythcommflag started to run on a program
that started at 01:50 and ended at 04:10.
The system slowed down to a crawl and memory got exhausted.
free -m
               total       used       free     shared    buffers     cached
Mem:           471        466          5          0          0          6
-/+ buffers/cache:        460         11
Swap:          509        509          0
[mythtv at mm0 ~]$ sudo killall mythcommflag
[mythtv at mm0 ~]$ free -m
               total       used       free     shared    buffers     cached
Mem:           471        152        319          0          0         85
-/+ buffers/cache:         67        404
Swap:          509         69        439
------
Top told me, at least I think/believe that mythcommflag is the cause of
this.
Tasks:  96 total,   1 running,  95 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.6%us,  8.0%sy,  0.0%ni,  0.0%id, 89.5%wa,  1.0%hi,  1.0%si,
0.0%st
Mem:    483288k total,   478584k used,     4704k free,        0k buffers
Swap:   522072k total,   522072k used,        0k free,     9400k cached

    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   3416 root      15   0  252m  19m 1256 S  3.1  4.2   0:27.03 mythbackend
   4109 mythtv    16   0  3684  872   56 D  1.2  0.2   0:06.02 wizd
    120 root      15   0     0    0    0 D  0.6  0.0   0:00.58 pdflush
    121 root      15   0     0    0    0 D  0.6  0.0   0:00.59 pdflush
    122 root      15   0     0    0    0 D  0.6  0.0   0:05.55 kswapd0
   3606 root      32  17  871m 383m 1460 D  0.6 81.2  13:21.02 mythcommflag

Now mythcommflag is running again, and one can see increase memory usage
by .1% every few seconds.

Henk Schoneveld

_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-dev mailing list