LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-28-2003, 06:14 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Swap space ?


I have a question about swap partition.

People always say to have it 1-2 times the amount of ram. That doesn't make sense to me really because the more ram you have the less swap you would need?? If you have 64MB of ram a 256+ MB swap would sound good. Thats 4 times, but if you have 512 MB of ram, you would only need a 256 MB swap at most, and it would probably never get touched so even 128 would be fine...so that would be 1/4-1/2 of ram.

Now in bac()ns case he has 384 MB now, plus he is getting another 256 MB, for a total of 640 MB....so why would he need to add more swap space like wildtiger23 suggested?

I have 256 MB ram and a 256 MB swap, my swap space never gets touched, here is free with a 3 day uptime.

Swap: 257032 1504 255528


I was just wondering about this....maybe linux uses more swap with the more ram you have but that doesn't make sense to me so i figured i would ask you people.

thanks
 
Old 03-28-2003, 06:32 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
the 2 x ram thing is slightly outdated, if you have 256 or more of physical ram, a 256 swap is more than enough.
 
Old 03-28-2003, 06:37 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
The 1-2 times RAM was back in the days when RAM was miniscule as compared to today.

I agree with you, and have been saying it for awhile. If you have more than 128MB of RAM, a 128MB swap will be rarely touched by the average user. When are you going to be opening something bigger than 128MB? If you are running a heavily-used server, or have large databases or some-other files, then you might need more.

Let's think about the extreme... A gig of RAM. Are you going to need a 3GB swap?
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space alphisb0t Linux - Software 1 07-05-2004 03:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
swap space not being used bishal Linux - Software 16 05-07-2004 12:28 AM
Swap Space bawbag Slackware 6 07-16-2003 10:59 PM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration