[torqueusers] qsub wrapper examples for filtering on memory request

David Chin chindw at wfu.edu
Thu Apr 18 22:06:48 MDT 2013

Hi, Andrew:

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

I have some other Torque-related stuff that needed to parse these memory
strings, and resorted to Python (my language of choice). Attached is a qsub
filter that should do what you want.

Disclaimer: I've only done very minor testing.


David Chin, Ph.D.
chindw at wfu.edu                  High Performance Computing Systems Analyst
Office: +1.336.758.2964         Wake Forest University
Mobile: +1.336.608.0793         Winston-Salem, NC
Email-to-txt: 3366080793 at mms.att.net           Google Talk: chindw at wfu.edu
Web: http://users.wfu.edu/chindw/  http://linuxfollies.blogspot.com/

On Mon, Feb 25, 2013 at 3:49 PM, Andrew Ring <apring at umn.edu> wrote:

> tl;dr - Requesting qsub wrapper examples to reject jobs that ask for too
> much RAM or alt method.
> Hello,
> I wish to immediately reject jobs that ask for too much RAM.  I would
> like to make my filter as simple and comprehensive as possible.  I have
> found two example qsub filters online, but neither deals directly with
> filtering on RAM usage.  Would anyone be willing to share one?
> Is there a job parser that replicates the parsing done by torque already
> or otherwise makes that output available?  For instance the output from
> checkjob presents the information in a usable format.
> Has the issue of the queue limit on mem been resolved?  By which I mean
> is this statement no longer valid on a newer version?:
> mem     size    Amount of physical memory used by the job. (Ignored on
> Darwin,
> Digital Unix, Free BSD, HPUX 11, IRIX, NetBSD, and SunOS. Also ignored
> on Linux if number of nodes is not 1. Not implemented on AIX and HPUX 10.)
> source: http://docs.adaptivecomputing.com/torque/3-0-5/4.1queueconfig.php
> Thank you,
> Andrew
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20130419/a4685e78/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memlimsubmit.py
Type: application/octet-stream
Size: 7435 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20130419/a4685e78/attachment-0001.obj 

More information about the torqueusers mailing list