Goodness of a process Calculated by the goodness() function Goodness of real-time tasks is always higher than goodness of a SCHED_OTHER task (1000 + rt_priority) Goodness is calculated like this for SCHED_OTHER tasks: if (p->mm == prev->mm) return p->counter + 1 + 20 - p->nice; else return p->counter + 20 - p->nice;