当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 如何查看服务器上有多少个CPU

Unix/Linux
Linux指令篇文件打印--lpd
linux安装
grub多启动菜单配置样本
man wget
转载:用VMWARE 3.0安装LINUX 的一点心得
Linux下屏幕偏置问题的解决--(转)
linux下的网络配置工具:iproute
新一代网络配置工具iproute :命令篇(上)
iptables的状态检测机制
Nessus安全测试插件编写教程2
Nessus安全测试插件编写教程1
信息安全的隐患-GoogleHacking原理和防范
整理一下笔记 for iptables
configuration utility for the RAIDframe disk drive
历史上最牛的演讲
1.2 游戏的节奏控制
1.3 游戏的速度感
1.6 基础ActionScript程序(1)
FreeBSD 使用手册
freebsd+apache+mysql+php+phpmyadmin+zend+discuz安装指

Unix/Linux 中的 如何查看服务器上有多少个CPU


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 227 ::
收藏到网摘: n/a

从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均可