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.

Using Job Groups<br />

% bhist -l 105<br />

You cannot move job array elements from one job group to another, only<br />

entire job arrays. A job array can only belong to one job group at a time. You<br />

cannot modify the job group of a job attached to a service class.<br />

bhist -l shows job group modification information:<br />

Job , User , Project , Job Group , Command<br />

<br />

Wed May 14 15:24:07: Submitted from host , to Queue , CWD<br />

;<br />

Wed May 14 15:24:10: Parameters of Job are changed:<br />

Job group changes to: /risk_group/portfolio2/monthly;<br />

Wed May 14 15:24:17: Dispatched to ;<br />

Wed May 14 15:24:17: Starting (Pid 8602);<br />

...<br />

Terminating (bkill)<br />

Deleting (bgdel)<br />

Use the -g option of bkill and specify a job group path to terminate jobs in<br />

a job group. For example,<br />

% bkill -g /risk_group 106<br />

Job is being terminated<br />

Use job ID 0 (zero) to terminate all jobs in a job group:<br />

% bkill -g /risk_group 0<br />

Job is being terminated<br />

Job is being terminated<br />

Job is being terminated<br />

Job is being terminated<br />

bkill only kills jobs in the job group you specify. It does not kill jobs in lower<br />

level job groups in the path. For example, jobs are attached to job groups<br />

/risk_group and /risk_group/consolidate:<br />

% bsub -g /risk_group myjob<br />

Job is submitted to default queue .<br />

% bsub -g /risk_group/consolidate myjob2<br />

Job is submitted to default queue .<br />

The following bkill command only kills jobs in /risk_group, not the<br />

subgroup /risk_group/consolidate:<br />

% bkill -g /risk_group 0<br />

Job is being terminated<br />

% bkill -g /risk_group/consolidate 0<br />

Job is being terminated<br />

Use bgdel command to remove a job group. The job group cannot contain<br />

any jobs. For example:<br />

% bgdel /risk_group<br />

Job group /risk_group is deleted.<br />

deletes the job group /risk_group and all its subgroups.<br />

126<br />

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

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

Saved successfully!

Ooh no, something went wrong!