ref : http://sysdigg.blogspot.com/2007/12/how-to-check-memory-size-in-solaris.html
There are various options to check memory in Solaris. I am running Solaris 8 on Sun Fire server, these Solaris commands can run on any x86 or SPARC platforms.
1. Check real/physical memory size in Solairs using dmesg (message information during boot time ):
# dmesg |grep mem
Dec 14 21:56:21 bos-solaris unix: [ID 168242 kern.info] mem = 523836K (0x1ff8f000)
This Solaris server has 512 mb physical memory ,dmesg output show memory in kilobytes which is 512 Megabytes.
2. Check memory size in solairs using prtdiag (only on sparc) :
# /usr/platform/sun4u/sbin/prtdiag |grep Memory
Memory size: 512 Megabytes
Running prtdiag output show memory as 512 megabyes
3. Check Memory size in Solaris using prtconf :
# prtconf -v |grep Mem
Memory size: 512 Megabytes
Running prtconf with –v shows memory size in megabytes
5 comments:
prtdiag doesn't return memory size information on Solaris 10 on x86.
Thank you jrgrant.
I have updated a note for prtdiag.
You can also use given command:
prtconf | head -3 | grep Mem
For more details refer this artile.
Post a Comment