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
|