Linux性能测试 /proc目录

/proc文件系统 - 各种内核信息
/proc目录下文件提供了很多不同硬件设备和内核的详细信息。更多详情参见Linux kernel /proc。一般/proc例如:

[root@SM155 proc]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz
stepping        : 13
cpu MHz         : 2000.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 xtpr
bogomips        : 4002.68

 

[root@SM155 proc]# cat /proc/meminfo
MemTotal:      2073624 kB
MemFree:       1174376 kB
Buffers:         89440 kB
Cached:         676780 kB
SwapCached:          0 kB
Active:         517460 kB
Inactive:       317268 kB
HighTotal:     1178312 kB
HighFree:       426304 kB
LowTotal:       895312 kB
LowFree:        748072 kB
SwapTotal:     2008116 kB
SwapFree:      2008116 kB
Dirty:             192 kB
Writeback:           0 kB
Mapped:         135720 kB
Slab:            47856 kB
CommitLimit:   3044928 kB
Committed_AS:   659484 kB
PageTables:       2240 kB
VmallocTotal:   106488 kB
VmallocUsed:      4236 kB
VmallocChunk:   101040 kB
HugePages_Total:     0
HugePages_Free:      0
Hugepagesize:     2048 kB
[root@SM155 proc]# 
[root@SM155 proc]# 

 

[root@SM155 proc]# cat /proc/mounts
rootfs / rootfs rw 0 0
/proc /proc proc rw,nodiratime 0 0
none /dev tmpfs rw 0 0
/dev/root / ext3 rw 0 0
none /dev tmpfs rw 0 0
/proc /proc proc rw,nodiratime 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw 0 0
/dev/sda2 /share ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sdb1 /disk1 ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sda2 /swb/log/stbdata/config ext3 rw 0 0

 

[root@SM155 proc]# cat /proc/zoneinfo
Node 0, zone      DMA
  pages free     2821
        min      17
        low      21
        high     25
        active   0
        inactive 0
        scanned  0 (a: 0 i: 0)
        spanned  4096
        present  4096
        protection: (0, 880, 1007)
  pagesets
    cpu: 0 pcp: 0
              count: 5
              low:   2
              high:  6
              batch: 1
    cpu: 0 pcp: 1
              count: 0
              low:   0
              high:  2
              batch: 1
    cpu: 1 pcp: 0
              count: 5
              low:   2
              high:  6
              batch: 1
    cpu: 1 pcp: 1
              count: 0
              low:   0
              high:  2
              batch: 1
  all_unreclaimable: 0
  prev_priority:     12
  temp_priority:     12
  start_pfn:         0

 

服务项目 技术咨询 微信图书 微信视频 微信代码 定制开发 其他福利
服务入口 QQ群有问必答
查看详情
一本书解决90%问题
查看详情
微信开发视频
小程序开发视频
免费代码
¥1888阿里云代金券
查看详情
营销工具
微信特异功能
posted @ 2012-07-26 18:26  方倍工作室  阅读(1451)  评论(0编辑  收藏  举报