Download HPC User Guide

Transcript
30
0 Open:Active
SCHEDULING PARAMETERS
r15s
r1m r15m
ut
pg
loadSched
loadStop
SCHEDULING POLICIES: BACKFILL EXCLUSIVE
USERS: all
HOSTS: cf_htc_bx900/
RERUNNABLE : yes
-
0
0
io
ls
it
ONLY_INTERACTIVE
0
tmp
-
0
swp
-
0
0
mem
-
Submit an interactive job by using a pseudo-terminal
8.5.3 bsub -Is
1. To submit a batch interactive job and create a pseudo-terminal with shell mode support,
use the bsub -Is option. For example:
$ bsub -Is csh
Queue does not accept interactive jobs. Job not submitted.
A reminder – note that the default queue does not support interactive work, so as noted
above, please use q_cf_htc_interactive
$ bsub -Is -q q_cf_htc_interactive csh
Job <203673> is submitted to queue <q_cf_htc_interactive>.
<<Waiting for dispatch ...>>
<<Starting on htc057>>
[username@htc057 examples]$ exit
exit
This will submit a batch interactive job that starts up csh as an interactive shell.
When you specify the -Is option, bsub submits a batch interactive job and creates a
pseudo-terminal with shell mode support when the job starts. This option should be specified
for submitting interactive shells, or applications which redefine the CTRL-C and CTRL-Z
keys (for example, jove).
2. The following example shows how to run the DLPOLY_4 application in interactive mode.
First, we show below the corresponding LSF script, then present the sequence of
interactive steps that replicate the batch job.
#!/bin/bash --login
#BSUB -n 32
#BSUB -x
#BSUB -o DLPOLY4.test2.HTC.o.%J
#BSUB -J DLPOLY4
#BSUB -R "span[ptile=8]"
#BSUB -W 1:00
HPC Wales User Guide V 2.2
66