tp
查看系统中被阻塞的线程信息。
格式
tp [pid]
说明
[root@sylixos:/root]# help tp
show thread pending information.
you can and pid argument to determine which process you want to see.
tp [pid]
[root@sylixos:/root]#
此命令有 2 种用法:
- 无参数:用于显示所有进程中被阻塞的线程信息。
- 参数 pid:用于显示相应进程下被阻塞的线程信息。
样例
[root@sylixos:/root]# tp
thread pending show >>
NAME TID PID STAT DELAY PEND EVENT OWNER
---------------- ------- ----- ---- ---------- ----------------------- -------
t_itimer 4000001 0 SLP 50841 0:
t_isrdefer 4000002 0 SEM 0 10000002:job_sync
t_except 4000003 0 SEM 0 10000003:job_sync
t_log 4000004 0 MSGQ 0 1c000004:log_msg:R
t_power 4000005 0 SLP 92 0:
t_hotplug 4000006 0 SEM 92 10000015:job_sync
t_reclaim 4000008 0 MSGQ 0 1c000021:res_reclaim:R
t_sync 4000009 0 SLP 1063 0:
t_dcwpipe 400000a 0 SEM 0 c00005c:dc_mq
t_tpsfs 400000b 0 SLP 1015 0:
t_console 400000c 0 MSGQ 0 1c0000cc:xkbd_q:R
t_netjob 400000d 0 SEM 0 10000088:job_sync
t_netproto 400000e 0 MSGQ 14 1c00008c:net_msg:R
t_snmp 400000f 0 MSGQ 0 1c00009c:net_msg:R
t_ftpd 4000010 0 MSGQ 0 1c0000c1:net_msg:R
t_telnetd 4000011 0 MSGQ 0 1c0000c2:net_msg:R
t_jobq 4000013 0 SEM 0 100000b8:job_sync
t_xinput 4000015 0 SEM 0 100000d2:sel_wakeup
t_xcondev 4000016 0 MSGQ 0 1c0000d7:xcon_cq:R
main.jsc 4000017 1 SEM 0 100000e0:sel_wakeup
t_tshell 400001a 0 SEM 0 10000040:ty_rsync
jsre_timer 400001b 1 VUTX 1322 f122940:42869
imgpull.jsc 400001c 1 SEM 0 10000224:sel_wakeup
assistant.jsc 400001d 1 SEM 0 10000273:sel_wakeup
pending thread: 24
[root@sylixos:/root]#
字段说明:
字段 | 说明 |
---|---|
NAME | 线程名 |
TID | 线程ID |
PID | 线程所属进程ID |
STAT | 线程状态 |
DELAY | 等待计数器 |
PEND EVENT | 阻塞事件句柄和函数接口 |
OWNER | 所有者 |