On Wed, 2011-04-20 at 06:25 -0700, Andrew Hume wrote: > i know, i know. this is an old chestnut. > we used to have swap 2-3x main memory, > but nowadays the wisdom is that that old rule > is no longer applicable. (this is on RHE5.) > so here i am, with a 128GB memory system with 16GB of swap. > and here i am, killing the system by running it out of swap. > my observation is that if i have large memory, i will use it. > (to say nothing of memory leaks etc.) > and if i have a few multiple large memory processes, > why wouldn't i want swap sized at 2-3x memory?
Most recommendations I see [in professional notes and documentation, not general Internet-swill] point to SWAP = 0.75 * RAM for systems with more than 8 GB of memory. This is the RHEL & Oracle recommandations at least, but I've seen it other places. You also might get some benefit from playing with the /proc/sys/vm/swappiness value. -- Adam Tauno Williams <[email protected]> LPIC-1, Novell CLA <http://www.whitemiceconsulting.com> OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba _______________________________________________ Tech mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
