From: Peng Zhang <perlyzhang@gmail.com>
To: "Liam R. Howlett" <Liam.Howlett@Oracle.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>,
akpm@linux-foundation.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org
Subject: Re: [PATCH v2 0/3] Optimize the fast path of mas_store()
Date: Wed, 14 Jun 2023 19:10:31 +0800 [thread overview]
Message-ID: <ec1c4922-bb04-7896-8864-98cd96c9b0fc@gmail.com> (raw)
In-Reply-To: <20230613172352.u4oj5ydoloztvdqk@revolver>
在 2023/6/14 01:23, Liam R. Howlett 写道:
> * Peng Zhang <zhangpeng.00@bytedance.com> [230609 08:04]:
>> Add fast paths for mas_wr_append() and mas_wr_slot_store() respectively.
>> The newly added fast path of mas_wr_append() is used in fork() and how
>> much it benefits fork() depends on how many VMAs are duplicated.
>>
>> Changes since v1:
>> - Revise comment and commit log. [3/3]
>> - Add test for mas_wr_modify() fast path. [1/3]
>
> Thanks for adding the tests. I'm just trying to figure out how to best
> address testing this in RCU mode. And by testing it I mean add tests in
> RCU that does this and detect the failure by modifying your code, then
> change it back and have it pass the test by falling back to node store.
> This would need to change tools/testing/radix-tree/maple.c to update the
> testing there.
I see what you mean now, I will try to make a test in RCU mode.
>
>>
>> v1: https://lore.kernel.org/lkml/20230602075353.5917-1-zhangpeng.00@bytedance.com/
>>
>> Peng Zhang (3):
>> maple_tree: add test for mas_wr_modify() fast path
>> maple_tree: optimize mas_wr_append(), also improve duplicating VMAs
>> maple_tree: add a fast path case in mas_wr_slot_store()
>>
>> lib/maple_tree.c | 69 ++++++++++++++++++++++++++++---------------
>> lib/test_maple_tree.c | 65 ++++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 111 insertions(+), 23 deletions(-)
>>
>> --
>> 2.20.1
>>
>
prev parent reply other threads:[~2023-06-14 11:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 12:03 Peng Zhang
2023-06-09 12:03 ` [PATCH v2 1/3] maple_tree: add test for mas_wr_modify() fast path Peng Zhang
2023-06-09 12:03 ` [PATCH v2 2/3] maple_tree: optimize mas_wr_append(), also improve duplicating VMAs Peng Zhang
2023-06-09 12:03 ` [PATCH v2 3/3] maple_tree: add a fast path case in mas_wr_slot_store() Peng Zhang
2023-06-13 17:23 ` [PATCH v2 0/3] Optimize the fast path of mas_store() Liam R. Howlett
2023-06-14 11:10 ` Peng Zhang [this message]
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=ec1c4922-bb04-7896-8864-98cd96c9b0fc@gmail.com \
--to=perlyzhang@gmail.com \
--cc=Liam.Howlett@Oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=maple-tree@lists.infradead.org \
--cc=zhangpeng.00@bytedance.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