[mythtv-users] mythfrontend consuming/leaking memory just sitting at the main menu

Ronald Frazier ron at ronfrazier.net
Tue Jun 26 12:15:56 UTC 2012


On Wed, Jun 20, 2012 at 7:00 PM, Ronald Frazier <ron at ronfrazier.net> wrote:
> On Wed, Jun 20, 2012 at 6:27 PM, Michael T. Dean
> <mtdean at thirdcontact.com> wrote:
>> And just to make sure, you ran 0.25-fixes for a while without seeing this
>> issue?  Meaning that it was likely some backport that caused it?
>
> No, I don't think it was a backport. I've been having this issue for
> quite a few months. Definitely before 0.25 was released. I upgraded
> from 0.24 to trunk earlier this year (and then 0.25-fixes when it was
> released). But I can't pinpoint when the problem started in relation
> to when I upgraded. The first couple lockups I passed it off as a
> fluke error, and then for months now I've been thinking it was a
> hardware error. Tried running memtest for 24 hours a few times,
> swapping hardware, etc, but that was all a dead end. A few days ago
> was the first time I witnessed it in progress and got a chance to see
> what was going on.
>
>
>> Also, you might want to try:
>> http://www.gossamer-threads.com/lists/mythtv/dev/520820#520820 , just in
>> case.
>
> Ah, good idea. I definitely didn't do that when I built it today, and
> I'm pretty sure I didn't do it last time I upgraded either, so that's
> a very possible candidate. I'll do that and rebuild tonight, then
> restart my tests.


OK, it's been just over 5 days now. First, I did all of the rm
commands in that link. Then I tried to do the make distclean, but it
gave me an error in mythplugins from mythweather. So instead I deleted
it and did a fresh checkout from git.

The memory usage it still growing. Here's my free swap file, as
reported by "free -m"

Thu Jun 21 00:00:55 2012      7164 MB
Thu Jun 21 06:00:55 2012      7106 MB
Thu Jun 21 12:00:56 2012      7052 MB
Thu Jun 21 18:00:57 2012      6828 MB
Fri Jun 22 00:00:57 2012      6833 MB
Fri Jun 22 06:00:58 2012      6937 MB
Fri Jun 22 12:00:58 2012      6956 MB
Fri Jun 22 18:00:59 2012      6956 MB
Sat Jun 23 00:00:59 2012      6661 MB
Sat Jun 23 06:00:00 2012      6592 MB
Sat Jun 23 12:00:01 2012      6414 MB
Sat Jun 23 18:00:01 2012      6096 MB
Sun Jun 24 00:00:02 2012      5913 MB
Sun Jun 24 06:00:03 2012      5748 MB
Sun Jun 24 12:00:03 2012      5238 MB
Sun Jun 24 18:00:04 2012      4724 MB
Mon Jun 25 00:00:05 2012      4462 MB
Mon Jun 25 06:00:06 2012      4403 MB
Mon Jun 25 12:00:07 2012      3765 MB
Mon Jun 25 18:00:08 2012      3424 MB
Tue Jun 26 00:00:09 2012      3126 MB
Tue Jun 26 06:00:09 2012      3047 MB


Here's mythfrontend, as reported by top:

Thu Jun 21 00:00:02 2012	 3253 mythtv    20   0  681m  93m  34m S    2
 4.8   0:22.66 588m mythfrontend
Thu Jun 21 06:00:01 2012	 3253 mythtv    20   0  682m 115m  27m S    4
 5.9   4:04.29 566m mythfrontend
Thu Jun 21 12:00:01 2012	 3253 mythtv    20   0  746m  90m 5140 S    4
 4.7   7:38.32 655m mythfrontend
Thu Jun 21 18:00:02 2012	 3253 mythtv    20   0  746m  43m 5228 S    2
 2.2  11:42.75 703m mythfrontend
Thu Jun 21 18:33:01 2012	 3253 mythtv    20   0  746m  46m 4864 S    4
 2.4  12:00.40 700m mythfrontend
Thu Jun 21 18:34:02 2012	 3253 mythtv    20   0  746m  46m 4864 S    2
 2.4  12:00.86 699m mythfrontend
Fri Jun 22 00:00:01 2012	 3253 mythtv    20   0  746m  40m 5248 S    4
 2.1  15:35.83 705m mythfrontend
Fri Jun 22 05:03:01 2012	 3253 mythtv    20   0  746m  63m 5116 S    2
 3.3  18:00.13 683m mythfrontend
Fri Jun 22 05:04:01 2012	 3253 mythtv    20   0  746m  63m 5116 S    0
 3.3  18:00.58 683m mythfrontend
Fri Jun 22 06:00:01 2012	 3253 mythtv    20   0  746m  69m 5116 S    2
 3.6  18:26.16 676m mythfrontend
