LSF Version 7.3 - Using Platform LSF HPC
bsub -n 8 -extsched "CPUSET[CPU_LIST=1, 5, 7-12;
CPUSET_OPTIONS=CPUSET_CPU_EXCLUSIVE|CPUSET_MEMORY_LOCAL]" myjob
The job myjob will succeed if CPUs 1, 5, 7, 8, 9, 10, 11, and 12 are available.
◆
Specify a static cpuset:
bsub -n 8 -extsched "CPUSET[CPUSET_TYPE=static; CPUSET_NAME=MYSET]" myjob
Specifying a cpuset name implies that the cpuset type is static:
bsub -n 8 -extsched "CPUSET[CPUSET_NAME=MYSET]" myjob
Jobs are attached to a static cpuset specified by users at job submission. This cpuset
is not deleted when the job finishes or exits.
◆
Run a job without using any cpuset:
bsub -n 8 -extsched "CPUSET[CPUSET_TYPE=none]" myjob
◆
Jobs requesting static cpusets:
bsub -n 4 -q low rusage[scpus=4]" -extsched "CPUSET[CPUSET_NAME=MYSET]"
sleep 1000
bsub -n 4 -q low rusage[scpus=4]" -extsched "CPUSET[CPUSET_NAME=MYSET]"
sleep 1000
After these two jobs start running, submit a job to a high priority queue:
bsub -n 4 -q high rusage[scpus=4]" -extsched "CPUSET[CPUSET_NAME=MYSET]"
sleep 1000
The most recent job running on the low priority queue (job 102) is preempted by
the job submitted to the high priority queue (job 103):
bjobs
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
103 user1 RUN high hosta 4*hosta *eep 1000 Jan 22 08:24
101 user1 RUN low hosta 4*hosta *eep 1000 Jan 22 08:23
102 user1 SSUSP low hosta 4*hosta *eep 1000 Jan 22 08:23
bhosts -s
RESOURCE TOTAL RESERVED
LOCATION
dcpus 4.0 0.0 hosta
scpus 0.0 8.0 hosta
◆
Jobs request dynamic cpusets:
bsub -q high rusage[dcpus=1]" -n 3 -extsched "CPUSET[CPU_LIST=1,2,3]" sleep
1000
bhosts -s
RESOURCE TOTAL RESERVED
LOCATION
dcpus 3.0 1.0 hosta
scpus 8.0 0.0 hosta