Operating Systems > Linux and UNIX

WHats your Swap Size?

<< < (2/6) > >>

voidmain:
The general rule of thumb is RAMSIZE*2 with a minimum of 128MB and a maximum of 2GB. However, I try and put enough RAM in a machine so the system never (or rarely) has to swap.

In my case I have 512MB of RAM and 512MB of swap, breaking the general rule which would have wanted me to have 1GB of swap. Really as long as you have enough swap to handle any memory requirements that may come up you are good.

To me it is more important to spread your swap out across multiple disks (if possible) than it is to follow the sizing rules. But then I'm not 100% sure of why the general rules are there and how my breaking them effects performance.

Bazoukas:
hmmm am gonna spread out my swap and see what happens. I never tried that.

TheQuirk:
Stick your swap on one of these:
http://www.3dretreat.com/reviews/rocketdrive/

Outperforms any SCSI hard drive (I'm serious, too), and is not bound to conventional mechanical flaws and limits.

voidmain:

quote:Originally posted by bazoukas:
hmmm am gonna spread out my swap and see what happens. I never tried that.
--- End quote ---


I would also qualify that if you spread your swap out between multiple disks it would be best if all disks used were of roughly equal performance, otherwise you might just want to put it on the fastest drive, closest to the center of the drive (first partition). If you want to spread it out do it like this in your fstab:


--- Code: ---
--- End code ---

Notice they are all at the same priority which will cause the kernel to balance its use on each disk.

CaptainCool:
I got 384 mb ram in my pc and my swap is set to 220. So far it's been runnning nice and smooth with no slow downs.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version