Fri Jun 22 12:00:01 2012	 3253 mythtv    20   0  905m 246m 2820 S    0
12.7  19:53.39 659m mythfrontend
Fri Jun 22 18:00:01 2012	 3253 mythtv    20   0 1187m 517m 2820 S    0
26.6  20:18.02 670m mythfrontend
Sat Jun 23 00:00:02 2012	 3253 mythtv    20   0 1445m 601m 2644 S    0
30.9  20:55.97 844m mythfrontend
Sat Jun 23 06:00:02 2012	 3253 mythtv    20   0 1736m 804m 3544 S    0
41.3  21:19.71 932m mythfrontend
Sat Jun 23 12:00:01 2012	 3253 mythtv    20   0 1994m 909m 2464 S    0
46.7  21:46.29 1.1g mythfrontend
Sat Jun 23 18:00:02 2012	 3253 mythtv    20   0 2317m 877m 2528 S    0
45.1  22:13.72 1.4g mythfrontend
Sun Jun 24 00:00:01 2012	 3253 mythtv    20   0 2575m 968m 2564 S    0
49.7  22:38.94 1.6g mythfrontend
Sun Jun 24 06:00:01 2012	 3253 mythtv    20   0 2833m 1.1g 2192 S    0
55.3  23:13.91 1.7g mythfrontend
Sun Jun 24 12:00:02 2012	 3253 mythtv    20   0 3091m 849m 2136 S    0
43.7  23:45.91 2.2g mythfrontend
Sun Jun 24 18:00:01 2012	 3253 mythtv    20   0 3349m 615m 2144 S    0
31.6  24:18.06 2.7g mythfrontend
Mon Jun 25 00:00:01 2012	 3253 mythtv    20   0 3607m 631m 2072 S    0
32.4  24:56.96 2.9g mythfrontend
Mon Jun 25 06:00:02 2012	 3253 mythtv    20   0 3993m 833m 2172 S    0
42.8  25:22.62 3.1g mythfrontend
Mon Jun 25 12:00:02 2012	 3253 mythtv    20   0 4251m 499m 2056 S    2
25.6  25:55.26 3.7g mythfrontend
Mon Jun 25 18:00:02 2012	 3253 mythtv    20   0 4509m 428m 2036 S    0
22.0  26:38.57 4.0g mythfrontend
Tue Jun 26 00:00:02 2012	 3253 mythtv    20   0 4767m 419m 2040 S    0
21.6  27:22.74 4.2g mythfrontend
Tue Jun 26 06:00:02 2012	 3253 mythtv    20   0 5025m 610m 2140 S    0
31.4  27:47.13 4.3g mythfrontend

And here's some logs indicating the swap file usage (this is in KB,
and is gathered from /proc/<pid>/smaps)

Thu Jun 21 00:00:04 2012	
Thu Jun 21 06:00:03 2012	PID=3253 - Swap used: 10884 - (mythfrontend )
Thu Jun 21 12:00:04 2012	PID=3253 - Swap used: 52908 - (mythfrontend )
Thu Jun 21 18:00:04 2012	PID=3253 - Swap used: 118336 - (mythfrontend )
Fri Jun 22 00:00:04 2012	PID=3253 - Swap used: 121220 - (mythfrontend )
Fri Jun 22 06:00:04 2012	PID=3253 - Swap used: 91400 - (mythfrontend )
Fri Jun 22 12:00:04 2012	PID=3253 - Swap used: 72748 - (mythfrontend )
Fri Jun 22 18:00:04 2012	PID=3253 - Swap used: 72804 - (mythfrontend )
Sat Jun 23 00:00:05 2012	PID=3253 - Swap used: 266636 - (mythfrontend )
Sat Jun 23 06:00:04 2012	PID=3253 - Swap used: 338240 - (mythfrontend )
Sat Jun 23 12:00:04 2012	PID=3253 - Swap used: 506928 - (mythfrontend )
Sat Jun 23 18:00:04 2012	PID=3253 - Swap used: 818752 - (mythfrontend )
Sun Jun 24 00:00:04 2012	PID=3253 - Swap used: 1003000 - (mythfrontend )
Sun Jun 24 06:00:04 2012	PID=3253 - Swap used: 1168564 - (mythfrontend )
Sun Jun 24 12:00:05 2012	PID=3253 - Swap used: 1680104 - (mythfrontend )
Sun Jun 24 18:00:04 2012	PID=3253 - Swap used: 2198408 - (mythfrontend )
Mon Jun 25 00:00:04 2012	PID=3253 - Swap used: 2460760 - (mythfrontend )
Mon Jun 25 06:00:04 2012	PID=3253 - Swap used: 2531676 - (mythfrontend )
Mon Jun 25 12:00:05 2012	PID=3253 - Swap used: 3153800 - (mythfrontend )
Mon Jun 25 18:00:05 2012	PID=3253 - Swap used: 3506580 - (mythfrontend )
Tue Jun 26 00:00:04 2012	PID=3253 - Swap used: 3796924 - (mythfrontend )
Tue Jun 26 06:00:04 2012	PID=3253 - Swap used: 3879464 - (mythfrontend )


This whole time, mythfrontend has just been sitting at the main menu.
I went to test mythfrontend and realized it is now just locked up. It
doesn't respond to arrow keys to scroll through the main menu, nor
does it respond on the network control port (I can establish the
socket connection but never get the welcome message). I'm not sure at
what point the process locked up, but it was functional when I first
booted up.


-- 
Ron Frazier


More information about the mythtv-users mailing list