Repository navigation
Conversation
On an alien:// input the AOD reader started ROOT's interpreter even with the native backend. TGrid::Connect goes through the plugin manager, which runs P010_TJAlien.C, and the replica lookup gets its results as a TMap of TObjString: hashing a TPair calls TPair::Class() and initialises cling. That costs about 0.27 s and 57 MB per reader process. - connectToGrid() creates the TJAlien instance directly instead of TGrid::Connect, and sets gErrorIgnoreLevel to kPrint if it is unset so that ROOT's error handler does not read it from the environment through gROOT. It replaces the four TGrid::Connect calls. - gridReplicas() uses TJAlien::CommandRaw, which returns the results as plain strings, when JAliEn-ROOT provides it (TJALIEN_HAS_COMMAND_RAW). Otherwise it uses gGrid->Command as before. - gridReplicas() splits the LFN by hand instead of with a TUrl. A TUrl reads Url.Special from gEnv, which goes through gROOT and starts the interpreter once TROOT exists (seen with gdb in a grid run on Linux). The path is the same as TUrl::GetFile for LFNs. - The replicas the reader gets are logged at debug level. Measured with a reader-only workflow on an alien:// AO2D: the reader no longer loads libCling or any .pcm, and its footprint goes from 126-131 MB to 44-75 MB. The replicas are identical to those from TGrid::Command. The driver still opens the file with ROOT for metadata discovery, so it still starts cling.
Member
Author
|
I have tested this on hyperloop by hand, reusing 821131, and downloading the files from alien rather than using the locally. |
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.
On an alien:// input the AOD reader started ROOT's interpreter even with
the native backend. TGrid::Connect goes through the plugin manager, which
runs P010_TJAlien.C, and the replica lookup gets its results as a TMap of
TObjString: hashing a TPair calls TPair::Class() and initialises cling.
That costs about 0.27 s and 57 MB per reader process.
TGrid::Connect, and sets gErrorIgnoreLevel to kPrint if it is unset so
that ROOT's error handler does not read it from the environment
through gROOT. It replaces the four TGrid::Connect calls.
plain strings, when JAliEn-ROOT provides it (TJALIEN_HAS_COMMAND_RAW).
Otherwise it uses gGrid->Command as before.
reads Url.Special from gEnv, which goes through gROOT and starts the
interpreter once TROOT exists (seen with gdb in a grid run on
Linux). The path is the same as TUrl::GetFile for LFNs.
Measured with a reader-only workflow on an alien:// AO2D: the reader no
longer loads libCling or any .pcm, and its footprint goes from
126-131 MB to 44-75 MB. The replicas are identical to those from
TGrid::Command. The driver still opens the file with ROOT for metadata
discovery, so it still starts cling.