LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2007, 03:34 AM   #16
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897

Quote:
Originally Posted by jiml8
Commonly linux will take all your ram. If it is not needed for applications, linux will take it for cache. Therefore having it all in use is not a big deal.
Absolutely right. The first mistake that most people make when looking at any perf problem is to say 'all my memory is in use, that's my problem' when all that is just a symptom of linux using RAM aggressively to cache buffers.

Equally, note that having a substantial portion of your swap used doesn't slow you down, per se. What slows you down is traffic to and from the swap file (so if you have 500 megs of swap in use that doesn't make the machine slow necessarily, but if your machine is continuously moving pages to and fro between the swap file, that does slow you down - and both of the two cases may have similar amounts of swap in use, but one has traffic and the other doesn't).

So, I'm going to suggest that you do something very low tech: Look at the hard drive light. Is that continually flashing, even when you are not doing anything obvious (explicitly opening and closing files) to cause it?

BTW, I am currently having a similar problem on a (k)ubuntu box. When 6.06 was originally installed it did not have this problem, but somewhere along the line the problem has started. I think some update has given me a memory leak, which means that slowly 'dead' pages accumulate in memory which eventually leads to performance becoming non-existant. Not ideal. A reboot always cures it.

Quote:
Why? I am not sure. Seems to me it has to be a memory leak in Xorg 7.2. It forces me to restart X about once a week just to clean things up.
I first noticed this problem when I started using Opera's RSS client (and when that's got several thousands of items it seems a bit inefficient with memory). I've changed to using kde's akregator and that seems to have alleviated the problem somewhat, and changing to firefox seems to be a bit better too. My feeling however was that in the underlying infrastructure, some library was actually leaking - the suggestion that it might be x.org is interesting and one I hadn't thought of. I seem to be running x.org 7.0.0.

Because I've changed major apps completely (& given up using OO on this box - even if open Office has no memory leaks, it is undoubtedly big, and big makes the problem worse), I don't think that it is a memory leak within an app itself, but somewhere in the underlying infrastructure.

I've tried setting 'swappiness' down to a lower value, and while that makes the box a little snappier when it first boots, I'm not convinced it does anything about the long term slow down. It may even make things worse when the box really bogs down.
 
Old 08-06-2007, 11:04 AM   #17
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by salasi
So, I'm going to suggest that you do something very low tech: Look at the hard drive light. Is that continually flashing, even when you are not doing anything obvious (explicitly opening and closing files) to cause it?
I am guessing you are talking about swap activity. As jiml8 pointed out in post #4 you can quantify that with the output from vmstat. (And avoid potentially confusing swap activity with file access.) W/o parameters, it will give the average rates of swapping in and out (see man page for units.) You can also have it repeat output at intervals. In which case after the first line, each output reflects what happened during the just elapsed interval. My rule of thumb is that if the swap rates are a small fraction of the possible disk throughput, there is probably not an issue.

BTW, somehow I missed the activity that happened on this thread on Jul 29. In post #2 I was fishing for possible causes. The reason I asked for the output of df was to make sure a clogged disk partition wan't causing the problem. (I don't know that it could, but I was trying to cast a wide net.) Now it is obvious there is no issue with disk space.
 
Old 11-11-2007, 06:14 PM   #18
netsurf
Member
 
Registered: Nov 2004
Location: UK
Distribution: ubuntu 10.04+ distro hopping
Posts: 181

Rep: Reputation: 31
hmm i am having similar problems like this with xorg swallowing masses of ram on fedora 7. using fglrx driver however if this makes a difference. i have noticed that openoffice does also use an incredible amount of ram also. having a couple of documents open with embedded pictures makes it use 480m of ram with xorg using another 400ish that doesnt leave alot left for the system. does xorg amass the combined memory usage of all x11 programs or something?
 
Old 11-11-2007, 07:01 PM   #19
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by netsurf View Post
does xorg amass the combined memory usage of all x11 programs or something?
My experience is that as additional windows are opened, X will consume more RAM. I am guessing this is basically where it "draws the pictures." I have a system that is a bit starved for RAM. As a result, it is normal for a significant part of X to be swapped. For example, right now, X has aprox 21 MB resident and 22 MB swapped. This shows up sometimes when I switch desktops (workspaces) where it takes a couple of seconds to repaint the screen.

I am just surmising from my experience. I have not looked at X source code.

(BTW, I would not think of trying to open OpenOffice.org on this RAM starved machine! I leave that for machines that were actually made this century. )
 
Old 11-12-2007, 03:02 PM   #20
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Quote:
Originally Posted by jonrpick View Post
Here's the current Top output:

Code:
top - 14:48:08 up 15 min,  1 user,  load average: 0.50, 0.40, 0.34
Tasks: 110 total,   1 running, 109 sleeping,   0 stopped,   0 zombie
Cpu(s): 16.4%us,  3.8%sy,  0.0%ni, 72.2%id,  7.4%wa,  0.2%hi,  0.0%si,  0.0%st
Mem:   1024808k total,   744392k used,   280416k free,    63716k buffers
Swap:  2097144k total,        0k used,  2097144k free,   433920k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 2948 pickens   15   0  182m  55m  21m S  3.9  5.6   0:35.35 firefox-bin        
 3009 pickens   15   0  2200  900  700 R  1.9  0.1   0:00.02 top                
    1 root      15   0  2040  648  556 S  0.0  0.1   0:00.81 init               
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0        
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
Overall, it's a huge improvement, but I still think the 744392k of used RAM is a bit excessive... I could be wrong.

~jp
433920k of that is disk cache

Keith
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.11.10 much slower than 2.6.8 Ankardo Linux - Newbie 2 06-07-2005 09:25 AM
Why is Mandrake/KDE getting slower and slower? KWTm Mandriva 12 09-28-2004 09:43 PM
New to Linux - Slower than XP? osxjamie Linux - Software 8 09-17-2004 11:40 AM
Internet connection becomes slower and slower. caesius_01 Linux - General 1 03-14-2004 02:59 PM
Surfing gets slower and slower knotty Linux - Newbie 3 07-09-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration