From: Ingo Molnar <mingo@kernel.org>
To: Yury Norov <ynorov@caviumnetworks.com>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Akinobu Mita <mita@miraclelinux.com>,
Mike Galbraith <efault@gmx.de>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: [PATCH] sched: remove sched_find_first_bit()
Date: Thu, 18 May 2017 09:14:11 +0200 [thread overview]
Message-ID: <20170518071411.kb762lo5fmh7ffpe@gmail.com> (raw)
In-Reply-To: <20170517121636.3p75k77dxppfzaxg@yury-N73SV>
* Yury Norov <ynorov@caviumnetworks.com> wrote:
> On Tue, May 16, 2017 at 10:30:42AM +0200, Ingo Molnar wrote:
> >
> > * Yury Norov <ynorov@caviumnetworks.com> wrote:
> >
> > > I collected about 700 results in dmesg, and took 600 fastest.
> > > For the vanilla kernel, the average value is 368, and for patched
> > > kernel it is 388. It's 5% slower. But the standard deviation is
> > > really big for both series' - 131 and 106 cycles respectively, which
> > > is ~ 30%. And so, my conclusion is: there's no benefit in using
> > > sched_find_first_bit() comparing to find_first_bit().
> >
> > Erm, so you in essence claim:
> >
> > "according to measurements the new code is 5% slower, with a high, 30%
> > stddev, hence the new code is better!"
> >
> > Basic logic fail...
> >
> > Thanks,
> >
> > Ingo
>
> No, in essence I claim that scatter is so big (in both cases, and in
> case of vanilla kernel even bigger) that 5% is not a meaningful
> difference. To be specific - new measured value is inside the
> confidence interval of previous one.
Firstly, the high spread is due to the poor measurement method: by increasing the
number of measurements the standard deviation can be reduced.
Secondly, and most importantly, the claim you made based on the numbers is simply
false:
> > > And so, my conclusion is: there's no benefit in using
> > > sched_find_first_bit() comparing to find_first_bit().
you _measured no benefit_, and in fact the result you got is leaning towards it
being a benefit.
When doing a proper measurement it might strengthen, vanish or turn around - we
simply don't know.
Thanks,
Ingo
next prev parent reply other threads:[~2017-05-18 7:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 1:01 [PATCH] sched: remove sched_find_first_bit() Yury Norov
2017-05-14 18:09 ` Ingo Molnar
2017-05-15 15:47 ` Yury Norov
2017-05-15 15:47 ` Yury Norov
2017-05-15 16:06 ` Arnd Bergmann
2017-05-15 16:17 ` Yury Norov
2017-05-15 20:31 ` Arnd Bergmann
2017-05-15 20:31 ` Arnd Bergmann
2017-05-15 20:58 ` Yury Norov
2017-05-15 20:58 ` Yury Norov
2017-05-15 21:04 ` Arnd Bergmann
2017-05-16 8:30 ` Ingo Molnar
2017-05-17 12:16 ` Yury Norov
2017-05-18 7:14 ` Ingo Molnar [this message]
2017-05-15 14:18 ` Arnd Bergmann
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=20170518071411.kb762lo5fmh7ffpe@gmail.com \
--to=mingo@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=arnd@arndb.de \
--cc=efault@gmx.de \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=mingo@redhat.com \
--cc=mita@miraclelinux.com \
--cc=peterz@infradead.org \
--cc=rth@twiddle.net \
--cc=ynorov@caviumnetworks.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;
as well as URLs for NNTP newsgroup(s).