学习笔记之Slurm

Slurm是一款开源、容错且高度可扩展的集群管理和作业调度系统,适用于大小不一的Linux集群。它无需内核修改即可运行,相对自包含。作为集群工作负载管理器,Slurm的主要功能包括资源分配、工作执行监控以及资源争用仲裁。
摘要由CSDN通过智能技术生成

Slurm Workload Manager - Overview

  • https://slurm.schedmd.com/overview.html
  • Slurm is an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for large and small Linux clusters. Slurm requires no kernel modifications for its operation and is relatively self-contained. As a cluster workload manager, Slurm has three key functions. First, it allocates exclusive and/or non-exclusive access to resources (compute nodes) to users for some duration of time so they can perform work. Second, it provides a framework for starting, executing, and monitoring work (normally a parallel job) on the set of allocated nodes. Finally, it arbitrates contention for resources by managing a queue of pending work. Optional plugins can be used for accountingadvanced reservationgang scheduling (time sharing for parallel jobs), backfill scheduling, topology optimized resource selectionresource limits by user or bank account, and sophisticated multifactor job prioritization algorithms.

Slurm Workload Manager - Quick Start User Guide

Slurm Workload Manager - Wikipedia


sbatch - Submit a batch script to Slurm

scancel - Used to signal jobs or job steps that are under the control of Slurm.

scontrol - view or modify Slurm configuration and state.

squeue - view information about jobs located in the Slurm scheduling queue.

srun - Run parallel jobs

  • https://slurm.schedmd.com/srun.html
  • $ cat testscript.sh
  • #!/bin/sh
  • python mytest.py --arg test
  • $ chmod +x testscript.sh
  • $ srun -N5 -n100 testscript.sh
    • Run it on 5 nodes with 100 tasks
  • $ srun -n5 --nodelist=host1, host2 -o testscript.log testscript.sh

Convenient SLURM Commands | FAS Research Computing

 

 

转载于:https://www.cnblogs.com/pegasus923/p/11511332.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值