diff options
author | Peter Zijlstra <peterz@infradead.org> | 2019-08-01 12:41:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-29 08:30:15 +0200 |
commit | 9ea2355c3117cc1e36fe43bbdef2abe101b2aae4 (patch) | |
tree | 28ba547cff58328d9ade65b41bd05df1be22295a /kernel | |
parent | a343eca8fd929d86ed50f3978d4e3272cdbb6c37 (diff) | |
download | linux-stable-9ea2355c3117cc1e36fe43bbdef2abe101b2aae4.tar.gz linux-stable-9ea2355c3117cc1e36fe43bbdef2abe101b2aae4.tar.bz2 linux-stable-9ea2355c3117cc1e36fe43bbdef2abe101b2aae4.zip |
sched/psi: Reduce psimon FIFO priority
[ Upstream commit 14f5c7b46a41a595fc61db37f55721714729e59e ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/psi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 7acc632c3b82..7fe2c5fd26b5 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -1051,7 +1051,7 @@ struct psi_trigger *psi_trigger_create(struct psi_group *group, if (!rcu_access_pointer(group->poll_kworker)) { struct sched_param param = { - .sched_priority = MAX_RT_PRIO - 1, + .sched_priority = 1, }; struct kthread_worker *kworker; |