[mythtv-users] Severe Memory leak in 0.15.1?
John Goerzen
jgoerzen at complete.org
Wed Jul 7 23:19:53 EDT 2004
Hello,
My wife and I were watching TV this evening. MythTV was doing its own
thing -- happing recording whatever, while we were watching Enterprise.
At about 9:30, we went to watch the Bond movie, that it started
recording at 8PM. Surprise -- only 26 minutes recorded, though it did
start at the beginning at 8. Lots of mpeg artifacts, problems, etc.
Upon further investigation, I noticed huge amounts of memory usage. I
don't know what's causing it, but there's no way this is doing what it
should be (top included below). I killed off Apache to get anything
non-required to die (it was doing nothing but serving the Myth web
interface).
I then went back to the frontend to watch the recording, and press P to
pause. Strangely, I noticed the total size ticker moving really slowly.
It would count off one second for about every four seconds that elapsed
in real time. When I resumed, everything seemed to be normal. Looking
at the file recording size, it also appears to be normal.
So I am quite mystified.
Here's a first top:
top - 21:58:37 up 1 day, 4:27, 3 users, load average: 1.37, 1.22, 1.39
Tasks: 58 total, 2 running, 56 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.6% us, 6.6% sy, 0.0% ni, 62.1% id, 0.0% wa, 0.3% hi, 0.3% si
Mem: 224596k total, 221316k used, 3280k free, 328k buffers
Swap: 995988k total, 170956k used, 825032k free, 87540k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
2405 mythtv 15 0 161m 18m 31m S 0.0 8.3 0:04.66 143m mythbackend
3261 www-data 16 0 147m 7248 136m S 0.0 3.2 0:03.61 139m apache
3262 www-data 16 0 142m 4544 136m S 0.0 2.0 0:01.94 138m apache
1738 www-data 16 0 140m 2728 136m S 0.0 1.2 0:01.35 138m apache
1736 root 16 0 137m 1208 136m S 0.0 0.5 0:00.30 135m apache
3258 www-data 16 0 140m 5396 136m S 0.0 2.4 0:01.23 135m apache
1739 www-data 16 0 140m 6172 136m S 0.0 2.7 0:00.45 134m apache
1893 mythtv 15 0 99.8m 11m 40m S 0.0 5.2 1:46.00 88m mythfrontend
1811 root 15 0 110m 27m 44m S 2.3 12.7 17:40.09 82m XFree86
2483 mythtv 15 0 91120 10m 40m S 0.7 5.0 1:19.20 78m mythfrontend
3757 mythtv 15 0 108m 38m 40m S 18.7 17.4 2:06.25 70m mythfrontend
1643 mysql 16 0 70996 14m 7744 S 0.0 6.5 0:00.04 55m mysqld
1878 mythtv 15 0 63224 9.9m 40m S 0.3 4.5 1:24.40 51m mythfrontend
3756 mythtv 16 0 53820 12m 40m S 0.0 5.5 0:01.03 40m mythfrontend
3726 mythtv 16 0 28908 5692 27m S 0.0 2.5 0:00.01 22m kdeinit
3731 mythtv 16 0 29484 6532 27m S 0.0 2.9 0:00.02 22m kdeinit
3729 mythtv 16 0 29008 6096 27m S 0.0 2.7 0:00.02 22m kdeinit
And here it is a few minutes later:
top - 22:14:05 up 1 day, 4:42, 3 users, load average: 2.11, 1.31, 1.19
Tasks: 52 total, 6 running, 46 sleeping, 0 stopped, 0 zombie
Cpu(s): 33.9% us, 6.4% sy, 0.0% ni, 59.2% id, 0.3% wa, 0.1% hi, 0.0% si
Mem: 224596k total, 221200k used, 3396k free, 244k buffers
Swap: 995988k total, 153068k used, 842920k free, 102664k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
2405 mythtv 15 0 161m 18m 31m S 0.0 8.3 0:05.08 143m mythbackend
1893 mythtv 15 0 99.8m 11m 40m R 0.3 5.2 1:49.04 88m mythfrontend
1811 root 15 0 110m 27m 44m R 2.7 12.7 18:26.23 82m XFree86
2483 mythtv 15 0 91120 10m 40m R 0.3 5.0 1:22.06 78m mythfrontend
3757 mythtv 15 0 108m 38m 40m S 21.2 17.4 2:38.19 70m mythfrontend
1643 mysql 16 0 70996 14m 7744 S 0.0 6.5 0:00.04 55m mysqld
1878 mythtv 15 0 63224 9.9m 40m R 0.3 4.5 1:27.21 51m mythfrontend
3756 mythtv 16 0 53820 12m 40m S 0.0 5.5 0:01.06 40m mythfrontend
3726 mythtv 16 0 28908 5692 27m S 0.0 2.5 0:00.01 22m kdeinit
3731 mythtv 16 0 29484 6532 27m S 0.0 2.9 0:00.02 22m kdeinit
3729 mythtv 16 0 29008 6096 27m S 0.0 2.7 0:00.02 22m kdeinit
3733 mythtv 16 0 30400 7836 28m S 0.0 3.5 0:00.18 22m kdeinit
1702 xfntserv 16 0 15764 3348 2592 S 0.0 1.5 0:00.47 12m xfs-xtt
3973 root 15 0 6344 1792 5748 R 0.0 0.8 0:00.17 4552 sshd
1844 mythtv 16 0 5180 1552 4748 S 0.0 0.7 0:01.09 3628 fluxbox
1592 Debian-e 15 0 4204 752 3848 S 0.0 0.3 0:00.00 3452 exim4
My mythtv user (which runs the frontend) has about 16M of complains in
its .xsession-errors, such as:
[mpeg2video @ 0x407d2490]invalid mb type in I Frame at 0 28
[mpeg2video @ 0x407d2490]invalid mb type in I Frame at 0 29
[mpeg2video @ 0x407d2490]concealing errors
[mpeg2video @ 0x407d2490]skiped MB in I frame at 42 4
[mpeg2video @ 0x407d2490]invalid mb type in I Frame at 0 25
[mpeg2video @ 0x407d2490]invalid mb type in I Frame at 0 26
[mpeg2video @ 0x407d2490]skiped MB in I frame at 2 27
There's nothing weird in the backend log.
Only weird thing that happened was my first attempts to run the
transcoder on a program failed earlier today.
Any ideas?
-- John
More information about the mythtv-users
mailing list