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

Unix/Linux
Linux crontab定时执行任务 命令格式与详细例子
linux 查看用户及用户组的方法
让Linux系统有效防御ARP攻击的实用技巧
Linux 常用软件列表
linux wget 一个强大的下载命令
linux 常用脚本、命令
linux 磁盘配额 简单介绍
Linux服务器架设笔记 Squid服务器配置
ubuntu intel 集成显卡安装
ubuntu 9.04 X3100 显卡开启3D特效
Ubuntu 8.10 Server Ruby 的安装方法
Ubuntu root帐户密码修改
ubuntu下apt-get 命令参数
Ubuntu Linux下实现QQ的三种方式
Ubuntu 8.04中建立PHP+MySQL环境
Ubuntu常用软件大全
Ubuntu系统下安装Aircrack-ng
Ubuntu实现FTP功能
ubuntu 字体美化实现方法
ubuntu下netbeans汉字显示残缺问题

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 187 ::
收藏到网摘: 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均可