[GE users] automatic custom complex resource request

ddavies ddavies at plxtech.com
Wed Mar 11 00:10:02 GMT 2009


Hi Reuti,

>If it's not possible, it's an issue.  

I don't think it's possible to add a custom complex variable to a command through JSV in 6_2u2.

In fact there seem to be a few issues with JSV from these observations.
1) q_hard/q_soft as specified at http://72.5.124.69/display/gridengine62u2/Submit+Parameters do not work. Below is the output to /tmp/jsv.log from the command "qsub -q single -b y sleep 10"

>>> START
<<< SEND ENV
<<< STARTED
>>> PARAM VERSION 1.0
>>> PARAM CONTEXT server
>>> PARAM CLIENT qmaster
>>> PARAM USER davidd
>>> PARAM GROUP eng
>>> PARAM JOB_ID 673
>>> PARAM CMDNAME sleep
>>> PARAM CMDARGS 1
>>> PARAM CMDARG0 10
>>> PARAM A sge
>>> PARAM b y
>>> PARAM cwd /apps/ENGPOOL/davidd/grid_with_siriusdma/PEX/verif/niva/siriusdma/vcore/log
>>> PARAM j y
>>> PARAM M davidd at kauai.plxtech.com
>>> PARAM N sleep
>>> PARAM l_hard single
>>> BEGIN
<<< PARAM pe_name urgent
<<< PARAM pe_min 4
<<< PARAM pe_max 4
<<< LOG INFO DD Debug: -pe_name urgent 4 was added
<<< RESULT STATE CORRECT Job was modified before it was accepted



Notice that "-q single" ended up as "l_hard" instead of "q_hard".

The three lines following "BEGIN" came from this portion of my jsv.pl that does manage to find the "-q single" (not through q_hard) and apply the "-pe" params I wanted:

--- snippet ---
   if (exists $params{l_hard}) {
       my %tmp = %{$params{l_hard}};
       my @tmp_keys = keys %tmp;
       foreach my $tmp_key (@tmp_keys) {
	   if($tmp_key =~ /single/|/gatesim/) {
	       #print DEBUG_FILE "Single queue is used\n";
               jsv_sub_add_param('pe_name','urgent');
               jsv_set_param('pe_min',4);
               jsv_set_param('pe_max',4);
               jsv_log_info('DD Debug: -pe_name urgent 4 was added');
               $do_correct = 1;
	   }
------ End snippet -------


But, I can't add "-l vl=1" as I can with the "pe" params. I get the following error from adding this to my jsv.pl:

----- Begin snippet ----
if($tmp_key =~ /single/|/gatesim/) {
   jsv_sub_add_param('l_hard','vcs_lic',1);
   jsv_log_info('DD Debug: Tried to add vl=1');
   $do_correct = 1;
}
---- End snippet ------


Error from qsub is:
Unable to run job: unknown resource "single".
Exiting.


The /tmp/jsv.log shows why:

--- Begin snippet from jsv.log ----
>>> BEGIN
<<< PARAM pe_name urgent
<<< PARAM pe_min 4
<<< PARAM pe_max 4
<<< LOG INFO DD Debug: -pe_name urgent 4 was added
<<< PARAM l_hard single,vcs_lic=1
<<< LOG INFO DD Debug: Tried to add vl=1
<<< RESULT STATE CORRECT Job was modified before it was accepted

----- End snippet -------

Look at how it combined "single,vcs_lic=1" into "l_hard".

Doesn't it appear there is a problem with JSV?

Regards,
Dave Davies

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=127036

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list