Linux : CPU and Memory Info Commands - DevDummy

Latest

Coding Hacks, Shared ...

Tuesday, October 24, 2017

Linux : CPU and Memory Info Commands



1. List CPU Core Level Information 

cat /proc/cpuinfo

[sdn@devdummy ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz
stepping : 9
microcode : 25
cpu MHz : 2793.763
cache size : 8192 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
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 mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx rdrand lahf_lm
bogomips : 5587.52
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
...

processor : 2
...

processor : 3
...

2. List CPU Hardware Details

lscpu

[sdn@devdummy ~]$ 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:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 58
Stepping:              9
CPU MHz:               2793.763
BogoMIPS:              5587.52
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0-3

3. List Memory Infomation

cat /proc/meminfo

[sdn@devdummy ~]$ cat /proc/meminfo
MemTotal:       11279684 kB
MemFree:          677988 kB
Buffers:          775004 kB
Cached:          6188944 kB
SwapCached:            0 kB
Active:          5343628 kB
Inactive:        4398252 kB
Active(anon):    2469184 kB
Inactive(anon):   946236 kB
Active(file):    2874444 kB
Inactive(file):  3452016 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2097148 kB
SwapFree:        2097148 kB
Dirty:               144 kB
Writeback:             0 kB
AnonPages:       2779796 kB
Mapped:           336600 kB
Shmem:            637484 kB
Slab:             686040 kB
SReclaimable:     636168 kB
SUnreclaim:        49872 kB
KernelStack:       12048 kB
PageTables:        55876 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7736988 kB
Committed_AS:    6586624 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      167928 kB
VmallocChunk:   34359561208 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1753088 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        9152 kB
DirectMap2M:    11646976 kB

Reference




No comments:

Post a Comment