LinuxQuestions.org
Review your favorite Linux distribution.
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 06-14-2007, 01:56 PM   #1
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Rep: Reputation: 15
Memory usage in Ubuntu


Hi. I am running Kubuntu 7.04. When I boot my computer and I go to system monitor, it shows about 190Mb of memory used. When I open a browser and a mail client, it goes up to about 250Mb.
Now, I left the computer on and did a few things in the last couple of days. After that, everything was closed except for a browser and the mail client, but now the system monitor shows 800Mb used!!!
It looks like if I did other stuff, even after I closed those applications, the memory is still used. I hated Windows because it becomes slower and slower with time, does Ubuntu do the same????????? How do I clear the memory? Thanks
 
Old 06-14-2007, 01:59 PM   #2
dawkcid
Member
 
Registered: May 2007
Location: UK
Distribution: LFS,Slackware,Slamd64,NetBSD
Posts: 102

Rep: Reputation: 15
You don't (need to).

http://gentoo-wiki.com/FAQ_Linux_Memory_Management
 
Old 06-14-2007, 03:38 PM   #3
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Original Poster
Rep: Reputation: 15
I just read another post about more or less the same issue. According to that post, leaving Firefox open for a long time will fill your memory. I am not sure about what this means, but the post referred to firefox as being "leaky". Any help to prevent that?
Also, if I have web sites with flash open, will that fill the memory more? And will all this make the system less responsive? Thanks
 
Old 06-14-2007, 03:57 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Upgrade firefox or change its settings.

If sites have more than one flash animation, Firefox will crawl. Seamonkey, Opera, or Konqueror could be used.
 
Old 06-14-2007, 04:14 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
There is nothing to be done unless your computer is visibly getting slower. Read dawkcid's link and pay special attention to swappiness.
 
Old 06-14-2007, 05:23 PM   #6
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
Quote:
Originally Posted by augu2000
According to that post, leaving Firefox open for a long time will fill your memory. I am not sure about what this means, but the post referred to firefox as being "leaky".

I thinnk all the talk about firefox memory leaking is overblown.

If your box is running fine without slowing down due to memory thrashing then all is OK.

Linux is reporting to you virtual memory. All Linux processes think they are the only one and position themselves to use all available memory. Its a feature -- just ignore it.
 
Old 06-14-2007, 05:35 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Linux is reporting to you virtual memory. All Linux processes think they are the only one and position themselves to use all available memory. Its a feature -- just ignore it.
I think his "problem" is due to the setting of the swappiness variable. I've noticed several posts from ubuntu users lately related to "high memory usage" but no discernible symptoms other than they saw a high figure when they looked at memory usage.
 
Old 06-14-2007, 11:00 PM   #8
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
yea swappiness is the weirdest thing. ever since they added the user changeable variable some really funny threads on kernel trap have shown up where the developers can't seem to agree on what the proper behaviour of a desktop machine is.

think of the swappiness variable as (swap) pageout useless anonymous data pages to reclaim memory vs page cache used to reclaim memory space preasure.
the default setting of 60 will prefer to reclaim pagecache, but will have to start swapping at *some* level of reclaim failure. the swappiness value sets that level of failure.

if you have some app eating up memory with anonymous data then swap=100 sounds like the best setting ever


here i think its important to understand that swap "pageout" actually only relates to anonymous memory. apps that get kicked back to disk are in the page cache.

don't be thinking of this like whole apps get "swapped" like it used to be in 1983.

so if you set swap really low like i see in alot of ubuntu discussions you are going to experience latency between apps and your machine might be vulnerable to crashing out of memory.

swap is an important thing so the kernel can properly manage memory. the more swappy the better.
in particular if there are memory leaks in an application. memory leaks by definition create anonymous data that can neven be kicked out without swappiness.
 
  


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
X hangs after prolonged usage ... memory usage goes upto 195MB duryodhan Slackware 18 05-10-2007 06:16 PM
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

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

All times are GMT -5. The time now is 04:11 AM.

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