[torqueusers] scheduler in Perl?
Kenneth Yoshimoto
kenneth at sdsc.edu
Wed Sep 15 09:29:34 MDT 2010
I prefer Python, but Perl should be pretty easy.
There's at least one Perl/PBS interface:
http://search.cpan.org/~tmerritt/PBS-0.03/lib/PBS.pm
http://linux.die.net/man/3/pbs
Or, you could write little C utilities to talk to
Torque.
You need to:
- get job info
- get node info
- decide when and where to run each job
- run the job
- cancel jobs that have overrun requested walltime
It's tricky running more than one task per node.
Also, watch out for users doing a qalter. A change
in job geometry may mess up your schedule.
Kenneth
More information about the torqueusers
mailing list