From: Bongkyu Kim <bongkyu7.kim@samsung.com>
To: peterz@infradead.org, mingo@redhat.com, will@kernel.org,
longman@redhat.com, boqun.feng@gmail.com
Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
bongkyu7.kim@samsung.com
Subject: [PATCH v1 0/2] Make reader optimistic spinning optional
Date: Thu, 31 Aug 2023 12:00:02 +0900 [thread overview]
Message-ID: <20230831030004.16576-1-bongkyu7.kim@samsung.com> (raw)
In-Reply-To: <CGME20230831030048epcas2p4de6faba4d56212b06939421feb0bc56d@epcas2p4.samsung.com>
Hi,
This is rework of the following discussed patch.
https://lore.kernel.org/all/20230613043308.GA1027@KORCO045595.samsungds.net/
Changes from the previous patch
- Split to revert and modify patches
- Change according to Waiman Long's review
More wording to documentation part
Change module_param to early_param
Code change by Waiman Long's suggestion
In mobile environment, reader optimistic spinning is still useful
because there're not many readers. In my test result at android device,
it improves application startup time about 3.8%
App startup time is most important factor for android user expriences.
So, re-enable reader optimistic spinning by this commit. And,
make it optional feature by cmdline.
Test result:
This is 15 application startup performance in our exynos soc.
- Cortex A78*2 + Cortex A55*6
- unit: ms (lower is better)
Application base opt_rspin Diff Diff(%)
-------------------- ------ --------- ---- -------
* Total(geomean) 343 330 -13 +3.8%
-------------------- ------ --------- ---- -------
helloworld 110 108 -2 +1.8%
Amazon_Seller 397 388 -9 +2.3%
Whatsapp 311 304 -7 +2.3%
Simple_PDF_Reader 500 463 -37 +7.4%
FaceApp 330 317 -13 +3.9%
Timestamp_Camera_Free 451 443 -8 +1.8%
Kindle 629 597 -32 +5.1%
Coinbase 243 233 -10 +4.1%
Firefox 425 399 -26 +6.1%
Candy_Crush_Soda 552 538 -14 +2.5%
Hill_Climb_Racing 245 230 -15 +6.1%
Call_Recorder 437 426 -11 +2.5%
Color_Fill_3D 190 180 -10 +5.3%
eToro 512 505 -7 +1.4%
GroupMe 281 266 -15 +5.3%
Bongkyu Kim (2):
Revert "locking/rwsem: Remove reader optimistic spinning"
locking/rwsem: Make reader optimistic spinning optional
.../admin-guide/kernel-parameters.txt | 9 +
kernel/locking/lock_events_list.h | 5 +-
kernel/locking/rwsem.c | 299 +++++++++++++++---
3 files changed, 265 insertions(+), 48 deletions(-)
--
2.36.1
next parent reply other threads:[~2023-08-31 3:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230831030048epcas2p4de6faba4d56212b06939421feb0bc56d@epcas2p4.samsung.com>
2023-08-31 3:00 ` Bongkyu Kim [this message]
[not found] ` <CGME20230831030055epcas2p22e256228eea85fa3f04aa7d2e8d0bcfa@epcas2p2.samsung.com>
2023-08-31 3:00 ` [PATCH v1 1/2] Revert "locking/rwsem: Remove reader optimistic spinning" Bongkyu Kim
[not found] ` <CGME20230831030057epcas2p3031d3497e47e61182a5b593c2d8e5dd6@epcas2p3.samsung.com>
2023-08-31 3:00 ` [PATCH v1 2/2] locking/rwsem: Make reader optimistic spinning optional Bongkyu Kim
2023-08-31 15:22 ` Waiman Long
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=20230831030004.16576-1-bongkyu7.kim@samsung.com \
--to=bongkyu7.kim@samsung.com \
--cc=boqun.feng@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®