未加星标

[原]PBS查看历史作业

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二04 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏
PBS查看历史作业

PBS默认情况下使用qstat查看作业时是看不到历史作业的,如果需要查询历史作业,需要修改pbs的配置,设置job_history_enable=True,具体命令如下:

# qmgr Qmgr: set server job_history_enable=True Qmgr: set server job_history_duration=336:00:00 上面的命令设置了保存两周的历史作业。duration的格式: [[hours:]minutes:]seconds[.milliseconds]

配置后可以使用下面的命令来查看历史作业

$ qstat -x Job id Name User Time Use S Queue ---------------- ---------------- ---------------- -------- - ----- 6.pbsmaster STDIN admin 00:00:00 F workq 8.pbsmaster STDIN admin 00:00:00 F workq 9[].pbsmaster STDIN admin 0 F workq 10.pbsmaster STDIN admin 00:00:00 F workq 11.pbsmaster STDIN admin 00:00:00 F workq 15[].pbsmaster STDIN admin 0 F workq 16.pbsmaster STDIN admin 00:00:00 F workq 17.pbsmaster STDIN admin 00:00:00 F workq 18.pbsmaster STDIN admin 0 F workq 19.pbsmaster STDIN admin 00:00:00 F workq 20.pbsmaster STDIN admin 0 F workq 21.pbsmaster STDIN admin 00:00:00 F workq 22.pbsmaster STDIN admin 00:00:00 F workq 23[].pbsmaster STDIN admin 0 F workq 26.pbsmaster STDIN admin 00:00:00 F workq

也可以查看历史作业的详细信息,如下:

# qstat -x -f 22 Job Id: 22.pbsmaster Job_Name = STDIN Job_Owner = [email protected] resources_used.cpupercent = 0 resources_used.cput = 00:00:00 resources_used.mem = 11852kb resources_used.ncpus = 16 resources_used.vmem = 53280kb resources_used.walltime = 00:02:00 job_state = F queue = workq server = pbsmaster Checkpoint = u ctime = Mon Oct 10 11:02:03 2016 Error_Path = pbsmaster:/home/admin/STDIN.e22 exec_host = pbsmaster/0*8+pbsslave/0*8 exec_vnode = (pbsmaster:ncpus=8)+(pbsslave:ncpus=8) Hold_Types = n Join_Path = n Keep_Files = n Mail_Points = a mtime = Mon Oct 10 11:05:21 2016 Output_Path = pbsmaster:/home/admin/STDIN.o22 Priority = 0 qtime = Mon Oct 10 11:02:03 2016 Rerunable = True Resource_List.ncpus = 16 Resource_List.nodect = 2 Resource_List.place = free Resource_List.select = 2:ncpus=8 schedselect = 2:ncpus=8 stime = Mon Oct 10 11:03:20 2016 session_id = 3383 jobdir = /home/admin substate = 92 Variable_List = PBS_O_HOME=/home/admin,PBS_O_LANG=en_US.UTF-8, PBS_O_LOGNAME=admin, PBS_O_PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt /pbs/bin:/home/admin/.local/bin:/home/admin/bin, PBS_O_MAIL=/var/spool/mail/admin,PBS_O_SHELL=/bin/bash, PBS_O_WORKDIR=/home/admin,PBS_O_SYSTEM=linux,PBS_O_QUEUE=workq, PBS_O_HOST=pbsmaster euser = admin egroup = admin hashname = 22.pbsmaster queue_rank = 15 queue_type = E comment = Job run at Mon Oct 10 at 11:03 on (pbsmaster:ncpus=8)+(pbsslave:n cpus=8) and finished etime = Mon Oct 10 11:02:03 2016 run_count = 1 Stageout_status = 1 Exit_status = 0 Submit_arguments = -lselect=2:ncpus=8 history_timestamp = 1476097521 project = _pbs_project_default run_version = 1

还可以使用printjob命令来查看历史作业的详细信息,如下:

# printjob 22 --------------------------------------------------- jobid: 22.pbsmaster --------------------------------------------------- state: 0x9 substate: 0x5c (92) svrflgs: 0x21 (33) ordering: 0 inter prior: 0 stime: 1476097400 file base: queue: workq union type exec: momaddr 18446744072301379588 exits 0 --attributes-- hashname = 22.pbsmaster comment = Job run at Mon Oct 10 at 11:03 on (pbsmaster:ncpus=8)+(pbsslave:ncpus=8) and finished run_count = 1 job_kill_delay = 10 run_version = 1 Job_Name = STDIN Job_Owner = [email protected] job_state = F queue = workq server = pbsmaster Checkpoint = u ctime = 1476097323 Error_Path = pbsmaster:/home/admin/STDIN.e22 Hold_Types = n Join_Path = n Keep_Files = n Mail_Points = a mtime = 1476097521 Output_Path = pbsmaster:/home/admin/STDIN.o22 Priority = 0 qtime = 1476097323 Rerunable = True Resource_List.ncpus = 16 Resource_List.nodect = 2 Resource_List.place = free Resource_List.select = 2:ncpus=8 schedselect = 2:ncpus=8 substate = 92 Variable_List = PBS_O_HOME=/home/admin,PBS_O_LANG=en_US.UTF-8,PBS_O_LOGNAME=admin,PBS_O_PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/pbs/bin:/home/admin/.local/bin:/home/admin/bin,PBS_O_MAIL=/var/spool/mail/admin,PBS_O_SHELL=/bin/bash,PBS_O_WORKDIR=/home/admin,PBS_O_SYSTEM=Linux,PBS_O_QUEUE=workq,PBS_O_HOST=pbsmaster euser = admin egroup = admin hop_count = 1 queue_rank = 15 queue_type = E etime = 1476097323 Submit_arguments = <jsdl-hpcpa:Argument>-lselect=2:ncpus=8</jsdl-hpcpa:Argument> project = _pbs_project_default exec_host = pbsmaster/0*8+pbsslave/0*8 exec_host2 = pbsmaster:15002/0*8+pbsslave:15002/0*8 exec_vnode = (pbsmaster:ncpus=8)+(pbsslave:ncpus=8) resources_used.cpupercent = 0 resources_used.cput = 00:00:00 resources_used.mem = 11852kb resources_used.ncpus = 16 resources_used.vmem = 53280kb resources_used.walltime = 00:02:00 stime = 1476097400 session_id = 3383 jobdir = /home/admin Stageout_status = 1 Exit_status = 0 history_timestamp = 1476097521

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: LinuxUT
分页:12
转载请注明
本文标题:[原]PBS查看历史作业
本站链接:http://www.codesec.net/view/481428.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(39)