德才手游网:十大热门手游排行榜2023前十名,十大热门手机应用排行榜2023前十名,让你Get最新手游应用、分享你的热辣点评。
网站地图
你的位置: 首页 > 游戏资讯 > 操作系统

linux下查看cpu的情况

  • 2023-04-08 05:21:12
  • 来源:未知
  • 在手机上看

    扫一扫立即进入手机端

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

  当年我公司购买一台8cpu的AMD服务器,双核,当时看到cpu很壮观,16个cpu。

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

  http://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“

游戏推荐

《北加尔》异常情况应对方法分享ppt(北加尔手机版) 2077义体过热是怎么回事(朋克赛博2077义体过热是什么情况) apex英雄延迟多少正常(apex延迟高会导致什么情况) Linux
更多

手机游戏排行榜