Repository navigation
Conversation
dpl-tune runs a workflow dumped with --dump-workflow on a few input files with --resources-monitoring, reads performanceMetrics.json and proposes --aod-memory-rate-limit, --pipeline, --readers, --timeframes-rate-limit and --shm-segment-size within a memory budget, explaining each change with the metric behind it. The tuned configuration is then run on the same inputs and backed off if it fails or is not faster. It can also tune from an existing performanceMetrics.json, e.g. from a Grid job, without running anything. Since performanceMetrics.json has no memory on macOS, the memory of every process is sampled while the workflow runs (phys_footprint on macOS, PSS from /proc on Linux). On two analysis reproducers it raised --aod-memory-rate-limit from 200 MB to about 1.1 GB and made the runs 1.6x faster on the probe inputs and 1.9x on a larger set of inputs it had not seen, within a 16 GiB budget. It changed nothing on a reconstruction workflow bound by its start-up. --readers > 1 together with --aod-memory-rate-limit deadlocks in the current O2, so a failed verification backs off the extra readers first; this guard can be switched off with --no-readers-guard. The script uses the Python standard library only. Like the other scripts in Framework/Core/scripts it is installed with pip, which provides a dpl-tune command.
Member
Author
|
@shahor02 as discussed. I am improving the infrastructure to report also backpressure and shared memory to optimise things also based on that. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dpl-tune runs a workflow dumped with --dump-workflow on a few input files
with --resources-monitoring, reads performanceMetrics.json and proposes
--aod-memory-rate-limit, --pipeline, --readers, --timeframes-rate-limit and
--shm-segment-size within a memory budget, explaining each change with the
metric behind it. The tuned configuration is then run on the same inputs and
backed off if it fails or is not faster. It can also tune from an existing
performanceMetrics.json, e.g. from a Grid job, without running anything.
Since performanceMetrics.json has no memory on macOS, the memory of every
process is sampled while the workflow runs (phys_footprint on macOS, PSS from
/proc on Linux).
On two analysis reproducers it raised --aod-memory-rate-limit from 200 MB to
about 1.1 GB and made the runs 1.6x faster on the probe inputs and 1.9x on a
larger set of inputs it had not seen, within a 16 GiB budget. It changed
nothing on a reconstruction workflow bound by its start-up.
--readers > 1 together with --aod-memory-rate-limit deadlocks in the current
O2, so a failed verification backs off the extra readers first; this guard can
be switched off with --no-readers-guard.
The script uses the Python standard library only. Like the other scripts in
Framework/Core/scripts it is installed with pip, which provides a dpl-tune
command.