Hp XC System 2.x Software Manuel d'utilisateur Page 133

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 154
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 132
Step 4. Running an X terminal Session Using LSF
This section shows how to create an X terminal session on a remote node using LSF. In this
example, suppose that you want to u se LSF to reserve 4 processors (2 nodes) and start an X
terminal session on one of them.
First, check the available nodes on the HP XC system . For ex ample:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 2 idle n[46,48]
According to the information returned about this HP XC system, LSF has two nodes available
for use, n46 and n48.
Determine the ad dress of your monitor’s display server, as sho wn at the beginn ing o f
Section 10.2. You can start an X terminal session using t his address information in a bsub
command with the appropriate options. For example:
$ bsub
-n4 -Ip srun -n1 xterm -display 14.26.206.134:0.0
Job <1
59> is submitted to default queue <normal>.
<<Wai
ting for dispatch ...>>
<<Sta
rting on lsfhost.localdomain>>
The options used in this command are:
-n4
allocate 4 processors
-Ip
interact with the X t e rminal session
srun -n1
run the job on 1 processor
xterm
the j ob is an X terminal session
-display <address>
monitors display server address
A remote X terminal session appears on your m onitor. The X terminal session job is launched
from node n47, which is the LSF execution host n ode. You can view this job using LSF and
SLURM commands. For example:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 2 alloc n[46,48]
$ squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST
117 lsf hptclsf@ username R 0:25 2 n[46,48]
$ bjobs
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
119 lsfadmi RUN norma n48 4*n47 *8.136:0.0 date and time
You can now run some jo bs from the X termin al session that you started and make use of the
full allocation within the LSF node allocation. For example:
$ srun -n4 hostname
n46
n48
n46
n48
$ srun -n2 hostname
n46
n48
Exiting from the X terminal session ends t he LSF job.
Advanced To pics 10-3
Vue de la page 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 153 154

Commentaires sur ces manuels

Pas de commentaire