LinHES Forums http://forum.linhes.org/ |
|
Memory Leak? http://forum.linhes.org/viewtopic.php?f=17&t=12955 |
Page 1 of 1 |
Author: | WattoToydarian [ Tue Dec 12, 2006 7:55 pm ] |
Post subject: | Memory Leak? |
I am running the latest MythTV svn (12247) and lately I've been having to restart my knoppmyth box about 1-3 times a day after seeing 90-100% swap usage and backend crashes. Isn't it true that when the swap space in Linux gets used a lot that it means there is a memory leak? Is anyone else having this problem? How do you test for memory leaks? Here is my top after 25min (I will post my top with high swap usage later): Code: top - 19:50:55 up 25 min, 2 users, load average: 0.02, 0.03, 0.04 Tasks: 80 total, 2 running, 78 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% us, 7.3% sy, 0.0% ni, 88.0% id, 0.0% wa, 0.0% hi, 4.3% si Mem: 513120k total, 352116k used, 161004k free, 10732k buffers Swap: 104412k total, 0k used, 104412k free, 161000k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5647 mythtv 0 0 153m 86m 15m S 5.7 17.4 1:26.92 mythfrontend This is the error I get when the backend crashes: Code: 2006-12-12 19:19:52.396 TFW, Error: Write() -- IOBOUND begin cnt(9400) free(1339)
2006-12-12 19:19:54.636 Unknown file transfer socket: 0 2006-12-12 19:19:55.269 MythSocket(868c990:-1): writeStringList: Error, socket went unconnected. 2006-12-12 19:19:55.269 TFW, Error: Write() -- IOBOUND end 2006-12-12 19:20:00.189 Event socket closed. No connection to the backend. Thanks in advance! |
Author: | WattoToydarian [ Thu Dec 14, 2006 4:54 pm ] |
Post subject: | |
Ok here is my current top output: Code: top - 16:44:33 up 1 day, 21:19, 2 users, load average: 1.02, 0.79, 0.37
Tasks: 85 total, 1 running, 84 sleeping, 0 stopped, 0 zombie Cpu(s): 64.3% us, 6.9% sy, 0.0% ni, 17.5% id, 0.7% wa, 0.0% hi, 10.6% si Mem: 513120k total, 504716k used, 8404k free, 1592k buffers Swap: 104412k total, 104384k used, 28k free, 295016k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5647 mythtv 0 0 383m 156m 70m S 69.9 31.2 356:51.81 mythfrontend 5531 root 0 0 61400 22m 5972 S 1.3 4.5 44:42.67 X 3533 root 0 0 0 0 0 S 0.4 0.0 12:14.44 lirc_pvr150 5254 root 0 0 0 0 0 S 0.2 0.0 4:46.88 kdvb-fe-1 5272 root 1 0 0 0 0 S 0.2 0.0 12:30.12 kdvb-fe-0 1 root 0 0 156 64 36 S 0.0 0.0 0:05.49 init I think I'm gunna restart it soon. Is there a way I can export some of the swap and post it here for someone to look at or would that not work? |
Author: | alien [ Fri Dec 15, 2006 3:18 am ] |
Post subject: | |
You might want to try taking this over to the mythtv mailing lists. Reporting a problem like this on those lists is more likely to result in a fix as this is specific to mythtv code. That being said, I have seen signs of memory gobblers in various SVN versions. You might just try a different version. As an aside: Memory leaks are unrecoverable loss of memory which is very rare in linux. Looking at your top output, mythfrontend is a memory gobbler. If you simply restart the frontend, the memory should be recovered. Easier that a whole reboot. Allen |
Author: | locutus42 [ Tue Jan 30, 2007 12:14 am ] |
Post subject: | |
interesting, you're running 512MB of memory and mythfrontend is around 17% in R5D1 my R5E50 with 512MB of memory has mythfrontend at 34% memory. Just an observation since I found that R5E50 is too much for my AMD 2600+ w/512MB doing HD. Previously, R5B1 worked fine except for ff/rr lockups and blinking overlays. |
Author: | Tremor [ Tue Jan 30, 2007 6:05 am ] |
Post subject: | |
I have been having to restart a lot as well. Looking at the graph for memory I was steadily climbing before the crash. For the past day or so I have not run the frontend and now my box has been fine and the graphs have leveled out. I am only running 384MB memory and 1 PVR150. Tremor |
Author: | WattoToydarian [ Tue Jan 30, 2007 9:27 am ] |
Post subject: | |
locutus42 wrote: interesting, you're running 512MB of memory and mythfrontend is around 17% in R5D1
my R5E50 with 512MB of memory has mythfrontend at 34% memory. Just an observation since I found that R5E50 is too much for my AMD 2600+ w/512MB doing HD. Previously, R5B1 worked fine except for ff/rr lockups and blinking overlays. This may be because I dont have all the plugins installed. |
Author: | cecil [ Wed Jan 31, 2007 12:34 pm ] |
Post subject: | |
If you are running SVN and have problems, I suggest you file a bug with the MythTV devs. |
Author: | WattoToydarian [ Wed Jan 31, 2007 12:40 pm ] |
Post subject: | |
I talked to a guy on the irc channel about it and were not sure if it's a problem with mythtv because I'm almost the only one with the problem. So, it might be a hardware issue... Could a "walking wounded" motherboard cause a memory leak? |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |