Memory related UNIX commands
a.Solaris:
$ /usr/sbin/prtconf |grep -i "Memory size"
$ swap -s
$ df -k
$ /usr/local/bin/top
$ vmstat 5 100
$ sar -u 2 100
$ iostat -D 2 100
$ mpstat 5 100
a. HP-UX 11.0:
$ grep Physical /var/adm/syslog/syslog.log
$ df -k
$ sar -w 2 100
$ sar -u 2 100
$ /bin/top
$ vmstat -n 5 100
$ iostat 2 100
$ top
b. AIX:
$ /usr/sbin/lsattr -E -l sys0 -a realmem
$ /usr/sbin/lsps -s
$ vmstat 5 100
$ iostat 2 100
$ /usr/local/bin/top # May not be installed by default in the server
c. Linux [RedHat 7.1 and RedHat AS 2.1]:
$ dmesg | grep Memory
$ vmstat 5 100
$ /usr/bin/top
2. PHYSICAL MEMORY AND SWAP SPACE
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