当前位置:网站首页>lsf基础命令
lsf基础命令
2022-07-02 13:58:00 【TMC~McGrady】
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 -u all -m machine_name:查询指定machine_name的所有jobs情况。
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、maxmem、maxswp、server、RESOURCES。
边栏推荐
- 618深度复盘:海尔智家的制胜方法论
- ROW_ NUMBER()、RANK()、DENSE_ Rank difference
- Global and Chinese market of desktop hot melt equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- 分析超700万个研发需求发现,这8门编程语言才是行业最需要的!
- LeetCode 1. 两数之和
- AcWing 300. Task arrangement
- LeetCode 5. 最长回文子串
- Understand the key technology of AGV -- the difference between laser slam and visual slam
- 流批一体在京东的探索与实践
- Sim2real environment configuration tutorial
猜你喜欢
What is the difference between self attention mechanism and fully connected graph convolution network (GCN)?
How to solve the failure of printer driver installation of computer equipment
PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板
Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
SQL solves the problem of continuous login deformation holiday filtering
Ranger (I) preliminary perception
数字IC手撕代码--投票表决器
A week of short video platform 30W exposure, small magic push helps physical businesses turn losses into profits
【云原生】简单谈谈海量数据采集组件Flume的理解
随机推荐
你想要的宏基因组-微生物组知识全在这(2022.7)
vscode设置删除行快捷键[通俗易懂]
Global and Chinese markets for airport baggage claim conveyors 2022-2028: technology, participants, trends, market size and share Research Report
July 1st gift: Yi Jingjie's "hundred day battle" ended perfectly, and the database of Guiyang bank was sealed in advance
SQL solves the problem of continuous login deformation holiday filtering
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
False summer vacation
LeetCode 6. Zigzag transformation (n-shaped transformation)
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
System Verilog实现优先级仲裁器
sql解决连续登录问题变形-节假日过滤
TCP server communication process (important)
Digital IC hand tearing code -- voting device
Kubernetes three open interfaces first sight
2322. 从树中删除边的最小分数(异或和&模拟)
unity Hub 登錄框變得很窄 無法登錄
sim2real环境配置教程