How darshan-hpc/darshan works
Darshan transparently instruments HPC application I/O, records measurements in logs, and provides utilities for inspecting and analyzing those logs. The principal workflow runs from an application through runtime instrumentation and log creation to command-line or Python analysis and reports. Runtime modules cover POSIX and MPI-IO, with additional tracing, heatmap, and hardware-counter capabilities. The README documents the runtime-to-utility handoff; several internal relationships are shown only where excerpts or the source index support them, so uncertain links are omitted.
Main entry points: darshan-core.c Runtime core · darshan-logutils.c Log access · darshan-parser.c Text parser · summary.py Summary CLI
Components 17
Runtime capture
- Runtime core
darshan-runtime/lib/darshan-core.c - Runtime interfaces
darshan-runtime/lib/darshan.h
Instrumentation modules
- POSIX I/O
darshan-runtime/lib/darshan-posix.c - MPI-IO
darshan-runtime/lib/darshan-mpiio.c - MPI profiling
autoperf/apmpi/lib/darshan-apmpi.c - System counters
autoperf/apss/lib/darshan-apss.c - Tracing and heatmaps
darshan-runtime/lib
Log utilities
- Log format
include/darshan-log-format.h - Log access
darshan-util/darshan-logutils.c - Text parser
darshan-util/darshan-parser.c
Python analysis
- Python backend
darshan-util/pydarshan/darshan/backend/cffi_backend.py - Darshan report
darshan-util/pydarshan/darshan/report.py - Summary CLI
darshan-util/pydarshan/darshan/cli/summary.py - Analysis plots
darshan-util/pydarshan/darshan/experimental/plots
Other components
- HPC application
- Darshan log
- Analyst
Connections 18
- HPC application → Runtime core: runs under
- Runtime core → Runtime interfaces: uses interfaces
darshan-runtime/lib/darshan.h - Runtime core → POSIX I/O: dispatches modules
- Runtime core → MPI-IO: dispatches modules
- Runtime core → MPI profiling: dispatches modules
- Runtime core → System counters: dispatches modules
- MPI-IO → Tracing and heatmaps: records tracing
darshan-runtime/lib/darshan-mpiio.c - Runtime core → Darshan log: writes measurements
- Darshan log → Log access: opens for analysis
- Log access → Log format: uses format
- Text parser → Log access: reads log data
darshan-util/darshan-parser.c - Darshan log → Text parser: is parsed by
- Darshan log → Python backend: opens log
darshan-util/pydarshan/darshan/backend/cffi_backend.py - Python backend → Darshan report: provides records
darshan-util/pydarshan/darshan/report.py - Darshan report → Summary CLI: feeds summary
darshan-util/pydarshan/darshan/cli/summary.py - Summary CLI → Analysis plots: uses plotting
darshan-util/pydarshan/darshan/cli/summary.py - Analyst → Text parser: inspects logs
- Analyst → Summary CLI: generates reports