Hi Matt
I think you read:
http://grid.pd.infn.it/cream/field.php?n=Main.ForwardOfRequirementsToTheBatchSystem
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).
For jobs submitted through the WMS, CERequirements will be set to:
other.GlueHostMainMemoryRAMSize > 512;
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
|