lscpu 和 /proc/cpuinfo 中显示的 CPU 信息比较多,如何从其中快速过滤关键信息?
参考:
`lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'`
不错 不错,清晰明了,
root@sh23:~# lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Socket(s): 1
NUMA node(s): 1
Model name: Intel(R) Xeon(R) CPU E5-26xx v4
NUMA node0 CPU(s): 0,1
#1