20220519_CPU_核_线程_查看方法

2022-05-19 09:52:07 浏览数 (2)

20220519_CPU_核_线程_查看方法

01 由于文章中需要CPU、核、线程这些信息,因此需要进行统计

All tests were performed on a Ubuntu Linux release 18.04.3 server with two Intel Xeon processors (16 cores each, 48 threads total) and 512 GB of RAM.

02 公开资料

03 实际操作:

代码语言:javascript复制
(base) root@dell-server:/srv/ftp/download# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
2

(base) root@dell-server:/srv/ftp/download# cat /proc/cpuinfo | grep "processor" | wc -l
64

(base) root@dell-server:/srv/ftp/download# cat /proc/cpuinfo | grep "cores" | uniq
cpu cores       : 16

0 人点赞