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#6822 unscheduled: Change infinite to max timeout in scheduler #7016

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

derekbruening
Copy link
Contributor

Adds a new drmemtrace scheduler option
scheduler_options_t.honor_infinite_timeouts and a CLI parameter -sched_infinite_timeouts, both off by default. If turned on, these match the previous behavior.

Changes the default behavior to use the (scaled per the scale parameter) maximum block timeout for indefinitely-unscheduled cases, rather than using an infinite timeout. This avoids waiting a long time for things like background threads that do nothing but wait the entire duration of a trace.

Adds unit test variants for both infinite and max-timeout.

Tested on a large application where this did not noticeably decrease the successful number of direct switches, but did reduce the idle time which was too high previously.

Issue: #6822

Adds a new drmemtrace scheduler option
scheduler_options_t.honor_infinite_timeouts and a CLI parameter
-sched_infinite_timeouts, both off by default.  If turned on, these
match the previous behavior.

Changes the default behavior to use the (scaled per the scale
parameter) maximum block timeout for indefinitely-unscheduled cases,
rather than using an infinite timeout.  This avoids waiting a long
time for things like background threads that do nothing but wait the
entire duration of a trace.

Adds unit test variants for both infinite and max-timeout.

Tested on a large application where this did not noticeably decrease
the successful number of direct switches, but did reduce the idle time
which was too high previously.

Issue: #6822
clients/drcachesim/common/options.cpp Outdated Show resolved Hide resolved
clients/drcachesim/common/options.cpp Outdated Show resolved Hide resolved
@derekbruening derekbruening merged commit 81d5748 into master Oct 2, 2024
16 of 17 checks passed
@derekbruening derekbruening deleted the i6822-unsched-finite branch October 2, 2024 13:22
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