/proc 内核统计信息各文件的含义

清泛原创
1、各进程的统计文件,如下:
# ls -F /proc/904/
attr/       coredump_filter  fdinfo/   make-it-fail  mountstats  oom_score_adj  sched      stat     timerslack_ns
auxv        cpuset           gid_map   map_files/    net/        pagemap        schedstat  statm    uid_map
cgroup      cwd@             io        maps          ns/         patch_state    sessionid  status   wchan
clear_refs  environ          latency   mem           numa_maps   personality    setgroups  syscall
cmdline     exe@             limits    mountinfo     oom_adj     projid_map     smaps      task/
comm        fd/              loginuid  mounts        oom_score   root@          stack      timers
含义如下:


2、系统级别统计:
# cd /proc; ls -Fd [a-z]*
acpi/      consoles   execdomains  irq/         kpagecount     modules       schedstat  sys/           version
asound/    cpuinfo    fb           kallsyms     kpageflags     mounts@       scsi/      sysrq-trigger  vmallocinfo
buddyinfo  crypto     filesystems  kcore        latency_stats  mtrr          self@      sysvipc/       vmstat
bus/       devices    fs/          key-users    loadavg        net@          slabinfo   thread-self@   zoneinfo
cgroups    diskstats  interrupts   keys         locks          pagetypeinfo  softirqs   timer_list
cmdline    dma        iomem        kmsg         meminfo        partitions    stat       tty/
config.gz  driver/    ioports      kpagecgroup  misc           sched_debug   swaps      uptime
含义如下:

--End--

proc

分享到:
评论加载中,请稍后...
创APP如搭积木 - 创意无限,梦想即时!
回到顶部