About the SWAP

Simon simon at optinet.com
Fri May 18 01:35:47 UTC 2007


I made a mistake, I meant to say 1x the total memory. Swap is very slow, you
don't want continuous swapping on your server as this will slow things down
tremendously.

-Simon

--Original Message Text---
From: Tzu-Hua Wang
Date: Fri, 18 May 2007 09:16:39 +0800

Hi Simon,
Thank you for your response.
Actually, when I setuped the FreeBSD 6.2R and used the default slice configuration for my hard disk, FreeBSD
suggested that the SWAP should be 4G (with 4G RAM). I had had the same suggestion when I had 2 G RAM before.

Thank you for your response again.





2007/5/18, Simon <simon at optinet.com>: 
There is nothing wrong with this. The only reason for 2x swap is so you could 
dump kernel image should you want to debug a crash. Otherwise, if you ask
me, 4GB of swap is waste of disk space, but then again, nowadays harddrives
are so large that it doesn't really matter.

-Simon 

On Fri, 18 May 2007 08:46:15 +0800, Tzu-Hua Wang wrote:

>Hi,
>I have 4G RAM totally.
>The SWAP is now 4G now.
>Is it ok?

>Thanks 


>2007/5/18, Tim Aslat <
tim at spyderweb.com.au >: 
>>
>> In the immortal words of Tzu-Hua Wang on 05/17/07 20:27:
>> > Hi,
>> > I added 2G RAM to my server. Is it necessary for me to alter the size of 
>> > SWAP?
>> > My SWAP is 4G originally.
>>
>> Does this mean you now have 2G or you have 2G more ram?
>>
>> Typically, the rule of thumb is you need at least 1Mb more swap than you 
>> have actual ram. Something to do with system core-dumps, or some such.
>> I forget exactly what the the reason was, but it's still a good idea to
>> have more swap than physical memory, even if it's only a slightly larger. 
>>
>> Maybe it was hibernation or something like that. Must go back and read
>> up on it again
>>
>> Cheers
>>
>> Tim
>>
>> --
>> Tim Aslat < 
tim at spyderweb.com.au>
>> Spyderweb Consulting 
>> http://www.spyderweb.com.au
>> Mobile: +61 0401088479 
>>
>_______________________________________________
>freebsd-hardware at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
>To unsubscribe, send any mail to " freebsd-hardware-unsubscribe at freebsd.org"










More information about the freebsd-hardware mailing list