重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3897|回复: 2
打印 上一主题 下一主题

[系统管理] ps aux命令显示的状态列中的Ss+,Rsl,R+,S<sl都是什么意思 搜索

[复制链接]
跳转到指定楼层
楼主
发表于 2018-4-4 12:23:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
比如下面命令的结果:

root        991  0.0  0.3 382540  3804 ?        Sl   11:48   0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0
polkitd     994  0.0  1.1 517616 11812 ?        Ssl  11:48   0:00 /usr/lib/polkit-1/polkitd --no-debug
root       1001  0.0  1.5 175868 15544 tty1     Ssl+ 11:48   0:01 /usr/bin/Xorg :0 -background none -verbose -auth /run/gdm/auth-for-gdm-CBZ0Ym/database -seat sea
root       1084  0.0  0.9 529736  9248 ?        Ssl  11:48   0:00 /usr/sbin/NetworkManager --no-daemon
root       1332  0.0  0.4 359044  4596 ?        Sl   11:48   0:00 gdm-session-worker [pam/gdm-launch-environment]
root       1561  0.0  1.4 478676 14184 ?        Ssl  11:48   0:00 /usr/sbin/libvirtd
root       1577  0.0  0.0 110004   852 ttyS0    Ss+  11:48   0:00 /sbin/agetty --keep-baud ttyS0 115200 38400 9600
root       1582  0.0  0.3  82956  3592 ?        Ss   11:48   0:00 /usr/sbin/sshd -D
rpc        1625  0.0  0.1  39900  1124 ?        Ss   11:48   0:00 /sbin/rpcbind -w
rpcuser    1680  0.0  0.1  46556  1828 ?        Ss   11:48   0:00 /sbin/rpc.statd
root       1738  0.0  1.5 102312 15628 ?        S    11:48   0:00 /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/Ne
gdm        1740  0.0  1.4 703224 14084 ?        Ssl  11:48   0:00 /usr/bin/gnome-session --autostart /usr/share/gdm/greeter/autostart
gdm        1744  0.0  0.0  13944   612 ?        S    11:48   0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --autostart /usr/share/gdm/greet
root       1817  0.0  0.2  93784  2140 ?        Ss   11:48   0:00 /usr/libexec/postfix/master -w
postfix    1818  0.0  0.3  93888  3912 ?        S    11:48   0:00 pickup -l -t unix -u
postfix    1819  0.0  0.3  93956  3940 ?        S    11:48   0:00 qmgr -l -t unix -u
gdm        1833  0.0  0.1  37208  1496 ?        Ssl  11:48   0:00 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
gdm        1873  0.0  0.5 339824  5224 ?        Sl   11:48   0:00 /usr/libexec/at-spi-bus-launcher
gdm        1877  0.0  0.1  36836  1724 ?        Sl   11:48   0:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
gdm        1881  0.0  0.3 129520  3376 ?        Sl   11:48   0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
gdm        1891  0.0  1.9 856016 19356 ?        Sl   11:48   0:00 /usr/libexec/gnome-settings-daemon
root       1900  0.0  0.4 236836  4504 ?        Ssl  11:48   0:00 /usr/libexec/upowerd
gdm        1952  1.0 10.8 1500212 108992 ?      Sl   11:48   0:21 gnome-shell --mode=gdm
colord     1954  0.0  0.5 332688  5772 ?        Ssl  11:48   0:00 /usr/libexec/colord
gdm        1960  0.0  0.5 452716  5312 ?        S<l  11:48   0:00 /usr/bin/pulseaudio --start --log-target=syslog
gdm        1991  0.0  0.2 180500  2536 ?        Sl   11:48   0:00 /usr/libexec/dconf-service
gdm        1999  0.0  0.7 461160  7376 ?        Sl   11:48   0:00 /usr/bin/ibus-daemon --replace --xim --panel disable
gdm        2001  0.0  0.3 310432  3508 ?        Sl   11:48   0:00 /usr/libexec/ibus-dconf
gdm        2005  0.0  0.8 372784  8680 ?        Sl   11:48   0:00 /usr/libexec/ibus-x11 --kill-daemon
gdm        2009  0.0  0.3 236648  3428 ?        Sl   11:48   0:00 /usr/libexec/ibus-engine-simple
root       2051  0.2  0.4 135680  4936 ?        Ss   11:50   0:04 sshd: root@pts/0
root       2055  0.0  0.2 116144  2796 pts/0    Ss   11:50   0:00 -bash
gdm        2113  0.0  0.6 321012  6784 ?        Sl   11:53   0:00 /usr/libexec/mission-control-5
gdm        2122  0.0  1.6 551480 16428 ?        Sl   11:53   0:00 /usr/libexec/goa-daemon
root       2191  0.1  0.0      0     0 ?        R    12:00   0:02 [kworker/0:1]
root       2202  0.0  0.0      0     0 ?        S    12:00   0:00 [kworker/1:0]
root       2230  0.0  0.1 125396  1104 ?        Ss   12:01   0:00 /usr/sbin/anacron -s
root       2354  0.0  0.0      0     0 ?        S    12:10   0:00 [kworker/1:1]
root      29937  0.0  0.0      0     0 ?        S    12:20   0:00 [kworker/1:2]
root      29962  0.0  0.0 107892   620 ?        S    12:22   0:00 sleep 60
root      29964  0.0  0.1 123356  1388 pts/0    R+   12:22   0:00 ps aux
...


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2018-4-4 12:24:03 | 只看该作者
D    不可中断     Uninterruptible sleep (usually IO)
    R    正在运行,或在队列中的进程
    S    处于休眠状态
    T    停止或被追踪
    Z    僵尸进程
    W    进入内存交换(从内核2.6开始无效)
    X    死掉的进程

    <    高优先级
    N    低优先级
    L    有些页被锁进内存搜索
    s    包含子进程
    +    位于后台的进程组;
    l    多线程,克隆线程  multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2018-4-4 12:29:02 | 只看该作者
这个可以在 man ps 中查找 :PROCESS STATE CODES 可以看到这个解释:

PROCESS STATE CODES
       Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process:

               D    uninterruptible sleep (usually IO)
               R    running or runnable (on run queue)
               S    interruptible sleep (waiting for an event to complete)
               T    stopped, either by a job control signal or because it is being traced
               W    paging (not valid since the 2.6.xx kernel)
               X    dead (should never be seen)
               Z    defunct ("zombie") process, terminated but not reaped by its parent

       For BSD formats and when the stat keyword is used, additional characters may be displayed:

               <    high-priority (not nice to other users)
               N    low-priority (nice to other users)
               L    has pages locked into memory (for real-time and custom IO)
               s    is a session leader
               l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
               +    is in the foreground process group
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-6 19:02 , Processed in 0.163608 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表