-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#7067 sched cpu limits: Add thread cpu footprint to schedule_stats (#…
…7095) 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
- Loading branch information
1 parent
4a2301b
commit a7e58ee
Showing
8 changed files
with
167 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Schedule stats tool results: | ||
Total counts: | ||
2 cores | ||
4 threads: 1257600, 1257602, 1257599, 1257603 | ||
4 threads: W0.T1257600, W0.T1257602, W0.T1257599, W0.T1257603 | ||
.* | ||
Core #0 schedule: FJ_ | ||
Core #1 schedule: GI |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.