现在机器的cpu越来越复杂,一个cpu,经常是几个内核,4,6,8都不是什么稀罕的事情。
当年我公司购买一台8cpu的AMD服务器,双核,当时看到cpu很壮观,16个cpu。
现在一台普通的2U的服务器,都可能看到这种场景。
https://planet.admon.org/howto/about-cpu-the-logical-and-physical-cores/
There are some commands here to help identify these type of information quickly on a running Linux:
Total amount of processors including the logical ones:
# cat /proc/cpuinfo | grep "processor"| wc -l
Total amount of CPU package:
# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
How many cores for each CPU. (Here we should call CPU as physical package as we mentioned above):
# cat /proc/cpuinfo | grep "cpu cores" | wc -l
For each physical CPU, the amount of Logical CPU (the logical CPU can be physical cores, soft cores like threaded, or both).
# cat /proc/cpuinfo | grep "siblings"
关键词标签:linux
相关阅读
热门文章 安装红帽子RedHat Linux9.0操作系统教程使用screen管理你的远程会话GNU/Linux安装vmware如何登录linux vps图形界面 Linux远程桌面连
人气排行 Linux下获取CPUID、硬盘序列号与MAC地址linux tc实现ip流量限制dmidecode命令查看内存型号linux下解压rar文件安装红帽子RedHat Linux9.0操作系统教程Ubuntu linux 关机、重启、注销 命令lcx.exe、nc.exe、sc.exe入侵中的使用方法查看linux服务器硬盘IO读写负载
查看所有0条评论>>