読者です 読者をやめる 読者になる 読者になる

【Linux】マシンスペックを調べるコマンド

CPUの情報表示

cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 60
model name      : Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
stepping        : 3
cpu MHz         : 0.000
cache size      : 8192 KB
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 syscall nx rdtscp lm constant_tsc up rep_good xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbepopcnt aes rdrand lahf_lm abm
bogomips        : 8159.23
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

メモリ情報表示

cat /proc/meminfo
MemTotal:         502212 kB
MemFree:           55072 kB
Buffers:           89296 kB
Cached:           127412 kB
SwapCached:          764 kB
Active:           167568 kB
Inactive:         172168 kB
Active(anon):      44348 kB
Inactive(anon):    79068 kB
Active(file):     123220 kB
Inactive(file):    93100 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       3112944 kB
SwapFree:        3110908 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        122532 kB
Mapped:            19592 kB
Shmem:               388 kB
Slab:              83308 kB
SReclaimable:      58772 kB
SUnreclaim:        24536 kB
KernelStack:        1648 kB
PageTables:        11796 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3364048 kB
Committed_AS:     641032 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       20984 kB
VmallocChunk:   34359708152 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8128 kB
DirectMap2M:      516096 kB