From: "孙毅 (Yi Sun)" <Yi.Sun@unisoc.com>
To: "ynorov@nvidia.com" <ynorov@nvidia.com>,
"yury.norov@gmail.com" <yury.norov@gmail.com>
Cc: "mnazarewicz@gmail.com" <mnazarewicz@gmail.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"mina86@mina86.com" <mina86@mina86.com>,
"akinobu.mita@gmail.com" <akinobu.mita@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"王科 (Ke Wang)" <Ke.Wang@unisoc.com>
Subject: 答复: [PATCH v4 0/2] Improve the performance of bitmap_find_next_zero_area_off()
Date: Mon, 8 Jun 2026 07:44:35 +0000 [thread overview]
Message-ID: <8beb1aee60434e569504226d8eb7f7b8@BJMBX02.spreadtrum.com> (raw)
In-Reply-To: <20260601094234.103863-1-yi.sun@unisoc.com>
Hi Yury,
Just a gentle ping.
Is there anything I can do?
> -----邮件原件-----
> 发件人: 孙毅 (Yi Sun) <Yi.Sun@unisoc.com>
> 发送时间: 2026年6月1日 17:43
> 收件人: ynorov@nvidia.com; yury.norov@gmail.com
> 抄送: 孙毅 (Yi Sun) <Yi.Sun@unisoc.com>; mnazarewicz@gmail.com;
> akpm@linux-foundation.org; mina86@mina86.com; akinobu.mita@gmail.com;
> linux-kernel@vger.kernel.org
> 主题: [PATCH v4 0/2] Improve the performance of
> bitmap_find_next_zero_area_off()
>
> Test code has been added to PATCH v2.
> No new APIs were introduced.
>
> Testing with the test code showed a performance improvement
> of approximately 70%.
>
> Test result(random):
> orig_ns orig_cnt orig_average new_ns
> new_cnt new_average ratio
> test1 1388885 1154 1203 462923
> 1308 353 70.7%
> test2 1393616 1324 1052 736193
> 1212 607 42.3%
> test3 1391693 1216 1144 735808
> 1260 583 49%
> test4 1393231 1275 1092 742731
> 1402 529 51.6%
> test5 1390731 1260 1103 737231
> 1274 578 47.6%
>
> Test result(sparse):
> orig_ns orig_cnt orig_average new_ns
> new_cnt new_average ratio
> test1 4496077 322477 13 2419462
> 322480 7 46.2%
> test2 7514731 322482 23 5785808
> 322476 17 26.1%
> test3 7490692 322493 23 7654423
> 322483 23 0%
> test4 7474500 322469 23 7628230
> 322483 23 0%
> test5 7452692 322481 23 7663116
> 322478 23 0%
>
> Test result explanation:
> Test both random and sparse five times.
> @orig_ns/cnt: Original version results.
> @new_ns/cnt: Optimized test results.
> @orig_average = orig_ns / orig_cnt
> @new_average = new_ns / new_cnt
> @ratio = (orig_average - new_average) / orig_average
>
> The test results show that the optimized version
> improved performance in almost every test.
>
> ---
> v3: https://lore.kernel.org/all/20260514090607.231387-1-yi.sun@unisoc.com
> - Based on Michał Nazarewicz's suggestion,
> 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: reduce the number of goto again in
> bitmap_find_next_zero_area_off()
> lib/bitmap: add tests for bitmap_find_next_zero_area_off()
>
> lib/bitmap.c | 10 +++++++---
> lib/find_bit_benchmark.c | 17 +++++++++++++++++
> lib/test_bitmap.c | 28 ++++++++++++++++++++++++++++
> 3 files changed, 52 insertions(+), 3 deletions(-)
>
> --
> 2.34.1
next prev parent reply other threads:[~2026-06-08 7:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 9:42 Yi Sun
2026-06-01 9:42 ` [PATCH v4 1/2] lib: bitmap: reduce the number of goto again in bitmap_find_next_zero_area_off() Yi Sun
2026-06-08 22:15 ` Yury Norov
2026-06-17 8:55 ` 答复: " 孙毅 (Yi Sun)
2026-06-01 9:42 ` [PATCH v4 2/2] lib/bitmap: add tests for bitmap_find_next_zero_area_off() Yi Sun
2026-06-08 19:14 ` Yury Norov
2026-06-08 19:24 ` Yury Norov
2026-06-08 7:44 ` 孙毅 (Yi Sun) [this message]
2026-06-08 21:54 ` [PATCH v4 0/2] Improve the performance of bitmap_find_next_zero_area_off() Yury Norov
2026-06-09 1:06 ` Yury Norov
2026-06-09 2:09 ` John Stultz
2026-06-17 9:00 ` 答复: " 孙毅 (Yi Sun)
2026-06-11 10:56 ` Michał Nazarewicz
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=8beb1aee60434e569504226d8eb7f7b8@BJMBX02.spreadtrum.com \
--to=yi.sun@unisoc.com \
--cc=Ke.Wang@unisoc.com \
--cc=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mina86@mina86.com \
--cc=mnazarewicz@gmail.com \
--cc=ynorov@nvidia.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