Re: [PATCH 02/13] sched_ext: Make slice values tunable and use shorter slice in bypass mode
From: Andrea Righi
Date: Mon Nov 10 2025 - 03:22:28 EST
Hi Tejun,
On Sun, Nov 09, 2025 at 08:31:01AM -1000, Tejun Heo wrote:
...
> + /*
> + * %SCX_SLICE_DFL is used to refill slices when the BPF scheduler misses
> + * to set the slice for a task that is selected for execution.
> + * %SCX_EV_REFILL_SLICE_DFL counts the number of times the default slice
> + * refill has been triggered.
> + *
> + * %SCX_SLICE_BYPASS is used as the slice for all tasks in the bypass
> + * mode. As mkaing forward progress for all tasks is the main goal of
Small typo: s/mkaing/making/
-Andrea
> + * the bypass mode, a shorter slice is used.
> + */
> SCX_SLICE_DFL = 20 * 1000000, /* 20ms */
> + SCX_SLICE_BYPASS = 5 * 1000000, /* 5ms */
> SCX_SLICE_INF = U64_MAX, /* infinite, implies nohz */
> };
>