diff options
author | Qais Yousef <[email protected]> | 2020-03-05 10:24:50 +0000 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-03-20 13:06:20 +0100 |
commit | e94f80f6c49020008e6fa0f3d4b806b8595d17d8 (patch) | |
tree | ca6a4acf15134ed1f12a178a3a8661d145c3f222 /scripts/mod/file2alias.c | |
parent | 26c7295be0c5e6da3fa45970e9748be983175b1b (diff) |
sched/rt: cpupri_find: Trigger a full search as fallback
If we failed to find a fitting CPU, in cpupri_find(), we only fallback
to the level we found a hit at.
But Steve suggested to fallback to a second full scan instead as this
could be a better effort.
https://lore.kernel.org/lkml/[email protected]/
We trigger the 2nd search unconditionally since the argument about
triggering a full search is that the recorded fall back level might have
become empty by then. Which means storing any data about what happened
would be meaningless and stale.
I had a humble try at timing it and it seemed okay for the small 6 CPUs
system I was running on
https://lore.kernel.org/lkml/[email protected]/
On large system this second full scan could be expensive. But there are
no users outside capacity awareness for this fitness function at the
moment. Heterogeneous systems tend to be small with 8cores in total.
Suggested-by: Steven Rostedt <[email protected]>
Signed-off-by: Qais Yousef <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions