-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i#6685: Add core-sharded-on-disk analysis support #6680
Conversation
Add core-sharded-on-disk analysis support Adds a new filetype OFFLINE_FILE_TYPE_CORE_SHARDED set by record_filter when core-sharded. Has the scheduler read ahead to the filetype in every input, and arrange to make it available at init time to output streams. The analyzer looks for the filetype and sets the shard type as core-sharded if set. This is different from a dynamic-scheduling core-sharded as we do not need a 1:1 shard:workers mapping. Allows header records in reader_t::process_input_entry(), which are now expected with core-sharded-on-disk traces. Adds core-sharded reader support for seeing only portions of some threads, where we have to relax some tid and pid checks. Checks in 6 core-sharded-on-disk x64 threadsig traces for use in a test of basic_counts analyzing them. That analysis fails without all of these framework changes. The changes to the record filter to support generating those traces in the first place will come in separately. Issue: #6635
… left here in part 3
…ing in scheduler init for online. Use output ords to avoid ord discrepancies from new read-ahead for parallel analysis mode.
…d for the filetype: + Breaks unit tests which have no filetype records => stopping readahead at pagesize marker. + Breaks replay-as-traced b/c input record ord is too far => disabling read-ahead for as-traced. + Breaks record filter legacy null check b/c legacy trace has no filetype and it reads the timestamp which means the stream's last-timestamp is now > stop-timestamp and so the resulting output trace has the filter-end marker 1st thing! => Made get_*_timestamp use output until output sees 1st timestamp. + Skip tests fail b/c timestamp has 1 instead of 120 ord -- coming from the change above to use the output ord until the 1st instr! => using last_timestamp_ > 0 instead. If we had metadata w/ the filetype instead of reading ahead and messing up the input ords that would be great, but we don't.
…re-on-disk-analysis
…to handle nondet core ordinal order
…_on_disk failure" This reverts commit b213ab3.
…k test w/ #workers<#shards
This has been a real nightmare to get all the modes and tests working: there is some fragility in the infrastructure for sure. Finally have everything passing except the invariant checker pthreads test on the aarch64-sve runner: but I cannot reproduce that failure anywhere else including aarch64 machines I have access to; the failure itself is one I saw a number of commits back on this same test locally and fixed so it is weird it shows up still on this one machine. I don't know that tmate works on self-hosted runners? |
This reverts commit 93f9e6b.
…re-on-disk-analysis
+ Restore basic_counts thread exit check + Add quite a few comments clarifying and explaining + Adjust interface docs to remove internal details
…re-on-disk-analysis
Add core-sharded-on-disk analysis support:
Adds a new filetype OFFLINE_FILE_TYPE_CORE_SHARDED set by record_filter when core-sharded.
Has the scheduler read ahead to the filetype in every input, and arrange to make it available at init time to output streams.
The analyzer looks for the filetype and sets the shard type as core-sharded if set. This is different from a dynamic-scheduling core-sharded as we do not need a 1:1 shard:workers mapping.
Allows header records in reader_t::process_input_entry(), which are now expected with core-sharded-on-disk traces.
Adds core-sharded reader support for seeing only portions of some threads, where we have to relax some tid and pid checks.
Checks in 6 core-sharded-on-disk x64 threadsig traces for use in a test of basic_counts analyzing them. That analysis fails without all of these framework changes.
The changes to the record filter to support generating those traces in the first place will come in separately.
Issue: #6685, #6635
Fixes #6685