public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Elliot Berman <quic_eberman@quicinc.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Pavel Machek <pavel@ucw.cz>, Thomas Gleixner <tglx@linutronix.de>,
	<kernel@quicinc.com>, <linux-arm-msm@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>,
	"Prakash Viswalingam" <quic_prakashv@quicinc.com>
Subject: Re: [PATCH v2] freezer,sched: Use saved_state to reduce some spurious wakeups
Date: Fri, 8 Sep 2023 15:30:43 -0700	[thread overview]
Message-ID: <783c60ef-5341-7893-e9e8-2b1b249f89c9@quicinc.com> (raw)
In-Reply-To: <20230908220804.GA29218@noisy.programming.kicks-ass.net>



On 9/8/2023 3:08 PM, Peter Zijlstra wrote:
> On Fri, Sep 08, 2023 at 01:08:07PM -0700, Elliot Berman wrote:
> 
>>> Perhaps we should start off by doing the below, instead of making it
>>> more complicated instead. I suppose you're right about the overhead, but
>>> run a hackbench just to make sure or something.
>>>
>>
>> I ran perf bench sched message -g 40 -l 40 with the v3 patch [1]. After 60
>> iterations each, I don't see a significant difference on my arm64 platform:
>> both samples ~normal and ~eq variance w/t-test p-value: 0.79.
>>
>> We also ran typical high level benchmarks for our SoCs (antutu,
>> geekbench, et. al) and didn't see any regressions there.
> 
> So if you would've made this 2 patches, the first removing the ifdef,
> then the changelog for that patch would be a good place to mention it
> doesn't measurably regress things.

No problem, easily done.

> As a bonus, it then makes your other changes smaller too ;-)

Did you mean that each commit is smaller but overall delta is the same
or something else? I still wanted to update comments on saved_state in
kernel/sched/core.c as it gives good explanation of what is going on. I
have split the commit but want to make sure I make the changes you were
thinking :-)

Thanks,
Elliot

  reply	other threads:[~2023-09-08 22:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 17:42 [PATCH v2] freezer,sched: Use saved_state to reduce some spurious wakeups Elliot Berman
2023-09-04 21:23 ` Peter Zijlstra
2023-09-05  3:59   ` Elliot Berman
2023-09-07  9:46     ` Peter Zijlstra
2023-09-08 20:08       ` Elliot Berman
2023-09-08 22:08         ` Peter Zijlstra
2023-09-08 22:30           ` Elliot Berman [this message]
2023-09-08 22:48             ` Peter Zijlstra
2023-09-08 23:17               ` Elliot Berman
2023-09-09  9:29                 ` Peter Zijlstra

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=783c60ef-5341-7893-e9e8-2b1b249f89c9@quicinc.com \
    --to=quic_eberman@quicinc.com \
    --cc=kernel@quicinc.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pavel@ucw.cz \
    --cc=peterz@infradead.org \
    --cc=quic_prakashv@quicinc.com \
    --cc=rafael@kernel.org \
    --cc=tglx@linutronix.de \
    /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