Commit 14f5c7b46a41a595fc61db37f55721714729e59e

Authored by Peter Zijlstra
1 parent f4904815f9

sched/psi: Reduce psimon FIFO priority

PSI defaults to a FIFO-99 thread, reduce this to FIFO-1.

FIFO-99 is the very highest priority available to SCHED_FIFO and
it not a suitable default; it would indicate the psi work is the
most important work on the machine.

Since Real-Time tasks will have pre-allocated memory and locked it in
place, Real-Time tasks do not care about PSI. All it needs is to be
above OTHER.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Tested-by: Suren Baghdasaryan <surenb@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1051,7 +1051,7 @@
1051 1051  
1052 1052 if (!rcu_access_pointer(group->poll_kworker)) {
1053 1053 struct sched_param param = {
1054   - .sched_priority = MAX_RT_PRIO - 1,
  1054 + .sched_priority = 1,
1055 1055 };
1056 1056 struct kthread_worker *kworker;
1057 1057