【 tulaoshi.com - Linux 】
从DBA的角度来说,有时候需要考虑CPU的利用率的问题。那个服务器上有多少个CPU和利用率情况如何就是要考虑的问题了。
查看有多少个CPU:
#psrinfo -v
结果显示如下:
Status of processor 0 as of: 07/28/05 11:24:23 Processor has been on-line since 05/27/05 17:43:26. The sparcv9 processor operates at 900 MHz, and has a sparcv9 floating point processor.Status of processor 1 as of: 07/28/05 11:24:23 Processor has been on-line since 05/27/05 17:43:26. The sparcv9 processor operates at 900 MHz, and has a sparcv9 floating point processor.Status of processor 2 as of: 07/28/05 11:24:23 Processor has been on-line since 05/27/05 17:43:26. The sparcv9 processor operates at 900 MHz, and has a sparcv9 floating point processor.Status of processor 3 as of: 07/28/05 11:24:23 Processor has been on-line since 05/27/05 17:43:12. The sparcv9 processor operates at 900 MHz, and has a sparcv9 floating point processor.
表明是有四颗CPU跑在该服务器上
查看CPU的利用率:#topor#mpstat均可