Added LSF environment variables to login scripts

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Thu Mar 07 2002 - 13:22:42 EST

  • Next message: Christian Holm Christensen: "BRAT 2.2.22 on AFS (new tree)"

    Hi all 
    
    I've set the nessecary LSF environment variable in the login scripts: 
    
      /brahms/u/brahmlib/etc/brahms.login 
      /brahms/u/brahmlib/etc/brahms.profile 
    
    I highly recommend that you source the appropiate script in your
    ~/.login or ~/.profile on RCF.  
    
    CSH, TCSH or similar 
    
      # Uncomment if you want to use the `new' software tree 
      # setenv BRAHMS_NEW 1
      if ( -f /brahms/u/brahmlib/etc/brahms.login ) \ 
        source brahms/u/brahmlib/etc/brahms.login 
    
    SH, BASH, or similar 
    
      # Uncomment if you want to use the `new' software tree 
      # export BRAHMS_NEW=1
      if test -f /brahms/u/brahmlib/etc/brahms.login ; then 
        . brahms/u/brahmlib/etc/brahms.profile
      fi 
    
    About LSF:  LSF is a system that allows you to submit batch jobs to
    the CAS Linux farm.  For example, you can have a shell script like 
    
    
      prompt% cat myanalysis.sh 
      #!/bin/sh 
      #BSUB -J myanalysis
      run=$1
      bratmain MyAnalysis.C -r $run \
    	     -i ~/data/rdo/run00$run.root 
    	     -o ~/data/analysis/run00$run.root 
    	     -H ~/data/analysis/hist00$run.root 
    	     -v 5 
    
    which you can use to submit batch jobs to the farm, like 
    
      prompt% bsub -q brahms_cas myanalysis.sh <runno>
    
    Your analysis job will then be executed on some machine in the CAS
    cluster, and an email will be sent to you on complesion.  See also
    man(1) pages 
    
      bsub(1), bqueues(1), bjobs(1), bkill(1), and bhosts(1) 
    
    as well as the documentation on the web [1].  There's a `Quickstart'
    guide too [2], and an overview page [3]. 
    
    The advantage of using LSF, is that you don't have to care for which
    machines has a high load - that is done for you by the load balancing
    software of LSF.  You could in principle sink data files from HPSS
    onto local disk, and then process these as you see fit. 
    
    [1] http://www.rhic.bnl.gov/RCF/UserInfo/Software/LSF/Documentation.shtml
    [2] http://www.rhic.bnl.gov/RCF/UserInfo/Software/LSF/QuickStart.shtml
    [3] http://www.rhic.bnl.gov/RCF/UserInfo/Software/LSF/
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Thu Mar 07 2002 - 13:23:21 EST