Giter Site home page Giter Site logo

vkhristenko / patatrack-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cms-patatrack/patatrack-scripts

0.0 0.0 0.0 100 KB

Scripts for benchmarking cmsRun-based Patatrack jobs

License: GNU General Public License v3.0

Python 91.38% Shell 8.62%

patatrack-scripts's Introduction

System architecture

The CPU architecture can be looked at with lscpu or numactl -H.

The available GPUs can be listed with nvidia-smi or lspci.

An overview can be given by

./compute_info

Generate workflows

Run

cmsenv
./workflow.sh

to generate step3.py, step4.py and profile.py.

step3.py and profile.py relie on sourceFromPixelRaw_cff.py to replace the ROOT Source with a DAQ Source, configured to read the input data in .raw format.

Measuring the I/O throughput

Copy the input data to a RAM disk:

mkdir -p /dev/shm/fwyzard/store/pixelraw/Run2018D/JetHT/RAW/v1/000/321/177/00000
cp ~/data//store/pixelraw/Run2018D/JetHT/RAW/v1/000/321/177/00000/* /dev/shm/fwyzard/store/pixelraw/Run2018D/JetHT/RAW/v1/000/321/177/00000/

Update sourceFromPixelRaw_cff.py to point to the .raw files on the RAM disk. Good parameters for achieving a high trhouput with he DAQ source, in in evironment with multiple input files of roughly ~230 MB each, are

    process.source.eventChunkBlock  = cms.untracked.uint32( 240 )
    process.source.eventChunkSize   = cms.untracked.uint32( 240 )
    process.source.maxBufferedFiles = cms.untracked.uint32( 8 )
    process.source.numBuffers       = cms.untracked.uint32( 8 )

The configuration file readFromPixelRaw.py can be used to measure the I/O throughput. With a single job:

./multiRun.py readFromPixelRaw.py
for N in `seq 4`; do CUDA_VISIBLE_DEVICES=0 numactl -N 0 cmsRun profile.py 2>&1 | ./single_throughput.py; done

Benchmark: run N jobs with T threads and S streams over N GPUs

The most efficient way to run seems to be to run N jobs, each one using a dedicated GPU. The script

./multiRun.py CONFIG

can be used to run a "warm up" job to make sure all binaries, data and conditions are cached, followed by any number of different configurations. The logs are automatically analysed to give the total throughput for each set of jobs.

patatrack-scripts's People

Contributors

fwyzard avatar vkhristenko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.