It's no hard and fast rule that swap space should be 2xRAM size.
In your case, having a 48 GB RAM means that you can live with any amount of 
swap space. You don't need 96 GB at all. Because 96 GB of swap space means that 
much of swapping, and if your system is gonna do that much of swapping, then it 
will die in sometime.
Also you can decrease or increase the tmpfs size but i wouldn't recommend. As 
tmpfs allocates the size dynamically, so if you need RAM then it will swap the 
pages in tmpfs to swap space and you will get more memory to work with.
Still i you want to play with tmpfs then change the parameters in the 
/etc/fstab file.
mount -t tmpfs -o size=1G,nr_inodes=10K,mode=0700 tmpfs /space
In this example it will use only 1G of RAM for tmpfs. 
Hope this helped. In case of any further queries feel free to ping me at 
[email protected], as i don't check this ID for months :)
~ManishYahoo!
--- On Mon, 4/25/11, Rakesh Kumar <[email protected]> wrote:

From: Rakesh Kumar <[email protected]>
Subject: Re: [ilugd] Question about SWAP and tempfs
To: "The Linux-Delhi mailing list" <[email protected]>
Date: Monday, April 25, 2011, 2:37 PM

[...]
On Mon, Apr 25, 2011 at 12:49 PM, Amit Sharma <[email protected]> wrote:

> Hi,
>
> Couple of questions:
>
> 1. SWAP partition must always be 2 x RAM? My machien has 48 GB RAM. I have
> to create 96GB SWAP partition? Isn't 4 GB or 8 GB good enough?
>
[...]
SWAP partition should be and not "must be" 2 x RAM. It's a rule of thumb
that you should have this much RAM. Your swap size depends upon the
applications you are gonna use. I agree with Ankit and would suggest that
8-10 GB swap is enough and keep monitoring it.
As i know modern kernels comes with a parameter *swappiness* and it's
parameters varies from 1 to 100. Higher values lead to more pages being
swapped, and lower values lead to more applications being kept in memory,
even if they are idle. By default it's set to 60(not sure) so you can change
it also to see if it fits you.

>
> 2. tempfs consumes half of RAM i.e. 24GB in my case as I have 48 GB of
> physical RAM installed. Can I reduce it to say 8GB? Can it be done? How? Is
> it recommended to reduce tempfs?
>
regards,
> Amit Sharma
>
>
> Thanks and Regards,
> Amit Sharma
>
> _______________________________________________
> Ilugd mailing list
> [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 
Regards
RAKESH KUMAR
http://www.openwebtech.in
http://raakeshkumar.wordpress.com
_______________________________________________
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
_______________________________________________
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to