[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swap size



Quoting Greg Baker (ggbaker@cs.sfu.ca):
> The magic amount of swap is the totaly memory you ever expect to need,
> minus the amount of physical RAM you have.  That's it, really.  These
> 1xRAM, 2xRAM, etc. rules are just vague hand-wavey guidelines. Just
> guess how much memory you might need and subtract 1G (in your case).

I agree. I get the impression that the rule Swap = N * Physical RAM
dates from the time when men were men, swapfiles were swapfiles,
and systems actually swapped. Linux, as far as I am aware, has never
swapped, only paged.

> Note: some systems mirror the physical RAM in swap, so having less swap
> than RAM is meaningless and having the same amount is pointless.  Linux
> doesn't do that, so the amount of swap you allocate is added to your
> total RAM available.

Yes, the rule for MacOS Virtual Memory is physical memory + 1MB.

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Reply to: