[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1438176656.18723.8.camel@ceres>
Date: Wed, 29 Jul 2015 16:30:56 +0300
From: Alexey Klimov <klimov.linux@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Cassidy Burden <cburden@...eaurora.org>
Cc: Yury <yury.norov@...il.com>, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
"David S. Miller" <davem@...emloft.net>,
Daniel Borkmann <dborkman@...hat.com>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Lai Jiangshan <laijs@...fujitsu.com>,
Mark Salter <msalter@...hat.com>,
AKASHI Takahiro <takahiro.akashi@...aro.org>,
Thomas Graf <tgraf@...g.ch>,
Valentin Rothberg <valentinrothberg@...il.com>,
Chris Wilson <chris@...is-wilson.co.uk>
Subject: Re: [PATCH] lib: Make _find_next_bit helper function inline
On Вт., 2015-07-28 at 14:45 -0700, Andrew Morton wrote:
> On Wed, 29 Jul 2015 00:23:18 +0300 Yury <yury.norov@...il.com> wrote:
>
> > But I think, before/after for x86 is needed as well.
>
> That would be nice.
>
> > And why don't you consider '__always_inline__'? Simple inline is only a
> > hint and
> > guarantees nothing.
>
> Yup. My x86_64 compiler just ignores the "inline". When I use
> __always_inline, find_bit.o's text goes from 776 bytes to 863.
> Hopefully we get something in return for that bloat!
On my x86_64 (core-i5 something, with disabled cpufreq) i got following
numbers:
find_next_zero_bit
old new __always_inline
20 21 22
20 21 22
20 22 23
21 21 22
21 21 23
20 21 22
20 21 23
21 22 23
20 22 22
21 21 22
find_next_bit
old new __always_inline
19 21 24
19 22 24
19 22 24
19 21 24
20 22 24
19 21 23
19 21 23
20 21 24
19 22 24
19 21 24
I will re-check on another machine. It's really interesting if
__always_inline makes things better for aarch64 and worse for x86_64. It
will be nice if someone will check it on x86_64 too.
Best regards,
Alexey Klimov.
> Also, if _find_next_bit() benefits from this then _find_next_bit_le()
> will presumably also benefit.
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists