I used to keep around large swap partitions (that was also before the
blissful days of LVM2) until someone on the linux-il mailing list
convinced me that the amount of overhead for the kernel to keep track
of large amount of swap will actually cause a slow down and reduction
of ram utilization.
Also remember that the 2X or so rule was from Unix days when the
memory management algorithms where totally different (e.g. Each ram
page had a shadow swap page pre-allocated for it).

So now I stick to around .5 gig, whatever the ram size is.

-Amos

On 4/18/09, Dean Hamstead <d...@fragfest.com.au> wrote:
> RAM is so cheap now, that if you start using swap heavily people just
> drop in a bit more !
>
> I tend to roughly match swap and memory. At least when i first install.
>
> Dean
>
> Michael Chesterton wrote:
>>
>> On 18/04/2009, at 10:02 PM, Kyle wrote:
>>
>>> Hi Slug,
>>>
>>> I've decided to increase the RAM on my home CentOS server. As best I
>>> can recall, the accepted wisdom is to have SWAP approx.~ 2 x RAM. Or
>>> was that approx.~ 50% of RAM?
>>>
>>> Can someone point me in the direction of an explicit tutorial on how I
>>> might go about increasing SWAP without destroying data on my other
>>> partitions please?
>>>
>>> Or if I'm actually upping the RAM, should I just not worry about it?
>>
>> These days there's no hard rules about swap. The old rule was 2 x RAM.
>>
>> I don't think you mentioned how much ram you had or how big your swap was,
>> but if you aren't running out of swap, you don't need any more.
>>
>>
>>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>

-- 
Sent from my mobile device
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to