diff options
author | Josh Don <[email protected]> | 2021-08-19 18:04:03 -0700 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-10-05 15:51:39 +0200 |
commit | 2cae3948edd488ebdef4deaf1d1043f92f47e665 (patch) | |
tree | 1eec087e76212e1c7a3d4aaf20ae8eb0f0d8e139 /scripts/gdb/linux/proc.py | |
parent | 51ce83ed523b00d58f2937ec014b12daaad55185 (diff) |
sched: adjust sleeper credit for SCHED_IDLE entities
Give reduced sleeper credit to SCHED_IDLE entities. As a result, woken
SCHED_IDLE entities will take longer to preempt normal entities.
The benefit of this change is to make it less likely that a newly woken
SCHED_IDLE entity will preempt a short-running normal entity before it
blocks.
We still give a small sleeper credit to SCHED_IDLE entities, so that
idle<->idle competition retains some fairness.
Example: With HZ=1000, spawned four threads affined to one cpu, one of
which was set to SCHED_IDLE. Without this patch, wakeup latency for the
SCHED_IDLE thread was ~1-2ms, with the patch the wakeup latency was
~5ms.
Signed-off-by: Josh Don <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions