Created
February 7, 2024 21:04
-
-
Save dmd/9851a604ad0f7923018f4bdfd95d7060 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for job in $(sacct -a -X --start now-24hours -o jobid,State|grep COMPL|cut -f1 -d' '); do | |
seff -d $job | awk ' | |
NR==2 { | |
jobID=$3; | |
user=$4; | |
reqmemGB=$11/1024/1024; | |
memGB=$15/1024/1024; | |
efficiency=(memGB/reqmemGB)*100; | |
printf "%s\t%s\t%.0f%%\t%.0f/%.0f\n", jobID, user, efficiency, memGB, reqmemGB}' | |
done \ | |
| sort -k3,3n | column -t |
Author
dmd
commented
Feb 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment