Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HLT Ops 2013-03-22

HLT Ops 2013-03-22

Avatar for Sasha Mazurov

Sasha Mazurov

March 23, 2013
Tweet

More Decks by Sasha Mazurov

Other Decks in Programming

Transcript

  1. Intel Profiler Auditor v2 (not yet released) CPU profiling with

    Intel® VTune™ Amplifier XE 2013 Alexander Mazurov Ferrara University, CERN
  2. 4 Instrumenting the code - Statically: * Change code manually

    / automatically * Compiler assisted (gcc -pg) - Dynamically (at runtime): * Change code in runtime - Valgrind - Google Performance Tools - Intel VTune Amplifier
  3. 6 VTune™ Features Runtime instrumenting profiler - User-mode sampling -

    Hardware-based sampling - Concurrency and locks and waits analysis - Threading timeline - Attach to a running process - Source view
  4. 7 1) Interupts a process 2) Collect samples of all

    active instruction addresses 3) Restore a call sequence upon each sample. How user-mode sampling works?
  5. 14 User-mode sampling is a statistical method and does not

    provide a 100% accurate results. Accuracy depends on: - Duration of the collection - Speed of processor - Amount of software activity - Sampling interval * recommended value is 10 ms * profiling is only 5% slower Sampling Accuracy
  6. 19 Run: $> intelprofiler2 job.py $> intelprofiler2 --start=1000 --stop=2000 job.py

    Analyze (GUI): $> amplxe-gui ./profile001hs Analyze (CLI): $> amplxe-cl -reports hotspots -r /collecter/data/r001hs
  7. 20 Memory allocation functions operatornew from libstdc++ library: tc_new from

    tcmalloc library: tc_new uses twice less time then operatornew
  8. 21 How to use a dev version (lxplus) $> export

    CMTCONFIG=$CMTDEB $> SetupProject Moore v14r11 –build-env # you can use any Moore version Moore v14r11 $> git clone [email protected]:mazurov/GaudiProfiling.git Moore v14r11 $> make Moore v14r11 $> SetupProject Moore v14r11 $> source /afs/cern.ch/sw/IntelSoftware/linux/all-setup.sh $> intelprofiler2 /path/to/yourjob $> amplxe-gui ./profile001hs
  9. 23 • Don't reinvent the wheel – use the existing

    tools. • Need your feedback --- the new version will be released soon. Conclusions