您的位置:首页 > 其它

Find CPU Speed and Memory Size on Solaris

2010-06-11 15:30 423 查看

Find CPU Speed and Memory Size on Solaris

As I’m writing my thesis I’m running tests on an old SMP Solaris machine. Obviously, I need to provide the specs of this machine in the paper so that the readers can see my results in context (ie why everything is taking forever. On linux I would just use lshw which is your ultimate hardware information goldmine. If you don’t have it on your system, go install it now. You will thank me later.

The ancient Solaris machine I was working with did not have it, so I was forced to find other ways of finding information such as CPU speed and memory size.

First you can try prtdiag – it will tell you detailed information about all your CPU’s and memory banks. Unfortunately it is in a weird directory that is not in your $path so you will need to run it with the absolute path:

/usr/platform/sun4u/sbin/prtdiag -v


If you just want information on the CPU’s you can also try:

psrinfo -v


Finally, to just get your total memory size do:

prtconf | grep Memory


There might be better ways to do this, but these worked for me. Craig will probably be able to add to this list or correct me.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: