Anda baru saja mempunyai server baik itu server dalam bentuk fisik, atau cloud dan ingin tahu spesifikasi kecepatan cpu server.
Kita langsung saja menjalankan perintah untuk mengecek core cpu yang digunakan di server, dibawah ini ada beberapa perintah untuk mengeceknya, langsung buka terminal dan jalankan perintah :
1) nproc –all
nproc --all
Maka akan tampil angka hasilnya misalnya : 4
2) nproc
nproc
Maka akan tampil angka hasilnya misalnya : 4
3) egrep ‘GHz|MHz’ /proc/cpuinfo
egrep 'GHz|MHz' /proc/cpuinfo
Maka akan tampil seperti :
4) lscpu
lscpu
Maka akan tampil CPU : 4.
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: 1 Core(s) per socket: 2 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 62 Model name: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz Stepping: 4 CPU MHz: 2100.000 BogoMIPS: 4200.00 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 15360K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm epb dtherm ida arat pln pts
5) cat /proc/cpuinfo
cat /proc/cpuinfo
Maka akan tampil keterangan processor, hitung jumlah processor yang tampil kalau di hitung totalnya : 4
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 62 model name : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz stepping : 4 microcode : 0x42e cpu MHz : 2100.000 cache size : 15360 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm epb dtherm ida arat pln pts bogomips : 4200.00 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 62 model name : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz stepping : 4 microcode : 0x42e cpu MHz : 2100.000 cache size : 15360 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm epb dtherm ida arat pln pts bogomips : 4200.00 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 62 model name : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz stepping : 4 microcode : 0x42e cpu MHz : 2100.000 cache size : 15360 KB physical id : 1 siblings : 2 core id : 0 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm epb dtherm ida arat pln pts bogomips : 4200.00 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 62 model name : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz stepping : 4 microcode : 0x42e cpu MHz : 2100.000 cache size : 15360 KB physical id : 1 siblings : 2 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm epb dtherm ida arat pln pts bogomips : 4200.00 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual
6) lscpu | grep -E ‘^Thread|^Core|^Socket|^CPU\(‘
lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
Maka akan tampil
CPU(s): 4 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 2
7) grep -E ‘processor|core id’ /proc/cpuinfo
grep -E 'processor|core id' /proc/cpuinfo
Maka akan tampil :
processor : 0 core id : 0 processor : 1 core id : 1 processor : 2 core id : 0 processor : 3 core id : 1
8) grep -m 1 ‘cpu cores’ /proc/cpuinfo
grep -m 1 'cpu cores' /proc/cpuinfo
Maka akan tampil :
cpu cores : 2
9) lscpu | grep ‘CPU(s):’ | head -1 | awk ‘{print $2}’
lscpu | grep 'CPU(s):' | head -1 | awk '{print $2}'
Maka akan tampil : 4
10) getconf _NPROCESSORS_ONLN
getconf _NPROCESSORS_ONLN
Maka akan tampil : 4
Sekian tutorial untuk melihat core cpu pada server, semoga bermanfaat 🙂