Tuesday, November 10, 2009

Display the Amount of Physical Memory and Swap Space on UNIX Systems

Configuring and managing Memory on the Oracle Server is one of the crytical task while installing and managing databases. One Question always comes to the mind.

How Much Swap Space Should Be Configured?======================================================================Unless otherwise specified, the most sensible rule of thumb is to have enough swap allocated to equal 2-3 times your amount of physical memory.If you have more than 1Gig of memory, this rule can be reduced to swap equaling 1.5 times the amount of physical memory.Considering the relatively inexpensive prices of physical storage versus physical memory, there really isn't any justification for not having adequate swap space configured on a UNIX system.

OS Specific Commands:
======================================================================
AIX:
/usr/sbin/lsattr -E -l sys0 -a realmem
/usr/sbin/lsps -s
HP-UX:
grep Physical /var/adm/syslog/syslog.log
/usr/sbin/swapinfo -t
Linux:
cat /proc/meminfo grep MemTotal
/sbin/swapon -s
Solaris:
/usr/sbin/prtconf grep "Memory size"
/usr/sbin/swap -s
Tru64:
vmstat -P grep -i "Total Physical Memory ="
/sbin/swapon -s

No comments:

Post a Comment