next_group up previous


How to run jobs on the D0 production farm

today-Version 1.0


Contents

1. Making the Executable

  1. Log onto one of the build machines (d0lxbld1-3)
  2. Go to the scratch area
    
    cd /scratch/7/yourname
    

  3. setup the version you wish to run
    
            setup D0RunII <version>
            newrel -t <version> <version>
    
  4. go into the <version> directory you just made
  5. check out the latest version of the d0reco scripts from that branch
    addpkg d0reco <branch> // for production
    addpkg -h d0reco // for test
    
  6. type d0setwa to set your working area
  7. type
    
    cd d0reco/scripts
    buildfarmreco
    wait a while ....
    
    The default is maxopt from the build

    In special cases where you have need to run the debug version or use modified scripts (runboth...) you may wish to do the following but this is generally only for testing. Such code should not be used for production.

     buildfarmreco [maxopt/debug] [/LOCAL]
    

    The LOCAL uses the latest version of the run scripts you just checked out. If they are stable, you can omit the LOCAL and the scripts will come from the release <version>.

  8. buildfarmreco will make 2 things:
  9. If you need to test the release
    1. go into the <version> directory
    2. Do the following
      
      unsetup D0RunII
      setup TestData
      runboth $recotestdatap07 10
      
      This should process 10 events through reco and reco_analyze.

1.1 Sam interface

You will need sam to know about your code

  1. check the applications to se in the DB yet.
  2. If you have db access follow the instructions at:

    http://d0db-prd.fnal.gov/sam_admin/updatedb.html

  3. If not, send an email to sam-admin@fnal.govequesting:

    
    family/name/version
    
    reconstruction d0reco <version>
    analysis reco_analyze <version>
    
    be put into the prd and int databases.
    

1.2 Appendix - what buildfarmreco does

You can find the buildfarmreco source at: d0reco/scripts/buildfarmreco

What it does:

  1. Gets the executables from the release
  2. Copies the rcp databases from the release
  3. Gets the files in package rundata/d0reco
  4. Gets some files like ptable and hmatrix which are accessed via environmentals
  5. Gets the run scripts from d0reco/scripts
  6. Puts them all into a subdirectory called <$1>- <version>
  7. Tars it all up into <version>.tar.

1.3 What the run scripts do

runboth has 2 arguments, input data file and number of events. You can find runboth at: d0reco/scripts/runboth It can run D0 code standalone.

  1. Hacks environmentals for RCP access
  2. Hacks environmentals for hmatrix
  3. Parses the input file name and chooses the correct rcp file to run
  4. Runs D0reco and reco_analyze, returns error code which depends on which failed.

2. Running Jobs

3. Checking it out

You need to look at the farm_debug documentation to see how jobs are running.

About this document ...

How to run jobs on the D0 production farm

This document was generated using the LaTeX2HTML translator Version 99.1 release (March 30, 1999)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -split 0 -show_section_numbers farminstructions.tex

The translation was initiated by Heidi Schellman on 2001-06-06


next_group up previous
Heidi Schellman
2001-06-06