なんか重い処理を用意する

bsub (JOB投入)

$ su lsfadmin
$ bsub -e /tmp/err.txt -o /tmp/std.txt /usr/local/bin/bmt 
Job <103> is submitted to default queue <normal>.

bjobs (生きているJOBの一覧)

$ bsub /usr/local/bin/bmt
Job <104> is submitted to default queue <normal>.

$ bjobs
JOBID   USER    STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
104     lsfadmi RUN   normal     lsf1        lsf1        *l/bin/bmt Dec  3 08:13

bkill (JOBの停止)

$ bsub /usr/local/bin/bmt
Job <105> is submitted to default queue <normal>.
$ bkill 105
Job <105> is being terminated

bhist (JOBの実行履歴)

$ bhist 105
Summary of time in seconds spent in various states:
JOBID   USER    JOB_NAME  PEND    PSUSP   RUN     USUSP   SSUSP   UNKWN   TOTAL
105     lsfadmi *bin/bmt  1       0       12      0       0       0       13   

bpeek (実行中コマンドの標準出力を見る)

$ bsub /usr/local/bin/bmt 
Job <106> is submitted to default queue <normal>.
$ bpeek 106
<< output from stdout >>

管理コマンド (lsid, lshosts, lsload, bhosts)

queue の設定

/usr/share/lsf/conf/lsbatch/cluster1/configdir/lsb.queues

...
Begin Queue
QUEUE_NAME   = normal
PRIORITY     = 30
INTERACTIVE  = NO
FAIRSHARE    = USER_SHARES[[default,1]]
#RUN_WINDOW   = 5:19:00-1:8:30 20:00-8:30
#r1m         = 0.7/2.0        # loadSched/loadStop
#r15m         = 1.0/2.5
#pg           = 4.0/8
#ut           = 0.2
#io           = 50/240
#CPULIMIT     = 180/hostA      # 3 hours of host hostA
#FILELIMIT    = 20000
#DATALIMIT    = 20000          # jobs data segment limit
#CORELIMIT    = 20000
#TASKLIMIT    = 5              # job task limit
#USERS        = all            # users who can submit jobs to this queue
#HOSTS        = all            # hosts on which jobs in this queue can run
#PRE_EXEC     = /usr/local/lsf/misc/testq_pre >> /tmp/pre.out
#POST_EXEC    = /usr/local/lsf/misc/testq_post |grep -v "Hey"
#REQUEUE_EXIT_VALUES = 55 34 78
#APS_PRIORITY = WEIGHT[[RSRC, 10.0] [MEM, 20.0] [PROC, 2.5] [QPRIORITY, 2.0]] \
#    LIMIT[[RSRC, 3.5] [QPRIORITY, 5.5]] \
#    GRACE_PERIOD[[QPRIORITY, 200s] [MEM, 10m] [PROC, 2h]]
DESCRIPTION  = For normal low priority jobs, running only if hosts are \
lightly loaded.
End Queue
...

まぁ、そういうことですたい


LSF


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2017-12-03 (日) 22:49:38 (12d)
ISBN10
ISBN13
9784061426061