summaryrefslogtreecommitdiff
path: root/tools/lib/python/abi/helpers.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2025-11-11 09:18:04 -1000
committerTejun Heo <tj@kernel.org>2025-11-12 06:43:43 -1000
commitbfd3749d489ec0df27ed94ee3dfd9475fea27bf9 (patch)
treee7c28277d0bc7168745e6113eb82e7067d5d9ec1 /tools/lib/python/abi/helpers.py
parent5a629ecbcdffacfb04fc4eb0098c0688f38c8b9d (diff)
sched_ext: Use shorter slice in bypass mode
There have been reported cases of bypass mode not making forward progress fast enough. The 20ms default slice is unnecessarily long for bypass mode where the primary goal is ensuring all tasks can make forward progress. Introduce SCX_SLICE_BYPASS set to 5ms and make the scheduler automatically switch to it when entering bypass mode. Also make the bypass slice value tunable through the slice_bypass_us module parameter (adjustable between 100us and 100ms) to make it easier to test whether slice durations are a factor in problem cases. v3: Use READ_ONCE/WRITE_ONCE for scx_slice_dfl access (Dan). v2: Removed slice_dfl_us module parameter. Fixed typos (Andrea). Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Reviewed-by: Andrea Righi <arighi@nvidia.com> Cc: Dan Schatzberg <schatzberg.dan@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions