From: Joel Fernandes <joel@joelfernandes.org>
To: Youssef Esmat <youssefesmat@google.com>
Cc: Qais Yousef <qais.yousef@arm.com>,
Peter Zijlstra <peterz@infradead.org>,
LKML <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
juri.lelli@redhat.com, vincent.guittot@linaro.org,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Thomas Gleixner <tglx@linutronix.de>,
bristot@redhat.com, clark.williams@gmail.com,
bigeasy@linutronix.de, "Paul E. McKenney" <paulmck@kernel.org>
Subject: Re: Sum of weights idea for CFS PI
Date: Sat, 8 Oct 2022 11:04:52 -0400 [thread overview]
Message-ID: <0BFD3887-60A2-4C74-9D37-49B7B6E64299@joelfernandes.org> (raw)
In-Reply-To: <CALUeGD0OP4ZqDFcT10=ih40tGsm9gjjno7NP_Jwd1RxiUJZ0CQ@mail.gmail.com>
> On Oct 6, 2022, at 3:40 PM, Youssef Esmat <youssefesmat@google.com> wrote:
>
[..]
>>
>>> Anyway - just trying to explain how I see it and why C is unlikely to be taking
>>> too much time. I could be wrong. As Youssef said, I think there's no
>>> fundamental problem here.
>>
>> I know on Android where they use smaller HZ, the large tick causes
>> lots of problems for large nice deltas. Example if a highly niced task
>> was to be preempted for 1ms, and preempts instead at 3ms, then the
>> less-niced task will not be so nice (even less nice than it promised
>> to be) any more because of the 2ms boost that the higher niced task
>> got. This can lead the the sched_latency thrown out of the window. Not
>> adjusting the weights properly can potentially make that problem much
>> worse IMO.
>
> Once C releases the lock it should get adjusted and A will get
> adjusted also regardless of tick. At the point we adjust the weights
> we have a chance to check for preemption and cause a reschedule.
Yes but the lock can be held for potentially long time (and even user space lock). I’m more comfortable with Peter’s PE patch which seems a more generic solution, than sum of weights if we can get it working. I’m studying Connor’s patch set now…
> If C doesn't release the lock quickly (hopefully rare), it should
> continue to run at the adjusted weight since it is still blocking A.
We can’t depend on rare. Even one bad instance is a fail. So if lock holder and releaser go crazy, we can’t destabilize the system. After all, this is CFS and fairness should not be broken, even if rarely.
Thanks.
>
>>
>> Thanks.
next prev parent reply other threads:[~2022-10-08 15:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-29 20:38 Joel Fernandes
2022-09-30 13:49 ` Qais Yousef
2022-09-30 15:44 ` Youssef Esmat
2022-09-30 17:42 ` Joel Fernandes
2022-09-30 18:10 ` Youssef Esmat
2022-09-30 18:45 ` Joel Fernandes
2022-09-30 17:34 ` Joel Fernandes
2022-10-03 16:14 ` Qais Yousef
2022-10-03 16:27 ` Joel Fernandes
2022-10-04 16:30 ` Qais Yousef
2022-10-04 19:48 ` Joel Fernandes
2022-10-05 9:31 ` Qais Yousef
2022-10-04 20:27 ` Joel Fernandes
2022-10-05 10:04 ` Qais Yousef
2022-10-06 13:53 ` Joel Fernandes
2022-10-06 19:40 ` Youssef Esmat
2022-10-08 15:04 ` Joel Fernandes [this message]
2022-10-10 14:46 ` Qais Yousef
2022-10-10 15:11 ` Joel Fernandes
2022-10-12 14:30 ` Qais Yousef
2022-10-04 11:50 ` Sebastian Andrzej Siewior
2022-10-04 14:43 ` Joel Fernandes
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=0BFD3887-60A2-4C74-9D37-49B7B6E64299@joelfernandes.org \
--to=joel@joelfernandes.org \
--cc=bigeasy@linutronix.de \
--cc=bristot@redhat.com \
--cc=clark.williams@gmail.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=qais.yousef@arm.com \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
--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®