Re: [PATCH 13/23] sched,ion: Convert to sched_set_normal()

From: Peter Zijlstra
Date: Wed Apr 22 2020 - 11:39:45 EST


On Wed, Apr 22, 2020 at 05:09:15PM +0200, Vincent Guittot wrote:
> > It's not unbounded, like a true idle-time scheduler would be, but it can
> > still be pretty horrible. nice19 has some of that too of course, but
> > idle has it worse, esp. also because it begs others to preempt it.
>
> Yeah... you have to pay the benefit of letting other tasks to preempt
> faster. But both sched_idle and nice19 have the same weight

#define WEIGHT_IDLEPRIO 3

/* 15 */ 36, 29, 23, 18, 15,

15 != 3

Also, like said elsewhere, idle is much more eager to let itself be
preempted.