chakri gk wrote:
Dear Friends,
I am beginner of Linux and got a doubt.

We suggest 2 * RAM space for swap size.
Please can u elucidate:
1. why only 2* RAM space for swap space.

The multiplier "2" is a recommendation, as a maximum value. Look at it the other way: if you are using less phsical ram than half your swap, that means you are likely to be trying to get away with too cheap a solution.


Estimate total memory requirements (= virtual memory). Example 1GB
This should be apportioned between "actual" memory, and "make-believe" memory. The thumb rule above says that at least 1/3GB should be physical. If you have less, than you are likely to see performance issues. So put in 384MB RAM, and 750MB swap. You can put in 512MB RAM, and 512 swap, which is better, of course, but at least 384MB RAM would be good.


The figure "2" is a "maximum recommended", not a law.

2. what happens if we assign more?

Linux may use it, if it requires. No downside.

Please note, that this is generalisation, you may want to use all RAM, no swap, or very little RAM, and lots of swap; it is a trade-off.

Personally, since my boss can afford it, I use as much RAM as I estimate my max virtual memory requirements are, and provide 512MB swap to cover mistakes I made in estimation.

--
Sanjeev



_______________________________________________ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to