View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Memory Leak?
PostPosted: Tue Dec 12, 2006 7:55 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
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!

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 4:54 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
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?

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 3:18 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
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

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 12:14 am 
Offline
Joined: Sun Feb 05, 2006 11:59 pm
Posts: 8
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 6:05 am 
Offline
Joined: Fri Mar 10, 2006 8:53 pm
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 9:27 am 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
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.

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 31, 2007 12:34 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
If you are running SVN and have problems, I suggest you file a bug with the MythTV devs.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 31, 2007 12:40 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
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?

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu