输入:free
输出:
total used free shared buffers cached Mem: 3598396 1490744 2107652 6464 87024 722192 -/+ buffers/cache: 681528 2916868 Swap: 2095100 0 2095100total:物理内存的总大小
MemTotal: 3598396 kB MemFree: 2121804 kB Buffers: 87116 kB Cached: 722244 kB SwapCached: 0 kB Active: 899664 kB Inactive: 415884 kB Active(anon): 506916 kB Inactive(anon): 5732 kB Active(file): 392748 kB Inactive(file): 410152 kB Unevictable: 32 kB Mlocked: 32 kB SwapTotal: 2095100 kB SwapFree: 2095100 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 506216 kB Mapped: 104192 kB Shmem: 6464 kB Slab: 95644 kB SReclaimable: 76152 kB SUnreclaim: 19492 kB KernelStack: 3104 kB PageTables: 25168 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 3894296 kB Committed_AS: 3188768 kB VmallocTotal: 34359738367 kB VmallocUsed: 39156 kB VmallocChunk: 34359694855 kB HardwareCorrupted: 0 kB AnonHugePages: 256000 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 42944 kB DirectMap2M: 3627008 kB
Usage: free [options] Options: -b, --bytes show output in bytes -k, --kilo show output in kilobytes -m, --mega show output in megabytes -g, --giga show output in gigabytes --tera show output in terabytes -h, --human show human-readable output --si use powers of 1000 not 1024 -l, --lohi show detailed low and high memory statistics -o, --old use old format (without -/+buffers/cache line) -t, --total show total for RAM + swap -s N, --seconds N repeat printing every N seconds -c N, --count N repeat printing N times, then exit --help display this help and exit -V, --version output version information and exit
Architecture: x86_64 CPU 运行模式: 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 每个核的线程数:1 每个座的核数: 1 Socket(s): 1 NUMA 节点: 1 厂商 ID: GenuineIntel CPU 系列: 6 型号: 58 步进: 9 CPU MHz: 0.000 BogoMIPS: 6967.29 L1d 缓存: 32K L1d 缓存: 32K L2d 缓存: 6144K
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz stepping : 9 microcode : 0x19 cpu MHz : 0.000 cache size : 6144 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 5 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 rep_good nopl pni monitor ssse3 lahf_lm bogomips : 6967.29 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
输出: