Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
my swap partition question,.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Fri Apr 29, 2005 2:17 am    Post subject: my swap partition question,. Reply with quote

gday,
I've been using gentoo for a while and I realized that I never see gentoo using my swap.
now, from htop, swap is 0MB used.

I'v got 512MB, so I set to 1GB swap on install, but I dont think I need that much.
should I just repartition to just like 200MB? or is it have to be bigger then RAM?

ty
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
jhunholz
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 154
Location: Raleigh, NC

PostPosted: Fri Apr 29, 2005 2:33 am    Post subject: Reply with quote

Depending on what you run on your computer, swap will be used or not. With 512MB of ram, I would leave at least 512mb in swap, but 1GB doesn't hurt. On my desktop I have 1.5GB of ram, and with that much I don't think you ever hit your swap.
Back to top
View user's profile Send private message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Fri Apr 29, 2005 11:47 am    Post subject: Reply with quote

oh cool.
I only use it as "desktop", normal surfing, ssh ftpd for private, DHCPD, NAT some gaming.
and I never seen swap is used, so I think I just gonna reduce to 600MB for now and see what happens.
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
Gentoonie
Apprentice
Apprentice


Joined: 06 Apr 2004
Posts: 205
Location: near Munich | Bavaria | Germany

PostPosted: Fri Apr 29, 2005 2:04 pm    Post subject: Reply with quote

Same here for me. I got 1GB of RAM, and the only time i ever saw my swap being used was when i opend my video folder and nautilus started to generate thumbnails for every file, my box started to laag real hard. But that has been the only time i saw my swap being used.
_________________
Do you know the secret hand shake - you best use it.

GCC 4, Kernel 2.6.14-ck7, NPTL
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Fri Apr 29, 2005 5:20 pm    Post subject: Reply with quote

Hi.

I have a laptop with 512MB RAM and can assure you that if you start using OpenOffice, Firefox and emerging some packages, you'll soon see your swap being used.
However, as to your point of having more RAM not necessarily mean having a larger swap, I do agree. I believe that old rule of having swap = 2 * RAM, doesn't apply today in most cases. Furthermore, when your system starts swapping , it takes a huge toll.
Back to top
View user's profile Send private message
starrbuck
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2005
Posts: 138
Location: North Texas

PostPosted: Fri Apr 29, 2005 6:01 pm    Post subject: Reply with quote

Swap should be 1 to 1.5 times your RAM.
_________________
Gentoo Linux is groovy, baby! Yeah!
Back to top
View user's profile Send private message
Kaapeli
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 110
Location: Oulu, Finland

PostPosted: Fri Apr 29, 2005 9:06 pm    Post subject: Reply with quote

I have 1GB of ram. After a reboot, it usually takes at least 24 hours before my system is swapping anything. After the first 24 hours, few megabytes of swap is being used. After week of uptime, about 50 MB of swap is in use. The swap usage seems to increase when I compile something large or do some other memory intensive task, but the swap usage doesn't seem to go down after I have finished the memory intensive tasks. Right now, after 13 days of uptime, my swap usage is 130 MB and it doesn't usually much above that. If it goes (compiling something or other memory intensive work), it will usually come back to about 100 - 150 MB within 12 hours of normal desktop use. If I restart X, the swap usage always drops to about 20 - 40 MB.

I'm also running VMware almost constantly and I reserve 256 MB for the guest OS. I assume that the swapping pressure would be much lower if I didn't use VMware.
_________________
Temperatures
Back to top
View user's profile Send private message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Sat Apr 30, 2005 12:11 am    Post subject: Reply with quote

ya, swap bigger is better, but I dont lik to see my 1GB wasting for swap and swap is not using it :D
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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