From: Yi Sun <yi.sun@unisoc.com>
To: <yury.norov@gmail.com>, <mina86@mina86.com>
Cc: <yi.sun@unisoc.com>, <279644543@qq.com>, <mnazarewicz@gmail.com>,
<akpm@linux-foundation.org>, <akinobu.mita@gmail.com>,
<linux-kernel@vger.kernel.org>, <john.stultz@linaro.org>,
<tjmercier@google.com>, <qiang.zhao@freescale.com>,
<scottwood@freescale.com>, <benjamin.gaignard@linaro.org>,
<fvdl@google.com>, <tglx@kernel.org>,
<andreas.herrmann@calxeda.com>, <song@kernel.org>, <hch@lst.de>,
<sasha.levin@oracle.com>, <minchan@kernel.org>
Subject: [PATCH v5 0/2] Improve the performance of bitmap_find_next_zero_area_off()
Date: Thu, 18 Jun 2026 09:52:50 +0800 [thread overview]
Message-ID: <20260618015252.3601554-1-yi.sun@unisoc.com> (raw)
Use lib/find_bit_benchmark.c for testing.
Test results showed a 40% improvement in dense cases,
and almost no change in sparse cases.
Performance test results on my hardware:
before(ns) after(ns) change p-value
dense 1211 688 -43.2% 8.3e-11
sparse 13.3 13.4 0.8% 0.27
The following modifications were made based on v4:
- Improve test code and testing methods to make
test results more stable and accurate.
- Change the "goto again" code structure to a for loop.
---
v4: https://lore.kernel.org/all/20260601094234.103863-1-yi.sun@unisoc.com
- Test code has been added to PATCH v2.
v3: https://lore.kernel.org/all/20260514090607.231387-1-yi.sun@unisoc.com
- Code optimization was performed on PATCH v1.
v2: https://lore.kernel.org/all/20260514035644.4118050-1-yi.sun@unisoc.com
- Do not introduce find_last_bit_from().
v1: https://lore.kernel.org/all/20260512040659.2992142-1-yi.sun@unisoc.com
Yi Sun (2):
lib: bitmap: add tests for bitmap_find_next_zero_area_off()
lib: bitmap: optimize bitmap_find_next_zero_area_off()
lib/bitmap.c | 35 +++++++++++++++++++++--------------
lib/find_bit_benchmark.c | 17 +++++++++++++++++
lib/test_bitmap.c | 38 ++++++++++++++++++++++++++++++++++++++
3 files changed, 76 insertions(+), 14 deletions(-)
--
2.34.1
next reply other threads:[~2026-06-18 1:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-18 1:52 Yi Sun [this message]
2026-06-18 1:52 ` [PATCH v5 1/2] lib: bitmap: add tests for bitmap_find_next_zero_area_off() Yi Sun
2026-06-18 5:48 ` Yury Norov
2026-06-18 9:43 ` 答复: " 孙毅 (Yi Sun)
2026-06-18 12:44 ` 孙毅 (Yi Sun)
2026-06-19 14:01 ` Yury Norov
2026-06-18 1:52 ` [PATCH v5 2/2] lib: bitmap: optimize bitmap_find_next_zero_area_off() Yi Sun
2026-06-18 6:14 ` Yury Norov
2026-06-18 9:29 ` 答复: " 孙毅 (Yi Sun)
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=20260618015252.3601554-1-yi.sun@unisoc.com \
--to=yi.sun@unisoc.com \
--cc=279644543@qq.com \
--cc=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andreas.herrmann@calxeda.com \
--cc=benjamin.gaignard@linaro.org \
--cc=fvdl@google.com \
--cc=hch@lst.de \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mina86@mina86.com \
--cc=minchan@kernel.org \
--cc=mnazarewicz@gmail.com \
--cc=qiang.zhao@freescale.com \
--cc=sasha.levin@oracle.com \
--cc=scottwood@freescale.com \
--cc=song@kernel.org \
--cc=tglx@kernel.org \
--cc=tjmercier@google.com \
--cc=yury.norov@gmail.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
Powered by JetHome