lsf基础命令

23 篇文章 4 订阅

1、mylsfhosts
mylsfhosts:查询当前用户可用的queues_name及所有的hosts节点。
2、bjobs
bjobs:检查当前用户提交作业状态。会显示所有jobs的JOBID、USER、STAT、QUEUE、FROM_HOST、EXEC_HOST、JOB_NAME、SUBMIT_TIME。
bjobs -r:显示正在运行的jobs。
bjobs -a:显示正在运行的和最近完成的作业。
bjobs -p: 显示等待运行的作业和等待原因。
bjobs -s: 显示正在挂起的作业和挂起的原因。
bjobs -l: 显示该作业的所有信息。
bjobs -all:通过CPU time来判断jobs是否还在运行。The CPU time used is 93891 seconds。
bjobs -u all -m machine_name:查询指定machine_name的所有jobs情况。
bjobs -uall -al -m “”:所有服务器
-R ‘ut < 0.5 && r1m <10 && mem > 204800 && swap > 50000 order[ut]’
top -u $user
ps -ef | grep vnc | grep $USER
3、bhist
bhist:显示最近完成作业或正在运行作业的历史情况。
4、bkill
bkill jobid:删除指定job。
5、bpeek
bpeek jobid:当作业正在运行时显示它的标准输出,监视作业运行。Cannot bpeek an interactive job,不能peek交互式作业。
6、bqueues
bqueues:显示所有的队列信息,QUEUE_NAME、PRIO、STATUS、MAX、JL/U、JL/P、JL/H、NJOBS、PEND、RUN、SUSP。
7、bhosts
bhosts queues_name:显示各节点作业相关情况,HOST_NAME、STATUS、JL/U、MAX、NJOBS、RUN、SSUSP、USUSP、RSV。
bhosts -l machine_name:Total一行为整体状况,Reserved一行为预留,尤其是mem。
8、lsload
lsload machine_name:查询指定machine_name的负载情况,后面可以带多个服务器,同时查看。HOST_NAME、status、r15s、r1m、r15m、ut、pg、ls、it、tmp、swp、mem。
r15s:The 15-second exponentially averaged CPU run queue length.
r1m:The 1-minute exponentially averaged CPU run queue length.
r15m:The 15-minute exponentially averaged CPU run queue length.
ut:The CPU utilization exponentially averaged over the last minute, between 0 and 1. CPU利用率。
pg:The memory paging rate exponentially averaged over the last minute, in pages per second.内存分页速度。
ls:The number of current login users. login users用户登录数。
it:On UNIX, the idle time of the host (keyboard not touched on all logged in sessions), in minutes. 主机空闲时间。
On Windows, the it index is based on the time a screen saver has been active on a particular host.
tmp:The amount of free space in /tmp, in MB. tmp中可用的空间大小。
swp:The amount of available swap space. 可用缓存空间大小。
By default, the amount is displayed in KB. The amount may appear in MB depending on the actual system swap space. Use LSF_UNIT_FOR_LIMITS in lsf.conf to specify a larger unit for the limit (GB, TB, PB, or EB).
mem:The amount of available RAM. 可用mem空间大小。
By default, the amount is displayed in KB. The amount may appear in MB depending on the actual system memory. Use LSF_UNIT_FOR_LIMITS in lsf.conf to specify a larger unit for the limit (GB, TB, PB, or EB).
9、bsub
bsub:提交给lsf作业的命令
-I:交互模式,此时终端不能输入。-Ip、-Is表示在提交job的时候提供虚拟Terminal支持,比如vim这种应用。
-q:指定queues。
-P project_name:指定项目,一般用于标识和统计。
-m hostname:指定服务器,需要确保机器在当前队列中。
-R:
select: 资源选择,满足特定需求的计算节点。比如-R “select[mem>1G]”,表示内存大于1G的,才可以被用来执行相关的作业。
rusage:资源用量,作业需要使用的资源数量。比如-R “rusage[mem=512M]”,表示内存使用量为512M,保留给作业使用。调度器将这些资源从节点可用资源中扣除,不再分配给别人。
-R ‘rusage[mem=204800]’:单位为M,总共200G,保留200G的内存给该job使用。
order:资源顺序,计算节点的选择顺序。比如-R “order[mem]”,当多个机器可选的时候,优先选择内存较大的计算节点。
==-R ‘ut < 0.5 && r1m <10 && mem > 204800 && swap > 50000 order[ut]’ ==,多条件控制选择服务器。
IBM Knowledge Center中包含LSF相关的所有文档 :https://www.ibm.com/docs/en/spectrum-lsf/10.1.0
LSF命令行参考列表包括了每一个命令行帮助文档的链接:https://www.ibm.com/docs/en/spectrum-lsf/10.1.0?topic=reference-command
下载LSF社区版可以快速安装和使用LSF,虽然在数据中心是这管理员的活儿,但是自己想要试一下的话这个最便捷。:https://www.ibm.com/support/pages/where-do-i-download-lsf-community-edition
10、lshosts
lshosts hostname:查看机器资源状态,HOST_NAME、type、model、cpuf ncpus、maxmemmaxswp、server、RESOURCES。

  • 2
    点赞
  • 35
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值