You are not logged in.

#1 2005-09-19 22:26:56

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Memory leaks?

I've been monitoring my machine, its been up for 5 days. and its memory usage is always close to full. Fine, acceptable but whats rather odd is that swap usage has increased. I didnt run any additional programs compared to 2 days ago. 2 days ago, my swap usage was around 200000k used.

Now:
Mem:    502956k total,   495408k used,     7548k free,    10168k buffers
Swap:   666656k total,   549824k used,   116832k free,    80328k cached

Im running at the moment, Call of Duty: United Offensive server, firefox, opera, valknut, amsn and gnome.

Is this one of the signs of memory leaks?
How do I detect the culprit causing this memory leak?

Offline

#2 2005-09-19 22:32:58

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Memory leaks?

hotplainrice wrote:

How do I detect the culprit causing this memory leak?

Kill the big apps one at a time and monitor for a bit.  See if you still notice the same thing.

Offline

#3 2005-09-19 23:06:53

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Memory leaks?

Do you use the ck patchset?  I remember reading somewhere about it doing something where swap was filled halfway to help with prefetching or something... that might be the problem?

Offline

#4 2005-09-20 00:04:33

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: Memory leaks?

ck patchset nope, on pacmans scsi 2.6 kernel smile

ill try that phrakture.. thanks.

Offline

#5 2005-09-20 00:15:07

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: Memory leaks?

I killed valknut and noticed nothing.
Then i looked at top, and sorted apps by VIRT.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13560 hpr       15   0  424m 122m 2988 S  1.3 25.0  30:06.91 operamotifwrapp
8497  root      15   0  252m  83m 3404 S  2.0 17.0  77:27.59 X
13083 hpr       15   0  166m  59m 2192 S  0.0 12.2  12:03.61 coduo_lnxded
14834 hpr       16   0  105m  31m  18m S  1.0  6.5   0:04.15 firefox-bin
13547 hpr       15   0 61812  27m 8008 S  0.3  5.6   7:28.53 opera

What should be the average VIRT size for operamotifwrapp?
Yea, I know thats the culprit.
Is it normal for X to eat up 252megs and Firefox with 106 megs?
Correct me if im seeing the numbers wrongly because me myself, I dont really understand VIRT, I assume its the storage on ram and swap added together.

Offline

#6 2005-09-20 00:17:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Memory leaks?

It could be xorg.  Sometime I check my system and xorg's memory usage increases after a while for no apparent reason.

Offline

#7 2005-09-20 05:13:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Memory leaks?

for the record, you should be able to ignore the virtual size, as that includes crap like shared libraries and files loaded.  It's wierd....
For instance if procA is 5K, procB is 10K, and procC is 15K, and procA and procB both load the same shared library for an extra 5K, it's going to look like this:

       VIRT   RES  SHR
procA  10K     5K   5K
procB  15K    10K   5K
procC  15K    15K   0K

So, it's probably best to check out the resident size instead (RES)

Back on topic:
My X never even touches that much ram.... I can post my actual top output later...

Offline

#8 2005-09-20 07:07:21

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Memory leaks?

My X uses amount of RAM similar to
hotplainrice

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
5374 root      15   0  213m  73m 3112 S  0.7  7.5  44:26.84 X  

BTW, it's the xorg in testing. I don't use anything fancy. And as I said it is much lower just after X has started.  :?

Offline

#9 2005-09-20 07:19:46

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: Memory leaks?

Woohhooo (homer style)

top - 17:13:26 up 5 days, 15:44,  2 users,  load average: 0.61, 0.90, 0.47 
Tasks:  88 total,   1 running,  86 sleeping,   0 stopped,   1 zombie
Cpu(s): 33.3% us, 11.1% sy,  0.0% ni, 50.0% id,  0.0% wa,  5.6% hi,  0.0% si 
Mem:    502956k total,   223612k used,   279344k free,     4112k buffers
Swap:   666656k total,    97476k used,   569180k free,    55268k cached 
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 
13083 hpr       15   0  166m  57m 2096 S  0.0 11.8  13:46.24 coduo_lnxded 
14972 hpr       15   0 91488  32m  19m S  1.3  6.6   0:03.81 firefox-bin  
 8497 root      15   0 53432  27m 3584 S  1.3  5.7  80:24.32 X
 8546 hpr       15   0 25336  12m 3564 S  0.0  2.6   3:3].14 metacity 
14615 hpr       15   0 30348  12m 2784 S  0.0  2.5   1:31.07 wish
 8592 hpr       15   0 38116 9236 5372 S  0.0  1.8   0:07.87 nautilus  
 8594 hpr       15   0 33480 6632 4476 S  0.0  1.3   0:08.49 gnome-panel
 8599 hpr       15   0 35664 6484 2868 S  0.0  1.3   3:54.75 gnome-terminal  
 8635 hpr       15   0 23328 5580 4080 S  0.0  1.1   0:52.52 wnck-applet
 8646 hpr       15   0 22324 2356 1820 S  0.0  0.5   1:51.99 mixer_applet2  
 8644 hpr       16   0 21216 2264 1696 S  0.0  0.5   1:44.98 clock-applet
 8537 hpr       16   0 12116 1732  812 S  0.0  0.3   0:12.76 gconfd-2  
 8648 hpr       15   0 19032 1728 1312 S  0.0  0.3   0:00.66 notification-ar
14967 hpr       17   0  4888 1380 1068 S  0.0  0.3   0:00.00 run-mozilla.sh 
14955 hpr       17   0  4756 1376 1088 S  0.0  0.3   0:00.00 firefox
13601 root      16   0  4676 1368 1184 S  0.0  0.3   0:00.06 bash
13093 hpr       16   0  4932 1268 1100 S  0.0  0.3   0:00.07 bash

It only took the killing of opera!
Thats it.
So do I post a bug?

Offline

#10 2005-09-20 19:51:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Memory leaks?

hotplainrice wrote:

It only took the killing of opera!
Thats it.
So do I post a bug?

To Opera? Sure. The Arch devs didn't make Opera... it's whats called an "upstream bug" - i.e. not-arch's-fault

Offline

#11 2005-09-20 23:43:24

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: Memory leaks?

Installing opera 8.5 from source solved it.

Offline

#12 2005-09-21 01:51:53

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Memory leaks?

From source? Uhh... Wouldn't that be illegal? lol

Offline

#13 2005-09-21 02:26:32

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Memory leaks?

Gullible Jones wrote:

From source? Uhh... Wouldn't that be illegal? lol

big_smile


·¬»· i am shadowhand, powered by webfaction

Offline

#14 2005-09-24 03:05:35

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: Memory leaks?

ehehe.. from the tarball..

Offline

#15 2005-09-24 19:46:38

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Memory leaks?

http://www.opera.com/download/linux.htm … &x=75&y=31

maybe someone should supply them with a PKGBUILD...

Offline

Board footer

Powered by FluxBB