Go Back   MEPISlovers Forum > Help > Newbies
Register FAQTop Statistics Today's Posts Donate Gallery
Gallery
Mepis Art Gallery
My images
Upload an image
View all users images
Post New Thread  Reply
Confusion over size of swap partition

 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-20-2007, 06:20 AM
mal1
 
Posts: n/a
Default Confusion over size of swap partition

G'day all.
Will repartition HDD when I replace 6.5 with 7.0 to create a separate home partition. The handbook for 7.0 recommends the size of the swap partition to be double that of your RAM, but no larger than 1Gb.
I have a recent laptop with 2Gb of RAM. My swap partition is currently set to 4Gb which was based on my reading at that time. Subsequently found the most common recommendations of swap size to be half of RAM, equal to RAM and twice size of RAM. One recommendation even stated that the swap partition is probably not necessary in these days of large RAM.

Would someone be kind enough to point me in the direction of an appropriate size for a swap partition? Many thanks in advance.
Cheers,
Miles
Reply With Quote
  #2  
Old 11-20-2007, 06:51 AM
UnicornRider
 
Posts: n/a
Default

My two rappen, er, cent: http://penguin.ch/dokuwiki/doku.php/...emarks_on_swap
Reply With Quote
The Following User Says Thank You to For This Useful Post:
  #3  
Old 11-20-2007, 06:59 AM
wireman's Avatar
wireman wireman is offline
MEPIS Guide
 
Join Date: Aug 2006
Location: Scotland
Posts: 1,347
Thanks: 205
Thanked 260 Times in 211 Posts
Rep Power: 75
Reputation: 1339
wireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to beholdwireman is a splendid one to behold
Default

All the recommendation you mention are all accurate.

It really depends on what your usage is like, but for a general purpose machine with a good amount of RAM (1Gb or more), then the Mepis recommendation is the one I'd go for.

The only caveat I'd mention is that if you're on a laptop and want suspend/hibernate to work you need swap to be a least as big as your RAM.
Reply With Quote
The Following User Says Thank You to wireman For This Useful Post:
  #4  
Old 11-20-2007, 07:35 AM
cookdav's Avatar
cookdav cookdav is offline
antiX-8.5 is rolling...
 
Join Date: Jul 2006
Location: Sarasota, FL and Manchester,NH
Gender: Male
Posts: 1,455
Thanks: 559
Thanked 370 Times in 275 Posts
Rep Power: 83
Reputation: 1979
cookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud ofcookdav has much to be proud of
Default

Since most my machines now have 1GB (or more) of RAM and I do
NOT care about suspend/resume on my laptop (which has 512MB),
I've NEVER been creating any separate partition for 'swap', for
MEPIS. And, I've NOT had any problems.

[A few OTHER distros, such as pure Debian, brow-beat you during
installation into THINKING you need 'swap', but once installed,
it hasn't seemed to exhibit any problems without a 'swap' partition.]

So, you can see why there's so much seemingly contradictory
'lore' about whether to bother with it or not.

My 2-cents worth...
Dave
__________________
MEPIS wiki: http://www.mepis.org/docs/en/index.php/Inxi
Compaq-laptop: MEPIS-8.5 / sidux (KDE4.4.5/2.6.34/grub2) [triple-boot w/Win-Vista]
wifi: drvr='wl'(BCM4311), graphics: Intel 945GM/GMS
Desktop mach#1: AMD (Athlon XP 1600+): MEPIS 8.5 [triple-boot with sidux and Win-XP]
Desktop mach#2: AMD (Sempron 3100) antiX-8.5 / Win-XP.
"Every day you look in the mirror now, you are looking at an endangered species." - Rob Watson

Last edited by cookdav : 11-20-2007 at 07:43 AM.
Reply With Quote
The Following User Says Thank You to cookdav For This Useful Post:
  #5  
Old 11-20-2007, 08:53 AM
joany's Avatar
joany joany is offline
MEPIS Guide
 
Join Date: Feb 2007
Location: Penn's Woods
Posts: 5,392
Thanks: 1,897
Thanked 1,778 Times in 1,252 Posts
Rep Power: 200
Reputation: 10498
joany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond reputejoany has a reputation beyond repute
Default

According to the system monitor widget I use on the desktop, Swap was occasionally used when my 2GB RAM maxed out. After I installed 4GB RAM, that no longer happens. So with 2GB of RAM, I'd allocate a smallish Linux swap partition, maybe 512MB or so, just to be safe.
__________________
SimplyMEPIS is SimplyTHEBEST
Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12)
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 190.53 Display Driver
Reply With Quote
  #6  
