Skip to content
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#7067 sched cpu limits: Add thread cpu footprint to schedule_stats #7095

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Nov 25, 2024

Augments schedule_stats to record how many cores each thread appears on. This is used to compute an overall histogram of cores per thread, which is a useful metric for studying migrations over time. This is done in a multi-workload-aware manner to avoid problems with duplicate thread ids across workloads.

This adds new pure-virtual functions to the
schedule_stats_t::histogram_t interface, so subclasses will need to be updated.
It also changes schedule_stats_t::counters_t.threads to use workload_tid_t rather
than just tid.

Adds some multi-workload support to the testing helpers in default_memtrace_stream_t and memref_gen.

Adds a unit test and updates existing tests.

Issue: #7067

Augments schedule_stats to record how many cores each thread appears
on. This is used to compute an overall histogram of cores per thread,
which is a useful metric for studying migrations over time.  This is
done in a multi-workload-aware manner to avoid problems with duplicate
thread ids across workloads.

This adds new pure-virtual functions to the
schedule_stats_t::histogram_t interface, so subclasses will need to be
updated.

Adds some multi-workload support to the testing helpers in
default_memtrace_stream_t and memref_gen.

Adds a unit test.

Issue: #&067
@derekbruening derekbruening requested review from ivankyluk and abhinav92003 and removed request for ivankyluk November 25, 2024 22:54
@derekbruening
Copy link
Contributor Author

Looking like macos-12 support was dropped earlier than was documented? Xref #7055

clients/drcachesim/tools/schedule_stats.cpp Outdated Show resolved Hide resolved
clients/drcachesim/tools/schedule_stats.cpp Outdated Show resolved Hide resolved
clients/drcachesim/tools/schedule_stats.cpp Outdated Show resolved Hide resolved
clients/drcachesim/tools/schedule_stats.cpp Show resolved Hide resolved
@derekbruening
Copy link
Contributor Author

a64 is yet again the before-a-bundle assert #3320

@derekbruening derekbruening merged commit a7e58ee into master Nov 26, 2024
16 of 17 checks passed
@derekbruening derekbruening deleted the i7067-cpu-footprint branch November 26, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants