Thursday, January 29, 2009

How to Determine Main Memory Size in Solaris

I was looking for a way to check the memory size of a Solaris machine I am working on. I found a blog post having three commands here: http://sysdigg.blogspot.com/2007/12/how-to-check-memory-size-in-solaris.html. I tried all three but only the following one worked for me:

# /usr/platform/sun4u/sbin/prtdiag | grep Memory
Memory size: 4096 Megabytes

Here is the machine information:

# uname -a
SunOS *** 5.10 Generic_127111-11 sun4u sparc SUNW,Sun-Fire-880

2 comments:

Atique said...

Yes, prtconf shows all information about devices connect to the system.

By grepping the keyword Memory you extract the line containing keyword Memory.

Lee Lang said...

Thanks Atique.

Check out my revamped website any more Solaris questions ?