[torqueusers] qsub wrapper examples for filtering on memory request

Michael Jennings mej at lbl.gov
Fri Apr 19 13:34:43 MDT 2013

On Friday, 19 April 2013, at 00:06:48 (-0400),
David Chin wrote:

> It's a slightly sticky problem due to the many ways one can specify memory:
> 1024mb, 1gb, etc, etc.

If it helps, Warewulf NHC has bash functions to canonicalize memory
amounts.  They can turn, for example, 1024mb or 1g into a number of
bytes, and vice versa.  And it's all native bash.  Feel free to use
them for a submit filter if you'd like.

(This is not so much for David but for the original poster,
obviously!)  :-)


Michael Jennings <mej at lbl.gov>
Senior HPC Systems Engineer
High-Performance Computing Services
Lawrence Berkeley National Laboratory
Bldg 50B-3209E        W: 510-495-2687
MS 050B-3209          F: 510-486-8615

More information about the torqueusers mailing list