- 1-CPU-normal : for non-parallel jobs - 2-CPUs : for parallel jobs that use 2 processors - 4-CPUs : for parallel jobs that use 4 processors - 8-CPUs : for parallel jobs that use 8 processors - 4-CPUs-slow : For very long jobs, running on 4 processors. - short : for short (max. 20 Min CPU time) non-parallel jobs
Here is such a very simple script that will just print a message: (the "sleep 10" is just put there so that you have a chance to see the job while it passes through the queue)
A real script would have of course changed to an appropriate directory, runned
one or several programs and eventually post-processed your data and sent
a pretty plot to the printer.
% bsub sleep 100
Submit the UNIX command sleep together with its argu-
ment 100 as a batch job.
% bsub -q short -o my_output_file "pwd; ls"
Submit the UNIX command pwd and ls as a batch job to
the queue named short and store the job output in
my_output file.
..
% bsub my_script
Submit my_script as a batch job. Since my_script is
specified as a command line argument, the my_script
file is not spooled. Later changes to the my_script
file before the job completes may affect this job.
% bsub < default_shell_script
where default_shell_script contains:
sim1.exe
sim2.exe
The file default_shell_script is spooled, and the com-
mands will be run under the Bourne shell since a shell
specification is not given in the first line of the
script.
% bsub < csh_script
where csh_script contains:
#! /bin/csh
sim1.exe
sim2.exe
csh_script is spooled and the commands will be run
under /bin/csh.
Use the -N option to request mail, and/or the -o and -e
options to specify an output file and error file, respec-
tively.
Example for bqueues :
priamos:ballisti:[fortran]:61 % bqueues
QUEUE_NAME PRIO STATUS MAX JL/U JL/P JL/H NJOBS PEND RUN SUSP
short 35 Open:Active - 4 3 12 0 0 0 0
4-CPUs 30 Open:Active - 2 - 2 0 0 0 0
8-CPUs 26 Open:Active - 1 - 2 0 0 0 0
2-CPUs 25 Open:Active 6 4 1 5 0 0 0 0
4-CPUs-slow 20 Open:Active 3 2 2 2 0 0 0 0
1-CPU-normal 5 Open:Active 8 8 1 10 12 4 8 0
priamos:ballisti:[fortran]:62 %
Important for you here is mostly:
1-CPU-normal 5 Open:Active 8 8 1 10 12 4 8 0
^^ ^^ ^^
NJOBS is the number of submitted jobs
PEND is the number of waiting jobs in queue while RUN jobs are being executed.
SUSP is the number of jobs which have been stopped for some reason (mostly because
there is a high rate of paging). Those jobs will be started automatically when
the reason for the stopping goes away.
Last update: 12th July 2000 by Ray