Contributed by Dengue on from the gotta-dump-somewhere dept.
This seems to differ a lot with different OS's. I've always operated under the rule of thumb that you need *at least* as much swap as physical RAM or bad things (tm) happen. What is the definitive word on this? With today's mega ATA drives, a gig of swap is trivial, but what is the optimum setup?
(Comments are closed)
By Free Bird () on
My advice is: look at how much memory (physical + virtual) you will need in a worst case scenario, subtract your physical RAM amount from it, and make your swapspace that size. You might make it several MBs bigger for some overhead, but physical RAM and VM definitely needn't be linearly proportional.
Just my €0.02
By one/fs () . on mailto:.
By oobleck () nospankyou@nospam.org on mailto:nospankyou@nospam.org
The only valid reason I have ever seen for this is when you have a LARGE panic dump. Some times the core can take up 1GB+.
Some stupid companies actually require you to use 3XRAM. In my previous job I supported Sun systems with a database called "Versant". Versant support required that your machine have 3XRAM if they were going to give you tech support.
Ever seen a big Sun box swap 4+GB? It is really sick.
The moral of the story is to put as much swap as you would need to dump your core file too. (So Sun support can look at it and determine why your system is crashing.) OR Just run OpenBSD and don't worry about it....
By Sacha Ligthert () on
So you can imagine that the load will go up to 1.5 on my Celeron 400 with 256megs of RAM in it.
I choosen 256Megs of swap... The reasen why is because this "Swap: 0K/256M" is my average usage of swap.
I remember one day a record in usage of swap... 24000 real K's wich lasted not long and went back to scratch shortly after.
By PC () pc@superiorcommREMOVE_ME.net on mailto:pc@superiorcommREMOVE_ME.net
I usually throw in 512MB-768MB of swap space. That does the job for me.
By Toaster Tester () bsdfan@hotmail.com on mailto:bsdfan@hotmail.com
By RedneckAdmin () spambad@avoid.it on mailto:spambad@avoid.it
Folks, I can only conclude the days of 2X for your swap are dead.
By Anonymous Coward () on
By David M. Gaskin (87.123.66.209) David@gaskin.de on
Therefore there is no general answer to the question "How large should SWAP be?", as the answer is very dependant on the type of processes that will be running concurrently. In the 1970's IBM where experimenting with having an operating system without files, where a FileObject (that repesented what other OSes would call file) was just a memory address (in a 48 bit address space) with a size. All of the diskspace on such a system was then basically SWAP space. The concept was used in the System/38 RDBMS and later
on the AS/400 rdbms.