View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: R5B7 - memory leaks ?
PostPosted: Tue Mar 28, 2006 1:39 pm 
Offline
Joined: Thu Jun 23, 2005 1:20 am
Posts: 148
Hi *

Few weeks ago I upgrade from A22 to B7 - smoothly & without problem (minor issue was LVM migration script - it expect standard volume name vg. If you have other name - script goes wrong...)

What take my attention: during standard work (2-3 programs recorded daily) I see constant increasing allocated memory by mythfrontend process:

at start it was 178M virtual & 208M res (0 swap)
after few days it was 240M virtual, 210M res (80M swap)
after week it is 608M virt, 216M res (350M swap)

I have observation constant increase of res & swap :-(

It was not a case for A22 - so I suspect memory leaks in B7.

I'm wonder what is mem consumption in other peoples ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 8:01 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
Does restarting the frontend free up the memory? You could see if there is a ticket open
for the issue at http://svn.mythtv.org/trac, if not you could open one..

I added this to my /etc/crontab to see if I am having the same issue.

========== created /root/leaking first ========

55 23 * * * root free > /root/leaking/`date +%m%d%y`


Last edited by mac on Tue Mar 28, 2006 9:51 pm, edited 2 times in total.


Top
 Profile  
 
PostPosted: Tue Mar 28, 2006 8:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Warped wrote:
Few weeks ago I upgrade from A22 to B7 - smoothly & without problem (minor issue was LVM migration script - it expect standard volume name vg. If you have other name - script goes wrong...)

Duh-oh! :oops: Sigh... I should probably parse the output of the vgscan to verify the name... The only problem I foresee with that is the multiple VGs case... :? Hmmm...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 9:59 am 
Offline
Joined: Sun Dec 04, 2005 1:44 pm
Posts: 403
Location: Central NJ
I never really looked before this week, (because it was only an SD system running R5A26) but last week I setup R5B7, an HD5000, and a 1080i modeline and went to a full HD system. Now I can see that my system constantly uses almost all of my 1GB of memory, which seems a little high to me.

It seems to grab all but about 15MB of memory. (TOP reports back about 15MB free.) My swap usage says 0, so apparently it hasn't maxed out the memory and hit the swap.

I very well could be wrong, but I'm also thinking memory leak.

_________________
Currently running: R5.5, HD5000 x 2, PVR150, Athlon 64 3000+, Chaintech VNF4, 1GB RAM, 2 x 250GB in LVM, MSI NX6200TC -> AA 9A60 -> HDTV


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 11:43 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
well most any linux system at any time will be using almost all of your physical RAM because it pages to it to improve performance. If you are not using swap you are ok. The poster above however is using swap, so that is curious.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 12:26 pm 
Offline
Joined: Sun Dec 04, 2005 1:44 pm
Posts: 403
Location: Central NJ
Good to know...in the Windows world it doesn't work that way, so I assumed Linux handled memory similarly.

Thanks!

_________________
Currently running: R5.5, HD5000 x 2, PVR150, Athlon 64 3000+, Chaintech VNF4, 1GB RAM, 2 x 250GB in LVM, MSI NX6200TC -> AA 9A60 -> HDTV


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 30, 2006 2:39 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
I can say with some certainty that I don't have a memory leak. We tape about 4 hours per
day..

Code:

root@mythtv:~/leaking# uptime
 16:36:03 up 23 days,  1:13,  3 users,  load average: 0.00, 0.00, 0.00

======== Sun Apr 30 15:55:02 UTC 2006 =========
             total       used       free     shared    buffers     cached
Mem:        514776     508520       6256          0      22860     288376
-/+ buffers/cache:     197284     317492
Swap:       915696          0     915696


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 30, 2006 9:01 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Can't say that it's a memory leak as I haven't been monitoring it over time, but my system w/ 512MB of memory shows 122MB of swap in use. I halt gdm every night at 1:15AM to prevent "mythhd kernel: NVRM: Xid (0001:00): 16, Head 00000000 Count 00067d5d" errors. Restarting gdm does not increase my swap usage. I've seen people indicate that HD systems runs better with 1GB of RAM, so I suspect my problem is just not enough RAM as opposed to a leak, but I'll check it again in a few days to see if things grow.

Marc

Code:
uptime; free -m
 07:54:42 up 3 days,  4:27,  2 users,  load average: 0.00, 0.00, 0.00
             total       used       free     shared    buffers     cached
Mem:           501        463         38          0         78        179
-/+ buffers/cache:        205        296
Swap:          815        122        693


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 30, 2006 9:33 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
If there's a leak it's not obvious to me either... I've got no swap used after 8 days of uptime.
Code:
root@black2:~# free -m
             total       used       free     shared    buffers     cached
Mem:           501        411         89          0         85         46
-/+ buffers/cache:        279        221
Swap:          666          0        666
root@black2:~# uptime
 11:31:45 up 8 days, 10:58,  3 users,  load average: 0.05, 0.01, 0.00


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 07, 2006 12:56 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
FYI -- I had 73MB of swap in use. I shut down apache (/etc/init.d/apache stop) and swap use when down to 33MB. I restarted apache and swap use stayed at 33MB. Apache is used extensively in my house for mythweb.


Marc


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 07, 2006 7:39 pm 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
I have found that my HD system runs best with 1G of memory. I tried 512M at one time but found that swapping would result -- especially when the commercial flagging started up. The comm flagging seems to take a ton of memory, at least on my system.

I've been running 24/7 on my 1G machine and its very stable over time. It uses most of the memory (at least most of the time) but never seems to go into swapping.

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 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