Created
May 9, 2012 18:06
-
-
Save jarvist/2647424 to your computer and use it in GitHub Desktop.
Checks out your jobs running + queued on HPC, and guesses GFLOPS.
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
#!/bin/sh | |
qstat > ~/q.tmp | |
running=` grep \ R\ ~/q.tmp | wc -l ` | |
qd=` grep \ Q\ ~/q.tmp | wc -l ` | |
echo "My Jobs: ${running} running, ${qd} queued." | |
echo | |
echo "Assuming 8CPU jobs on 2.6GHz Xeons, that's: " | |
echo $running | awk ' {print $1 * 8," CPUs ", $1 * 8 * 5.2," GFLOPS"} ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment