Repository navigation
Conversation
Opening a file took 7 sequential reads: the header, the top directory record, the key list, the metaData map, the first DF's directory record, its key list and its TTrees. ROOT's TFile::Init takes 3. Each is a round trip on a remote file. - The first read takes 4 KiB instead of 128 bytes: it then also holds the top directory record and, as ROOT writes them first, the first DF's. - metaData is read when asked for: the reader never asks (metadata discovery opens the file with ROOT). Now 4 reads for an AO2D with metaData, 5 for a derived one with parentFiles.
…ader TJAlienFile::GetElapsed(), the open_time of the ROOT reader, covers the open of the replica which is read and TFile::Init. The native reader's also covered the catalogue lookup, replicas which failed to open, retry delays, parentFiles and the first DF's directory, keys and trees, so the two could not be compared. open_time now covers the open of the replica read and its header and keys. The rest goes in new fields of the same lines, before se= so that open_time stays last: access_time (catalogue), failover_time (failed opens, retry delays and reopens, for the life of the file) and prepare_time (parentFiles and the first DF).
…in the native reader The trees to prefetch were set when the plan of a new DF was made, but the DF's keys are listed earlier, when DPL asks for the tree handle. So the second DF of a file still fetched every TTree, as the first. Set the list as trees join the plan instead.
…head Listing a DF took two dependent reads, its directory record and then its key list, each a round trip on a remote file. Read those of the next 16 DFs, in read order, with them: one vector read for the records and one for the key lists, at most 1 MiB of key lists. Metadata only; the cache is replaced at each read-ahead.
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.
Listing a DF took two dependent reads, its directory record and then its
key list, each a round trip on a remote file. Read those of the next 16
DFs, in read order, with them: one vector read for the records and one
for the key lists, at most 1 MiB of key lists. Metadata only; the cache
is replaced at each read-ahead.