byobu custom ticker for cpu reservations
This commit is contained in:
16
anduril/300_byobu_squeue
Executable file
16
anduril/300_byobu_squeue
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
NODELIST=( vm3 vm4 vm5 vm6 )
|
||||
|
||||
NODERUNS=( )
|
||||
|
||||
# find node with least allocated CPUs
|
||||
|
||||
for e in ${NODELIST[@]}
|
||||
do NODERUNS+=( $( scontrol show node $e | grep CPUAlloc | sed 's,.*CPUAlloc=\([0-9]\+\).*,\1,' ) )
|
||||
done
|
||||
for (( i=0; i<${#NODERUNS[@]}; i++ ))
|
||||
do echo -n "$(( $i+3 )):${NODERUNS[$i]} "
|
||||
done
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user