Old 11-20-2007, 09:16 AM
Jimmy Johnson's Avatar
Jimmy Johnson Jimmy Johnson is offline
MEPIS Guide
 
Join Date: Jul 2007
Location: Bakersfield, CA
Gender: Male
Posts: 2,349
Thanks: 271
Thanked 699 Times in 522 Posts
Rep Power: 96
Reputation: 3639
Jimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond reputeJimmy Johnson has a reputation beyond repute
Default

Think about it...The more RAM you have the less swap you use.
__________________
Registered Linux User #380263
Registered Linux Computer #279395
Linux, working hard to save you $$$ - Get a clue, get Linux!
----------------------------------------------------------------------------------------------
Intel Pentium D 2.80GHz
Intel Desktop Board D945GTP
Intel ICH7 Audio, nVidia GeForce 6200 Video
Intel ICH7 Ethernet Controller
Reply With Quote
The Following User Says Thank You to Jimmy Johnson For This Useful Post:
  #7  
Old 11-20-2007, 10:04 AM
Stevo's Avatar
Stevo Stevo is offline
Return of El Coyote
 
Join Date: Dec 2006
Location: Skullcrusher Mountain, Santee, CA USA
Gender: Male
Posts: 8,618
Thanks: 1,924
Thanked 3,772 Times in 2,553 Posts
Rep Power: 342
Reputation: 21139
Stevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond repute
Default

I've actually found that the system is intelligent when suspending to disk--only the memory in use is written to a file in the swap partition. An intelligent implementation in Linux--who would have guessed? So if you have 4GB, the swap doesn't have to be 4GB to get hibernate to work...It depends on much RAM you expect to have in use.
Reply With Quote
The Following User Says Thank You to Stevo For This Useful Post:
  #8  
Old 11-20-2007, 03:02 PM
lucky9's Avatar
lucky9 lucky9 is offline
Moderator
 
Join Date: Jul 2006
Location: Tulsa, Oklahoma U.S.A.
Gender: Male
Posts: 6,629
Thanks: 2,454
Thanked 1,247 Times in 1,098 Posts
Rep Power: 190
Reputation: 7477
lucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond reputelucky9 has a reputation beyond repute
Post

I've read (somewhere) that there was a 2 gig limit. Like all things that's probably changed by now! Soooo.....

I set mine with one gig and don't worry about it.

With the price of hard disk space today why worry?
__________________

Check the Wiki http://www.mepis.org/docs/en/index.php/Main_Page
http://www.mepisguides.com/
http://www.mepis.org/docs/en/index.p...ging_Guide_WIP
Life is not a spectacle or a feast: it is a predicament~Santayana
Reply With Quote
The Following User Says Thank You to lucky9 For This Useful Post:
  #9  
Old 11-20-2007, 03:20 PM
timkb4cq's Avatar
timkb4cq timkb4cq is offline
MEPIS Guide
 
Join Date: Jul 2006
Posts: 1,293
Thanks: 104
Thanked 955 Times in 574 Posts
Rep Power: 114
Reputation: 5203
timkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond repute
Default

I usually set my swap to 640 Mb because "640 is enough for anybody"
Reply With Quote
The Following User Says Thank You to timkb4cq For This Useful Post:
  #10  
Old 11-20-2007, 06:56 PM
fbt's Avatar
fbt fbt is offline
MEPIS Guide
 
Join Date: Jul 2006
Posts: 749
Thanks: 42
Thanked 176 Times in 125 Posts
Rep Power: 67
Reputation: 1077
fbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to beholdfbt is a splendid one to behold
Default

Quote:
Originally Posted by timkb4cq View Post
I usually set my swap to 640 Mb because "640 is enough for anybody"
timbk4cq you must me an old timer. like me! My laptop has 512meg and I just use the default install which is no swap drive or it's in a temp directory somewhere. I don't really know but never had problems with laptop suspend.
__________________
...It's always your fault. I don't care if you're cruising down the backstraight all by yourself and the car gets struck by a lightning bolt out of the sky, it's your fault for being where the lightning wanted to land. That's the way you have to look at it, or you'll never learn.
Reply With Quote
The Following User Says Thank You to fbt For This Useful Post:
Post New Thread  Reply

  MEPISlovers Forum > Help > Newbies


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2010 MEPISlovers.org