나는 리눅스와 우분투 세계에 처음이다. CPU에 대한 최대 정보를 얻고 싶습니다. (cpufreq, 코어 수, 코어 당 스레드 수, 명령어 세트, 캐시 크기, 명령어 세트, 가상화 등)
우분투 특정 접근 방식을 통해 모든 Linux 배포판에서 작동하는 방법을 선호합니다.
lscpu 정보를 거의 제공하지 않는 것 같습니다. 특히 모델 이름이 여기에 없습니다.
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               989.531
BogoMIPS:              4788.74
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3
달리기 sudo lscpu는 같은 것을 반환합니다.
답변
다음을 실행하여 모델 번호를 확인할 수 있습니다
cat /proc/cpuinfo | grep 'model name' | uniq
산출:
 model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
CPU 수를 세려면
cat /proc/cpuinfo | grep processor
출력 :
2
코어 수를 확인하려면!
cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 1
$hardinfo | less
$nproc  / prints out the number of processing units
Windows 사용자의 경우 여기에서 CPU-Z를 사용 하십시오.
Windows와 Linux에 대한 자세한 내용은 여기를 참조하십시오 .