免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3519 | 回复: 3
打印 上一主题 下一主题

scp不动了,linux进程的状态问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-03 10:22 |只看该作者 |倒序浏览
发现一个scp进程还在run ,  但是检查timestamp已经很久没有更新了,检查这个进程的状态:
alpcisddb495[oracle]_dshbrdt> ps -eo user,pid,stat,rss,args --sort rss |grep 1020
oracle    1020 SN    1084 /bin/sh ./scp.sh

1.这里的SN是什么意思? 是意味着scp hang住了吗?
2.除了SN 还有什么状态呢?
3.如果SN是hang住的意思, 那么什么命令可以使得其变成活动状态继续工作?

论坛徽章:
0
2 [报告]
发表于 2012-04-03 10:35 |只看该作者
S休眠状态  N低优先级   

S Interruptible sleep (waiting for an event to complete)
N low-priority (nice to other users)

论坛徽章:
95
程序设计版块每日发帖之星
日期:2015-09-05 06:20:00程序设计版块每日发帖之星
日期:2015-09-17 06:20:00程序设计版块每日发帖之星
日期:2015-09-18 06:20:002015亚冠之阿尔艾因
日期:2015-09-18 10:35:08月度论坛发贴之星
日期:2015-09-30 22:25:002015亚冠之阿尔沙巴布
日期:2015-10-03 08:57:39程序设计版块每日发帖之星
日期:2015-10-05 06:20:00每日论坛发贴之星
日期:2015-10-05 06:20:002015年亚冠纪念徽章
日期:2015-10-06 10:06:482015亚冠之塔什干棉农
日期:2015-10-19 19:43:35程序设计版块每日发帖之星
日期:2015-10-21 06:20:00每日论坛发贴之星
日期:2015-09-14 06:20:00
3 [报告]
发表于 2012-04-03 10:38 |只看该作者
Kevin__Zhang 发表于 2012-04-03 10:22
1.这里的SN是什么意思? 是意味着scp hang住了吗?


 意味著你應該查 ps 的手冊。

论坛徽章:
0
4 [报告]
发表于 2012-04-03 10:48 |只看该作者
谢谢,  去查了下文档:

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP