View previous topic :: View next topic |
Author |
Message |
Nick W l33t


Joined: 07 Dec 2003 Posts: 684
|
Posted: Wed May 04, 2005 4:01 pm Post subject: Why is Swap Space Being Used? |
|
|
hi everyone,
I have 1gb of RAM and am certainly (to the best of my knowlege) not doing anything odd on my Gentoo box, but i see via the KDE sys monitor that 49% of my Swap space is being used?
cat /proc/meminfo
SwapTotal: 506036 kB
SwapFree: 257096 kB
Now, i know this can't be right, right?
Can anyone help find where the problem is, it used to do this on my old x86 gentoo box (nforce2) and is now repeating on my amd64 box (nforce3)
thanks for any advice.... |
|
Back to top |
|
 |
firephoto Veteran


Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Wed May 04, 2005 5:22 pm Post subject: |
|
|
Amarok running perhaps? It can be a memory hog, possibly due to editing song tags. It used up over a gig of system memory on me once.  _________________ #gentoo-kde on freenode |
|
Back to top |
|
 |
bork_bigjoe n00b

Joined: 28 Mar 2005 Posts: 57 Location: Caltech
|
Posted: Wed May 04, 2005 10:41 pm Post subject: |
|
|
Run 'top' and then press 'M' (capital M) and it will show you the process list sorted by memory usage. You should be able to identify whether there is some process using a huge amount of memory.
I found that I had some orphaned kpdf processes that were eating huge amounts of memory and causing my system (also 1GB ram) to thrash for no particularly good reason recently. |
|
Back to top |
|
 |
Nick W l33t


Joined: 07 Dec 2003 Posts: 684
|
Posted: Thu May 05, 2005 9:55 am Post subject: |
|
|
Well i had 4/5 instances (in 'top') of liferea-bin, all at 15% - when i quit liferea it dropped from 51% free swap to 75% free swap - i also had 4/5 of firefox-bin at 9% each - though only one FF and one liferea open on a desktop?
Anyway, i could not get it below 75% free by closing things, and besides that, it says i have 83% RAM free - so why would it use swap anyway....
This just doesn't seem right to me... |
|
Back to top |
|
 |
andrew_j_w Guru


Joined: 28 Jun 2003 Posts: 534 Location: York, UK
|
Posted: Thu May 05, 2005 12:11 pm Post subject: |
|
|
Well why not? It's probably just memory that hasn't been accessed for ages and has been swapped out to make room for more cache and disk buffers. Unless your system is noticeably swapping then I wouldn't worry about it...
Andrew |
|
Back to top |
|
 |
bork_bigjoe n00b

Joined: 28 Mar 2005 Posts: 57 Location: Caltech
|
Posted: Thu May 05, 2005 8:23 pm Post subject: |
|
|
Once you've started using swap, it's pretty rare for it ever to clear back out completely. Most programs have pages of memory that aren't used often, so they'll just be left in swap until they're needed which may not be for a long time. As long as you have free RAM, you won't encounter thrashing. |
|
Back to top |
|
 |
Nick W l33t


Joined: 07 Dec 2003 Posts: 684
|
Posted: Wed May 11, 2005 9:22 am Post subject: |
|
|
OK, thanks for all the help - I thought there was a problem but from what I hear, it's not.
thanks again.. |
|
Back to top |
|
 |
|