Skip to content

Instantly share code, notes, and snippets.

@jarvist
Created May 9, 2012 18:06
Show Gist options
  • Save jarvist/2647424 to your computer and use it in GitHub Desktop.
Save jarvist/2647424 to your computer and use it in GitHub Desktop.
Checks out your jobs running + queued on HPC, and guesses GFLOPS.
#!/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