qstat和qdel 的简单实用方式
Hi Everyone.
Share My Tips during This week.
今天对于qstat和qdel 做些基本介绍。属于PBS(公开作业管理系统)的命令。
qstat 命令—用于查询作业状态信息。qdel 命令—用于删除已提交的作业
假如xiaomi 是自己的名字,想看自己账户下进程job的数量的命令
- qstat |wc -l
- njobs -me
- njobs -u xiaomi
看其他人资源是否有空 用:
-
- qstat -u otherpeople | wc -l
注:申请使用权限要在对方的unix home dir里面的.rhosts 加入如下行.
-
- +xiaomi
For example:
xiaomi@AAAA: /u/AAA% qstat
job-ID prior name user state submit/start at queue jclass slots ja-task-ID
------------------------------------------------------------------------------------------------------------------------------------------------
6934 0.1320 b128-020 xiaomi r 11/19/2020 20:54:19 batch@african-
6935 0.1320 b128-024 xiaomi r 11/19/2020 20:59:37 batch@african-
6936 0.1320 b128-026 xiaomi r 11/19/2020 21:02:36 batch@african-
6937 0.1320 b128-042 xiaomi r 11/19/2020 21:32:26 batch@african-
6938 0.1320 b128-042 xiaomi qw 11/19/2020 21:32:26 batch@african-
xiaomi@AAAA: /u/AAA% qstat |wc -l
9
xiaomi@AAAA: /u/AAA% qstat -u otherpeople | wc -l
25
删除被hang的Job用
- qdel jobid
xiaomi@AAAA: /u/AAA% qdel 6934