Hello,
> I think you read:
> http://grid.pd.infn.it/cream/field.php?n=Main.ForwardOfRequirementsToTheBatchSystem
Yep, that's where I got the information from. Thanks for the nice
documentation by the way! Makes life a lot easier.
> If in JDL sent to CREAM there is:
>
> CERequirements = other.GlueHostMainMemoryRAMSize > 512;
>
> In lsf_local_submit_attributes.sh the variable
> GlueHostMainMemoryRAMSize_Min (not other.lsf_local_submit_attributes.sh)
> will be set to '512' (not 512).
Thanks, it's little bits like this that I needed clarity on. Did you
mean "(not other.GlueHostMainMemoryRAMSize_Min)" rather then "(not
other.lsf_local_submit_attributes.sh)".
> For jobs submitted through the WMS, CERequirements will be set to:
>
> other.GlueHostMainMemoryRAMSize > 512;
So i need to account for both JDL and WMS CERequirement variables in my
lsf_local_submit_attributes.sh (the difference being an other? Would
this again be set to '512' rather then 512?
Thanks again,
Matt
> if:
>
> - in the JDL requirements attribute there is
> "other.GlueHostMainMemoryRAMSize > 512"
> - if GlueHostMainMemoryRAMSize is listed among the CeForwardParameters
> attribute in the WMS conf file
>
> As far as I understand GlueHostMainMemoryRAMSize is in MB
>
> Cheers, Massimo
>
>
> On Wed, 8 Dec 2010, Matt Doidge wrote:
>
>> Hello everybody (again),
>> Our (shared) lsf cluster has been set to kill jobs that go over 0.5MB
>> of memory usage IF the submitter didn't specify a memory requirement.
>> Now I know not all grid users don't submit a memory requirement in
>> their jdls, so in order for them to not go over this limit and have
>> their jobs killed I need set things up so that jobs are effectively
>> submitted with a "bsub -M 2097152" if they don't specify a value.
>>
>> Looking at the cream documentation the best way seems to be to create
>> the script lsf_local_submit_attributes.sh to include this memory
>> limit. Here's my attempt at implementing this:
>>
>> cat lsf_local_submit_attributes.sh
>> #!/bin/sh
>> if [ $other.GlueHostMainMemoryRAMSize_Min -gt 512 ];
>> then
>> MEMLIMIT=$((1024 * $other.GlueHostMainMemoryRAMSize_Min));
>> echo "#BSUB -M $MEMLIMIT";
>> else
>> echo "#BSUB -M 2097152";
>> fi
>>
>> The multiply by 1024 is to convert from MB to KB (IIRC the CE
>> requirements are in MB). Am I on the right path with this, and using
>> the correct CE Requirement? Or is there a better (or correcter) way?
>>
>> Thanks in advance,
>> Matt
>>
>
> \|||/
> -----------0oo----( o o )----oo0-------------------
> (_)
> INFN Sezione di Padova
> Via Marzolo, 8
> 35131 Padova - Italy E-mail: massimo.sgaravatto [at] pd.infn.it
> Tel: ++39 0498275908 Skype: massimo.sgaravatto
> Fax: ++39 0498275952
|