Personal computing discussed

Moderators: renee, SecretSquirrel, notfred

 
zer0
Gerbil
Topic Author
Posts: 89
Joined: Mon Oct 22, 2007 9:12 am
Location: New York

Ubuntu 7.10 hogging RAM

Wed May 14, 2008 9:53 pm

I don't know why, but Ubuntu seems to be running very slowly lately. I'm running it on an older Dell Dimension with a 2.53ghz P4 and 1GB of RAM. Its idling with only Mozilla Thunderbird and two BitTornado clients running, and it seems to be using almost 1,000,000K of memory, however, none of the processes listed seem to be using a high percentage of memory, so I'm not really sure whats going on. Anyway. I took a screen shot of top running, since trying to redirect output to a text file didn't work out so well (I'm still learning...). I was hoping you guys might be able to take a look and possibly give me some insight here as to what's causing the high memory usage and how to cut it back, since my machine is really starting to crawl...

Image
Last edited by zer0 on Thu May 15, 2008 8:09 am, edited 1 time in total.
I think the vast majority of people who tell you they have a virus actually mean 'I keep my pictures in the system32 folder and occasionally delete things at random'.

"it boots up so fast the desktop icons fly right off the screen..."
 
SecretSquirrel
Minister of Gerbil Affairs
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Ubuntu 7.10 hogging RAM

Wed May 14, 2008 10:18 pm

In top, hit 'O' (capital oh) then select either 'n' or 'q' as the sort field. It is quite possible that you have some other "heavy" memory use processes that simply aren't showing up in the limited 'top' process list.

--SS
 
Usacomp2k3
Gerbil God
Posts: 23043
Joined: Thu Apr 01, 2004 4:53 pm
Location: Orlando, FL
Contact:

Re: Ubuntu 7.10 hogging RAM

Wed May 14, 2008 10:49 pm

Only 100mb out of 1024? What's the problem?
 
titan
Grand Gerbil Poohbah
Posts: 3376
Joined: Mon Feb 18, 2002 7:00 pm
Location: Great Smoky Mountains
Contact:

Re: Ubuntu 7.10 hogging RAM

Wed May 14, 2008 11:53 pm

Usacomp2k3 wrote:
Only 100mb out of 1024? What's the problem?

That's what I was thinking!
Until I realized he left out a zero and a comma. If you look at the top output it shows 977,172k used and only 57,756k free.

To the OP, try typing "free" at the command line and post its output here.
The best things in life are free.
http://www.gentoo.org
Guy 1: Surely, you will fold with me.
Guy 2: Alright, but don't call me Shirley.
 
bitvector
Grand Gerbil Poohbah
Posts: 3293
Joined: Wed Jun 22, 2005 4:39 pm
Location: San Francisco, CA

Re: Ubuntu 7.10 hogging RAM

Thu May 15, 2008 12:32 am

Well, according top, 385M is for buffer cache, so that can be thought of as "free" memory, since it will be discarded when there is memory pressure. On an OS like Linux, all of your memory is going to be in use soon after you boot up by design (because whatever would be free will go to buffer cache).

The fact that all of your memory is "in use" isn't an issue by itself. However, you are using 631MB of swap. Just speculating, but some process (or processes) may have a large virtual memory footprint due to internal memory leaks where they leave large amounts of dead data in their address space but unfreed. Pages containing data that is dead to the application will eventually get paged out because they haven't been used in a long time. The OS doesn't know that they'll never be used again, so it has to save them in swap if it wants to remove them from RAM. You can try restarting various long-running apps to see if your swap footprint goes down a lot after certain ones terminate.

Also, why is your load average around 2? It doesn't look like it's from heavy CPU usage, so are there processes doing heavy I/O? That could give the system a sluggish feeling. Also, emerald looks like it is using a relatively large amount of memory (almost 250MB resident). Maybe you should turn off 3D desktop effects.
 
notfred
Maximum Gerbil
Posts: 4610
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: Ubuntu 7.10 hogging RAM

Thu May 15, 2008 8:58 am

Don't worry about the memory side of things, Linux uses memory as cache for disk when it needs to and that is what you are seeing.

Almost half of your processor power is going into driving the fancy graphics effects, I would turn them off. Running two bittorrents is also causing a lot of drive activity (CPU is showing wait time), I bet if you do an "iostat -x 3" then you'll see a high disk utilisation. Killing off the 3d effects will help free some more memory for it to use as cache for the hard drive.

One other thought is how do you have your partitions mounted? If you are running ext3 then try adding the options "noatime,nodiratime,data=writeback" to them. I think Ubuntu does the noatime by default, but if it hasn't that can speed up your disk access substantially. The "noatime,nodiratime" apply to all fs types, the "data=writeback" is an ext3 speed optimisation at the expense of potentially having deleted data reappear after a crash - if your system doesn't crash it's safe to use.
 
zer0
Gerbil
Topic Author
Posts: 89
Joined: Mon Oct 22, 2007 9:12 am
Location: New York

Re: Ubuntu 7.10 hogging RAM

Thu May 15, 2008 5:49 pm

titan wrote:
try typing "free" at the command line and post its output here.


             total       used       free     shared    buffers     cached
Mem:       1034928    1020456      14472          0       3024     292100
-/+ buffers/cache:     725332     309596
Swap:      1646620     746528     900092


Also, how do I turn off emerald? If I just disable window decorations through compiz, I have no title bars on any of my windows. How do I turn off emerald and just go back to using GNOME's themes?
I think the vast majority of people who tell you they have a virus actually mean 'I keep my pictures in the system32 folder and occasionally delete things at random'.

"it boots up so fast the desktop icons fly right off the screen..."
 
Usacomp2k3
Gerbil God
Posts: 23043
Joined: Thu Apr 01, 2004 4:53 pm
Location: Orlando, FL
Contact:

Re: Ubuntu 7.10 hogging RAM

Thu May 15, 2008 10:42 pm

sudo apt-get remove emerald?

(note, I have no idea)
 
zer0
Gerbil
Topic Author
Posts: 89
Joined: Mon Oct 22, 2007 9:12 am
Location: New York

Re: Ubuntu 7.10 hogging RAM

Thu May 15, 2008 10:48 pm

I'm just afraid that if I uninstall it, I won't be able to get my damned title bars back. Whenever I disable window decorations, they disappear. I'm worried that if I just uninstall emerald, it won't automatically revert back to the GNOME theme.

Anyone know for sure?
I think the vast majority of people who tell you they have a virus actually mean 'I keep my pictures in the system32 folder and occasionally delete things at random'.

"it boots up so fast the desktop icons fly right off the screen..."
 
Pilok
Gerbil
Posts: 11
Joined: Sat Mar 01, 2008 4:07 pm
Location: British Isles

Re: Ubuntu 7.10 hogging RAM

Fri May 16, 2008 4:43 am

I'm not a current linux user, but I'm quite sure that it you disable compiz, the window manager will return to metacity, meaning you will will be using gnome window decorations.

Perhaps this port of Scaled Black for metacity will help?
http://gnome-look.org/content/show.php/ ... tent=54773
Core Duo [email protected] 0.95V, 2GB 667MHz DDR2, Mobility X1600@310/278 128MB
 
zer0
Gerbil
Topic Author
Posts: 89
Joined: Mon Oct 22, 2007 9:12 am
Location: New York

Re: Ubuntu 7.10 hogging RAM

Fri May 16, 2008 5:36 pm

Emerald seems to be the only thing sucking up memory. Compiz itself doesn't seem to be such a drain. Ideally, I'd like to ditch Emerald without losing compiz in the process. I might try to just remove emerald and hope for the best. If anyone has any ideas, by all means let me know, otherwise I'll just try doing that when I get the chance and see what happens...
I think the vast majority of people who tell you they have a virus actually mean 'I keep my pictures in the system32 folder and occasionally delete things at random'.

"it boots up so fast the desktop icons fly right off the screen..."
 
hypocratus
Gerbil In Training
Posts: 9
Joined: Fri Mar 25, 2005 3:55 pm

Re: Ubuntu 7.10 hogging RAM

Fri May 16, 2008 6:09 pm

You can switch by pressing alt+F2 to get a run dialog box and then type metacity --replace
This will switch the engine over to metacity. If you want to switch back to compiz then type compiz --replace
You might be able to switch your theme from emerald using the themes option which is under System->Preferences->Appearance
Hope that helps.
The Horrible Gnome of Nie
All that he could see
Was, ulp, me.
 
bthylafh
Maximum Gerbil
Posts: 4320
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: Ubuntu 7.10 hogging RAM

Fri May 16, 2008 6:13 pm

Mounting volumes with noatime is outdated as of Ubuntu 8.04. It automatically mounts volumes with relatime instead, which is a new option that only updates atime when it's IIRC more recent than the other times. Beats noatime because there are some programs (like mutt) that rely on atime for certain things.
Hakkaa päälle!
i7-8700K|Asus Z-370 Pro|32GB DDR4|Asus Radeon RX-580|Samsung 960 EVO 1TB|1988 Model M||Logitech MX 518 & F310|Samsung C24FG70|Dell 2209WA|ATH-M50x
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Ubuntu 7.10 hogging RAM

Sat May 17, 2008 8:45 am

bthylafh wrote:
Mounting volumes with noatime is outdated as of Ubuntu 8.04. It automatically mounts volumes with relatime instead, which is a new option that only updates atime when it's IIRC more recent than the other times.

Actually, it only updates it if the previous atime is older than the other times. Found a post at kerneltrap that explains it.
Nostalgia isn't what it used to be.
 
bthylafh
Maximum Gerbil
Posts: 4320
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: Ubuntu 7.10 hogging RAM

Sat May 17, 2008 9:44 am

Ah. I thought that sounded a bit wrong.
Hakkaa päälle!
i7-8700K|Asus Z-370 Pro|32GB DDR4|Asus Radeon RX-580|Samsung 960 EVO 1TB|1988 Model M||Logitech MX 518 & F310|Samsung C24FG70|Dell 2209WA|ATH-M50x

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On