25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Supported Resource Usage Limits and Syntax<br />

Core file size limit<br />

CPU time limit<br />

Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Units<br />

-C core_limit CORELIMIT=limit integer KB<br />

Chapter 26<br />

Runtime Resource Usage Limits<br />

Sets a per-process (soft) core file size limit in KB for each process that belongs<br />

to this batch job. On some systems, no core file is produced if the image for<br />

the process is larger than the core limit. On other systems only the first<br />

core_limit KB of the image are dumped. The default is no soft limit.<br />

Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Units<br />

-c cpu_limit CPULIMIT=[default]<br />

maximum<br />

[hours:]minutes[/host_name<br />

| /host_model]<br />

Sets the soft CPU time limit to cpu_limit for this batch job. The default is no<br />

limit. This option is useful for avoiding runaway jobs that use up too many<br />

resources. <strong>LSF</strong> keeps track of the CPU time used by all processes of the job.<br />

When the job accumulates the specified amount of CPU time, a SIGXCPU<br />

signal is sent to all processes belonging to the job. If the job has no signal<br />

handler for SIGXCPU, the job is killed immediately. If the SIGXCPU signal is<br />

handled, blocked, or ignored by the application, then after the grace period<br />

expires, <strong>LSF</strong> sends SIGINT, SIGTERM, and SIGKILL to the job to kill it.<br />

You can define whether the CPU limit is a per-process limit enforced by the<br />

OS or a per-job limit enforced by <strong>LSF</strong> with LSB_JOB_CPULIMIT in lsf.conf.<br />

Jobs submitted to a chunk job queue are not chunked if the CPU limit is greater<br />

than 30 minutes.<br />

Format<br />

Normalized CPU<br />

time<br />

cpu_limit is in the form [hour:]minute, where minute can be greater than<br />

59. 3.5 hours can either be specified as 3:30 or 210.<br />

The CPU time limit is normalized according to the CPU factor of the<br />

submission host and execution host. The CPU limit is scaled so that the job<br />

does approximately the same amount of processing for a given CPU limit, even<br />

if it is sent to a host with a faster or slower CPU.<br />

For example, if a job is submitted from a host with a CPU factor of 2 and<br />

executed on a host with a CPU factor of 3, the CPU time limit is multiplied by<br />

2/3 because the execution host can do the same amount of work as the<br />

submission host in 2/3 of the time.<br />

If the optional host name or host model is not given, the CPU limit is scaled<br />

based on the DEFAULT_HOST_SPEC specified in the lsb.params file. (If<br />

DEFAULT_HOST_SPEC is not defined, the fastest batch host in the cluster is<br />

used as the default.) If host or host model is given, its CPU scaling factor is<br />

used to adjust the actual CPU time limit at the execution host.<br />

The following example specifies that myjob can run for 10 minutes on a<br />

DEC3000 host, or the corresponding time on any other host:<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 351

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!