From: "Liam R. Howlett" <Liam.Howlett@Oracle.com>
To: Peng Zhang <zhangpeng.00@bytedance.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org
Subject: Re: [PATCH v3 0/4] Optimize the fast path of mas_store()
Date: Tue, 27 Jun 2023 11:22:51 -0400 [thread overview]
Message-ID: <20230627152251.eegydhbsuh5gsqls@revolver> (raw)
In-Reply-To: <20230615084301.97701-1-zhangpeng.00@bytedance.com>
* Peng Zhang <zhangpeng.00@bytedance.com> [230615 04:43]:
> 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 v2:
> - Add test for expanding range in RCU mode. [2/4]
Apologies for the late review, other tasks had me held up.
Dropping the RCU flag from your test makes your test fail as expected.
It also fails if we alter the code to not check the rcu flag. So your
test works and I'm happy with your changes.
Please remove the statement from the change log in patch 4 regarding
testing since you have fixed testing and add:
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
For the whole patch series.
>
> v1: https://lore.kernel.org/lkml/20230602075353.5917-1-zhangpeng.00@bytedance.com/
> v2: https://lore.kernel.org/lkml/20230609120347.63936-1-zhangpeng.00@bytedance.com/
>
> Peng Zhang (4):
> maple_tree: add test for mas_wr_modify() fast path
> maple_tree: add test for expanding range in RCU mode
> 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 +++++++++++++++++++++++++++
> tools/testing/radix-tree/maple.c | 75 ++++++++++++++++++++++++++++++++
> 3 files changed, 186 insertions(+), 23 deletions(-)
>
> --
> 2.20.1
>
>
prev parent reply other threads:[~2023-06-27 15:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 8:42 Peng Zhang
2023-06-15 8:42 ` [PATCH v3 1/4] maple_tree: add test for mas_wr_modify() fast path Peng Zhang
2023-06-15 8:42 ` [PATCH v3 2/4] maple_tree: add test for expanding range in RCU mode Peng Zhang
2023-06-15 8:43 ` [PATCH v3 3/4] maple_tree: optimize mas_wr_append(), also improve duplicating VMAs Peng Zhang
2023-06-15 8:43 ` [PATCH v3 4/4] maple_tree: add a fast path case in mas_wr_slot_store() Peng Zhang
2023-06-27 14:45 ` Liam R. Howlett
2023-06-25 4:04 ` [PATCH v3 0/4] Optimize the fast path of mas_store() Peng Zhang
2023-06-27 15:22 ` Liam R. Howlett [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=20230627152251.eegydhbsuh5gsqls@revolver \
--to=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