LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-20-2007, 11:53 AM   #1
neoAKiRAz
Member
 
Registered: Jan 2006
Location: Uruguay
Distribution: Kubuntu
Posts: 48

Rep: Reputation: 15
Memory Usage in Kubuntu


Hi! Until yesterday, I've been using Kubuntu with 512MB of RAM. The RAM usage was always about the 98% and linux rarely used the swap partition (except when I ran VMWare), so I went for some more RAM. I bought another 512MB module (DDR1), and just for a while, I borrowed 1GB from my brother and 256MB from my mother, summing 2304MB... So I started opening all the programs I could, Amarok playing music, VLC playing an AVI, OpenOffice, VMWare, etc. But my CPU usage was 100% and the playing video started skipping before I could use all the RAM.
The strange thing is that, as I closed everything, the RAM usage kept going up to a 98% and the swap usage was of about 30-40MB. And still 10 or 20 minutes after this, the RAM usage didn't drop.
Now, with 1GB of RAM the same thing happens. Just some minutes after power on, and having only opened a couple of programs (let's say Firefox and Konqueror) the RAM usage starts increasing until almost the whole RAM is taken and again 30-40mb from swap are used.

Maybe this is normal in the memory management scheme of linux, but just in case, I wanted to ask.
I'm using Beryl with XGL, SuperKaramba and VMWare (with 256MB of RAM) sometimes. The CPU is a P4 Prescott 2.4Ghz.
Is there any output that could be useful? Like the memory usage per process (non-virtual, right?), which I couldn't find how to display.
Thanks in advance, and greetz!
 
Old 04-20-2007, 03:35 PM   #2
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian Trixie KDE, Manjaro XFCE & Plasma 6
Posts: 301

Rep: Reputation: 51
Quote:
Originally Posted by neoAKiRAz
Maybe this is normal in the memory management scheme of linux
Yes it is.

Quote:
Originally Posted by neoAKiRAz
Is there any output that could be useful? Like the memory usage per process (non-virtual, right?), which I couldn't find how to display.
try top (total of processes, I believe)
 
Old 04-20-2007, 04:07 PM   #3
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
for processes you could also try ksysguard as your running KDE
 
Old 04-20-2007, 04:10 PM   #4
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian Trixie KDE, Manjaro XFCE & Plasma 6
Posts: 301

Rep: Reputation: 51
yes, that sounds like a good one. And I just found top isn't total of processes, it is top of CPU processes ---- guess I am acronym-oriented
 
Old 04-21-2007, 12:34 AM   #5
neoAKiRAz
Member
 
Registered: Jan 2006
Location: Uruguay
Distribution: Kubuntu
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks for all the responses. The RES field in top seems to be the same as the VmRss in ksysguard, ie. the amount of physical memory currently used by a process (not including shared libraries and swaped out pages). So, the sum of those fields should be the 'used mem' reported by 'free', right?
Then I don't understand why either having 512, 1024 or 2304 MB of RAM, the whole amount is used... any idea?
 
Old 04-21-2007, 01:01 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
As stated, this is the way Linux mm is designed - what's the point of paying for memory, then having it laying around unused ???.
Have a look at this (ignore the gentoo specific bits).
 
Old 04-23-2007, 07:03 PM   #7
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
The reason you're seeing 98% memory usage is because, instead of letting unused memory go to waste, Linux apportions free memory for disk caching purposes. Which means that if an app wants something off disk, the cache is checked first. It provides a (small) performance boost. As for swap.. this can be adjusted via the kernel 'swappiness' option. Even if you've got lots of RAM, if 'swappiness' is set quite high, then unused memory will get swapped out to disk to make room for other apps. There's plenty of information available on the web covering this... but if your system runs nicely as-is, you might as well leave it...
 
Old 04-23-2007, 11:33 PM   #8
neoAKiRAz
Member
 
Registered: Jan 2006
Location: Uruguay
Distribution: Kubuntu
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks kevinatkins for the info!
So there's not invisible process eating my RAM...
And syg00 I'll go through that page as soon as I can, before taking Understanding The Linux Kernel out of my shelf and resuming it Bye!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - Distributions > Ubuntu

All times are GMT -5. The time now is 04: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