Professional Documents
Culture Documents
LSF Guide
LSF Guide
com
15-Aug-2019
0p12
bhosts - View job slot limits for hosts and host groups
bqueues - View job slot limits for queues
busers - View job slot limits for users and user groups
• Job states :
• PEND - Waiting in a queue for scheduling and dispatch
• RUN - Dispatched to a execution host and running
• DONE - Finished normally with zero exit value
• EXIT - Finished with non-zero exit value
• PSUSP - Suspended while pending
• USUSP - Suspended by user
• SSUSP - Suspended by the LSF system
4 © 2018 Nokia <Document ID: change ID in footer or remove>
Queue
• All jobs wait in queues until they are scheduled and dispatched to execution hosts.
• Queues available in the system :
Name Type Purpose
i Interactive (fg) Interactive work with GUI. Open for all users.
b Batch (bg) Background execution, regression runs. Open for all users.
i_soc Interactive (fg) Interactive work with GUI. For SoC users only.
b_soc Batch (bg) Background execution, regression runs. For SoC users only.
i_soc_rh7 Interactive (fg) Same as i_soc but with RHEL7.
• Access to all queues ending with _soc are restricted only to users who belong to
”soc_users” or ”soc_extusers” UNIX group. In LSF it doesn’t have to be the default UNIX
group (gid) like in grid.
• Queue must always be defined in bsub command!
• Submit host (server:No) is a host (login host) from where you can submit jobs to the LSF
system :
Master hosts
Execution hosts
STATIC
Submit hosts
DYNAMIC
• Restrict which hosts the job can run on with resource requirements (bsub -R). Hosts
that match the resource requirements are the candidate hosts. When LSF schedules a
job, it collects the load index values of all the candidate hosts and compares them to the
scheduling conditions. Jobs are only dispatched to a host if all load values are within the
scheduling thresholds.
oulng300
ouhwlsfm50
i_soc I bsub -Is soc_users Design debug/development work using GUIs in foreground.
soc_extusers
b_soc B bsub soc_users Regression runs in background.
soc_extusers
i_soc_rh7 I bsub -Is soc_users Same as i_soc but with RHEL7.
soc_extusers
-q i_soc Run job in i_soc queue (see previous slides for available queues).
NOTE : Always define the queue in bsub commands!
-R "rusage[mem=2000]" Peak memory need (MB) for the whole duration of the job.
-oo $PWD/bsub_o.log Send std out and std err to file. Use -o /dev/null to disable automatic email
notifications.
-eo $PWD/bsub_e.log Send std err to a different file.
-sla bigmem Submit job to specified service class (not implemented yet).
• List all jobs for all users of all queues : bjobs -u all (add switch ”-q b_soc” to select one queue)
• Make sure you don’t have other jobs running on the same execution host.
• Kill all your processes on that execution host : ”ssh $USER@<host> kill -9 -1”
• You can also selectively kill the processes related to a problem job. You can find out the process id:s with :
”ssh $USER@<host> pstree -lcpGAau $USER”
The contents of this document are proprietary and Such Feedback may be used in Nokia products and are made in relation to the accuracy, reliability or
confidential property of Nokia. This document is related specifications or other documentation. contents of this document. NOKIA SHALL NOT BE
provided subject to confidentiality obligations of the Accordingly, if the user of this document gives Nokia RESPONSIBLE IN ANY EVENT FOR ERRORS IN THIS
applicable agreement(s). Feedback on the contents of this document, Nokia DOCUMENT or for any loss of data or income or any
may freely use, disclose, reproduce, license, special, incidental, consequential, indirect or direct
This document is intended for use of Nokia’s distribute and otherwise commercialize the damages howsoever caused, that might arise from
customers and collaborators only for the purpose feedback in any Nokia product, technology, service, the use of this document or any contents of this
for which this document is submitted by Nokia. No specification or other documentation. document.
part of this document may be reproduced or made
available to the public or to any third party in any Nokia operates a policy of ongoing development. This document and the product(s) it describes
form or means without the prior written permission Nokia reserves the right to make changes and are protected by copyright according to the
of Nokia. This document is to be used by properly improvements to any of the products and/or applicable laws.
trained professional personnel. Any use of the services described in this document or withdraw this
contents in this document is limited strictly to the document at any time without prior notice. Nokia is a registered trademark of Nokia
use(s) specifically created in the applicable Corporation. Other product and company names
agreement(s) under which the document is The contents of this document are provided "as is". mentioned herein may be trademarks or trade
submitted. The user of this document may Except as required by applicable law, no warranties names of their respective owners.
voluntarily provide suggestions, comments or other of any kind, either express or implied, including, but
feedback to Nokia in respect of the contents of this not limited to, the implied warranties of
document ("Feedback"). merchantability and fitness for a particular purpose,