LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Swap double size of the RAM (http://www.linuxquestions.org/questions/solaris-opensolaris-20/swap-double-size-of-the-ram-385484/)

zillah 11-22-2005 09:37 AM

Swap double size of the RAM
 
Is it mandotary that swap partition to be double size RAM for Solaris 10?

Because when I installed FC4 (not solaris), I have chosen the size for swap 500 M, while the size for the RAM is 512 M.

I received this eorro message:

((You have allocated less swap space (502M) than available RAM (512M) on your system. This could negatively impact performance.))

genlee 11-22-2005 10:42 AM

I usually don't go by the 2x ram rule because it depends on your config(hardware and software) how much you need. If you plan on saving a crash dump of your system(incase of failure) by default it is dumped to your swap so you would need atleast enough swap to save an image of your memory. Also if you have less available ram, I generally have more then 2x the amount of swap. It also helps to know how much memory your apps will require. If you are doing a basic server/desktop to mess around with 1GB of total vm would be ok.

jlliagre 11-22-2005 12:14 PM

Pay also attention than on Solaris, /tmp is by default living in virtual memory, so its size directly depends on the swap + ram size available.

If you have applications that create large files in /tmp, better to have a swap large enough for it.

Brian Knoblauch 11-22-2005 12:30 PM

Quote:

Originally posted by jlliagre
Pay also attention than on Solaris, /tmp is by default living in virtual memory, so its size directly depends on the swap + ram size available.

If you have applications that create large files in /tmp, better to have a swap large enough for it.

Anybody else remember the old BSDi software that always had /tmp as it's own partition, which of course defaulted to only 10MB :) And then you only find out AFTER getting everything up and running. :)


All times are GMT -5. The time now is 11:09 PM.