[GE users] Consumable variable : one license per job

Dmitry Zhukovski DZH at maerskoil.com
Wed Jul 11 12:29:45 BST 2007


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Thank you Mark !

Yes - more or less I did the same trick but was not sure I am right. 

Can you tell me RFE number to trace it?

Br,
dmitry

-----Original Message-----
From: Olesen, Mark [mailto:Mark.Olesen at emcontechnologies.com] 
Sent: 11. juli 2007 13:02
To: 'users at gridengine.sunsource.net'
Subject: RE: [GE users] Consumable variable : one license per job

>  The application requires to be limited on two consumable
variables(licenses) : one parallel license(LIS1)
> per node and one license(LIS2) per job.

>  So if I fire a job with 10 parallel streams it should use 10 LIS1s and
one LIS2.

>  I tried to run qsub like this
>    qsub -N TEST -q all.q -pe mpich 10 -l LIS2=1,LIS1=10 /home/some.job
/home/TEST

You need to specify the resource per slot.

You need '-pe mpich 10 -l LIS2=0.10,LIS1=1'

Be careful with rounding!!!!

Eg, if you requested '-pe mpich 6 -l LIS2=0.1667' the total requirement is 6
* 0.1667 => 1.0002, and the job will not run if LIC2=1 is available.

There is an RFE for this issue, but I don't think it has been resolved.
For now, you'll have to take care of calculating the resource requirements
within a wrapper script.

Truncating after 6 digits seems to works well enough.
Here's a Perl snippet:

#
# resource per cpu - in-place truncation to 6 decimal places
#
sub rc_per_cpu {
    my $nslot = shift or return;
    for (@_) {
        /^[.\d]+$/ or next;    # only modify numerical
        $_ = sprintf "%.7f", $_ / $nslot;
        chop;
        s{\.?0*$}{};           # drop trailing zeroes
    }
}


/mark
This e-mail message and any attachments may contain legally privileged, confidential or proprietary Information, or information otherwise protected by law of EMCON Technologies, its affiliates, or third parties. This notice serves as marking of its "Confidential" status as defined in any confidentiality agreements concerning the sender and recipient. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net


**********************************************************************
This e-mail and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to which they 
are addressed. If you have received this e-mail in error please notify 
the system manager at helpdesk at maerskoil.com.

This e-mail and its contents do not constitute and shall not be 
considered as a financial commitment of Maersk Olie og Gas AS 
and its affiliates. 
Maersk Olie og Gas AS expressly disclaims any responsibility
as to the accuracy and use of this e-mail and its contents.
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list