linux下查看cpu的情况_许昌星宇电脑网络科技中心_百度空间

  现在机器的cpu越来越复杂,一个cpu,经常是几个内核,4,6,8都不是什么稀罕的事情。

  现在一台普通的2U的服务器,都可能看到这种场景。

  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下查看cpu的情况_许昌星宇电脑网络科技中心_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——