Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is Swap Space Being Used?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Wed May 04, 2005 4:01 pm    Post subject: Why is Swap Space Being Used? Reply with quote

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
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1612
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Wed May 04, 2005 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
bork_bigjoe
n00b
n00b


Joined: 28 Mar 2005
Posts: 57
Location: Caltech

PostPosted: Wed May 04, 2005 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Thu May 05, 2005 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Thu May 05, 2005 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
bork_bigjoe
n00b
n00b


Joined: 28 Mar 2005
Posts: 57
Location: Caltech

PostPosted: Thu May 05, 2005 8:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Wed May 11, 2005 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum