From: Daniel Bristot de Oliveira <bristot@redhat.com>
To: "Joel Fernandes (Google)" <joel@joelfernandes.org>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>
Cc: Suleiman Souhlal <suleiman@google.com>,
Youssef Esmat <youssefesmat@google.com>,
David Vernet <void@manifault.com>,
Thomas Gleixner <tglx@linutronix.de>,
"Paul E . McKenney" <paulmck@kernel.org>,
joseph.salisbury@canonical.com,
Luca Abeni <luca.abeni@santannapisa.it>,
Tommaso Cucinotta <tommaso.cucinotta@santannapisa.it>,
Vineeth Pillai <vineeth@bitbyteword.org>,
Shuah Khan <skhan@linuxfoundation.org>,
Phil Auld <pauld@redhat.com>, Ben Segall <bsegall@google.com>,
Mel Gorman <mgorman@suse.de>,
Valentin Schneider <vschneid@redhat.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH 06/10] sched: server: Don't start hrtick for DL server tasks
Date: Wed, 21 Feb 2024 09:39:59 +0100 [thread overview]
Message-ID: <4acce183-b486-44d0-b9e5-affb957ee366@redhat.com> (raw)
In-Reply-To: <20240216183108.1564958-7-joel@joelfernandes.org>
On 2/16/24 19:31, Joel Fernandes (Google) wrote:
> From: Suleiman Souhlal <suleiman@google.com>
>
> Otherwise, we might start it even for tasks in a sched class that should
> have it off.
If the task is fair, but it is running inside a DL reservation, we want the
hrtick for the dl reservation.
This is one of the reasons why we are moving to the DL server, having microseconds
granularity for the boost duration (runtime).
-- Daniel
>
> Signed-off-by: Suleiman Souhlal <suleiman@google.com>
> ---
> kernel/sched/deadline.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
> index 8fafe3f8b59c..5adfc15803c3 100644
> --- a/kernel/sched/deadline.c
> +++ b/kernel/sched/deadline.c
> @@ -2325,11 +2325,12 @@ static struct task_struct *pick_next_task_dl(struct rq *rq)
> if (!p)
> return p;
>
> - if (!p->dl_server)
> + if (!p->dl_server) {
> set_next_task_dl(rq, p, true);
>
> - if (hrtick_enabled(rq))
> - start_hrtick_dl(rq, &p->dl);
> + if (hrtick_enabled(rq))
> + start_hrtick_dl(rq, &p->dl);
> + }
>
> return p;
> }
next prev parent reply other threads:[~2024-02-21 8:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 18:30 [PATCH 00/10] Fair scheduling deadline server fixes Joel Fernandes (Google)
2024-02-16 18:30 ` [PATCH 01/10] sched/core: Add clearing of ->dl_server in put_prev_task_balance() Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 02/10] sched/core: Clear prev->dl_server in CFS pick fast path Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 03/10] sched/core: Fix priority checking for DL server picks Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 04/10] sched/core: Fix picking of tasks for core scheduling with DL server Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 05/10] sched/debug: Use unsigned long for cpu variable to prevent cast errors Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 06/10] sched: server: Don't start hrtick for DL server tasks Joel Fernandes (Google)
2024-02-21 8:39 ` Daniel Bristot de Oliveira [this message]
2024-02-16 18:31 ` [PATCH 07/10] selftests/sched: Add a test to verify that DL server works with core scheduling Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 08/10] selftests/sched: Migrate cs_prctl_test to kselfttest Joel Fernandes (Google)
2024-02-16 19:18 ` Chris Hyser
2024-02-21 0:03 ` Shuah Khan
2024-02-21 0:22 ` Joel Fernandes
2024-02-21 0:22 ` Joel Fernandes
2024-02-16 18:31 ` [PATCH 09/10] admin-guide/hw-vuln: Correct prctl() argument description Joel Fernandes (Google)
2024-02-16 18:31 ` [PATCH 10/10] sched: Fix build error in "sched/rt: Remove default bandwidth control" Joel Fernandes (Google)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4acce183-b486-44d0-b9e5-affb957ee366@redhat.com \
--to=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=joel@joelfernandes.org \
--cc=joseph.salisbury@canonical.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.abeni@santannapisa.it \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=pauld@redhat.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=skhan@linuxfoundation.org \
--cc=suleiman@google.com \
--cc=tglx@linutronix.de \
--cc=tommaso.cucinotta@santannapisa.it \
--cc=vincent.guittot@linaro.org \
--cc=vineeth@bitbyteword.org \
--cc=void@manifault.com \
--cc=vschneid@redhat.com \
--cc=youssefesmat@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®