本文共 2580 字,大约阅读时间需要 8 分钟。
root@tbc-st-1000:/# ps
PID USER VSZ STAT COMMAND 1 root 1432 S /sbin/procd 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW< [kworker/0:0H] 6 root 0 SW [kworker/u2:0] 7 root 0 SW< [khelper] 8 root 0 SW [kworker/u2:1] 11 root 0 SW< [writeback] 12 root 0 SW< [bioset] 13 root 0 SW< [kblockd] 14 root 0 SW [kswapd0] 15 root 0 SW [kworker/0:1] 43 root 0 SW [fsnotify_mark] 162 root 0 SW [spi32766] 216 root 0 SW< [deferwq] 234 root 0 SW [kworker/u2:2] 291 root 0 SWN [jffs2_gcd_mtd6] 347 root 900 S /sbin/ubusd 348 root 768 S /sbin/askfirst /bin/ash --login 506 root 0 SW< [ipv6_addrconf] 523 root 0 SW< [rpciod] 542 root 0 SW< [nfsiod] 575 root 0 SW [kworker/u2:3] 623 root 0 SW< [cfg80211] 705 root 1056 S /sbin/logd -S 16 714 root 1864 S /sbin/rpcd 735 root 1636 S /sbin/netifd 756 root 1192 S /usr/sbin/odhcpd 786 root 1468 S /usr/sbin/telnetd -F -l /bin/login.sh 805 pulse 14820 S < /usr/bin/pulseaudio --system --disallow-exit --disal 814 root 3236 S /usr/sbin/tbconfig 823 root 26964 S /usr/bin/IntelligentDevice 882 root 1468 S udhcpc -p /var/run/udhcpc-br-lan.pid -s /lib/netifd/ 885 root 1468 S udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/ 990 root 1468 S udhcpc -p /var/run/udhcpc-wlan0.pid -s /lib/netifd/d 1010 nobody 984 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /va 1136 root 1476 S /bin/ash --login 1148 root 1468 R ps
root@tbc-st-1000:/# cat /proc/823/status Name: IntelligentDevi 进程名 State: S (sleeping) 进程的状态我们前文已经做了很详细的分析,各进程的状态代表的意义如下:R (running)", "S (sleeping)", "D (disk sleep)", "T (stopped)", "T(tracing stop)", "Z (zombie)", or "X (dead)" Tgid: 823 Ngid: 0 Pid: 823 PPid: 1 TracerPid: 0 Uid: 0 0 0 0 Gid: 0 0 0 0 FDSize: 32 Groups: VmPeak: 26964 kB 这里的VmPeak代表当前进程运行过程中占用内存的峰值. VmSize: 26964 kB VmSize代表进程现在正在占用的内存 VmLck: 0 kB 代表进程已经锁住的物理内存的大小.锁住的物理内存不能交换到硬盘. VmPin: 0 kB VmHWM: 6804 kB 是程序得到分配到物理内存的峰值 VmRSS: 6804 kB 程序现在使用的物理内存 VmData: 20568 kB 表示进程数据段的大小 VmStk: 136 kB 表示进程堆栈段的大小 VmExe: 684 kB 表示进程代码的大小 VmLib: 5292 kB 表示进程所使用LIB库的大小. VmPTE: 36 kB 占用的页表的大小 VmSwap: 0 kB 进程占用Swap的大小 Threads: 9 表示当前进程组有9个线程. SigQ: 0/226 SigPnd: 00000000000000000000000000000000 ShdPnd: 00000000000000000000000000000000 SigBlk: 00000000000000000000000000000000 SigIgn: 00000000000000000000000000001004 SigCgt: 00000000000000000000000180000000 CapInh: 0000000000000000 CapPrm: 0000003fffffffff CapEff: 0000003fffffffff CapBnd: 0000003fffffffff Cpus_allowed: 1 Cpus_allowed_list: 0 voluntary_ctxt_switches: 3738 表示进程主动切换的次数. nonvoluntary_ctxt_switches: 632 表示进程被动切换的次数.
转载地址:http://csfqj.baihongyu.com/