From: Chi Zhiling <chizhiling@163.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org, Hugh Dickins <hughd@google.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Jan Kara <jack@suse.cz>, David Hildenbrand <david@kernel.org>,
Lorenzo Stoakes <ljs@kernel.org>, Zi Yan <ziy@nvidia.com>,
"Liam R. Howlett" <liam@infradead.org>,
Nico Pache <npache@redhat.com>,
Ryan Roberts <ryan.roberts@arm.com>, Dev Jain <dev.jain@arm.com>,
Barry Song <baohua@kernel.org>, Lance Yang <lance.yang@linux.dev>,
Chi Zhiling <chizhiling@kylinos.cn>
Subject: Re: [PATCH v1 0/5] mm/shmem: optimize read with reduced xarray lookups and folio batching
Date: Fri, 22 May 2026 09:36:54 +0800 [thread overview]
Message-ID: <ecf092ec-80d6-4851-b0bd-e05ba11074f7@163.com> (raw)
In-Reply-To: <20260521171454.02e35e71f999672518087037@linux-foundation.org>
On 5/22/26 08:14, Andrew Morton wrote:
> On Wed, 20 May 2026 18:15:33 +0800 Chi Zhiling <chizhiling@163.com> wrote:
>
>> From: Chi Zhiling <chizhiling@kylinos.cn>
>>
>> This series improves shmem read performance by implementing folio
>> batching in the read path and reducing unnecessary xarray lookups.
>>
>
> Thanks.
>
>> Performance Results
>> ===================
>>
>> Testing was performed with fio sequential read workloads:
>>
>> fio --ioengine=sync --rw=read --size=1G --runtime=180
>>
>>
>> ### THP Disabled - Normal Files ###
>>
>> | Block Size | Baseline | v1 | Improvement |
>> | ---------- | --------- | --------- | ----------- |
>> | 1M | 11.4GiB/s | 12.7GiB/s | +11.4% |
>> | 64k | 11.2GiB/s | 12.2GiB/s | +8.9% |
>> | 4k | 3809MiB/s | 3838MiB/s | +0.8% |
>>
>> ### THP Disabled - Fallocated Files ###
>>
>> | Block Size | Baseline | v1 | Improvement |
>> | ---------- | --------- | --------- | ----------- |
>> | 1M | 23.7GiB/s | 28.7GiB/s | +21.1% |
>> | 64k | 22.6GiB/s | 27.0GiB/s | +19.5% |
>> | 4k | 4668MiB/s | 4678MiB/s | +0.2% |
>>
>> ### THP Enabled - Normal Files ###
>>
>> | Block Size | Baseline | v1 | Improvement |
>> | ---------- | --------- | --------- | ----------- |
>> | 1M | 13.9GiB/s | 13.9GiB/s | 0% |
>> | 64k | 13.4GiB/s | 13.4GiB/s | 0% |
>> | 4k | 3818MiB/s | 3836MiB/s | +0.5% |
>>
>> ### THP Enabled - Fallocated Files ###
>>
>> | Block Size | Baseline | v1 | Improvement |
>> | ---------- | --------- | --------- | ----------- |
>> | 1M | 24.1GiB/s | 34.9GiB/s | +44.8% |
>> | 64k | 22.9GiB/s | 31.3GiB/s | +36.7% |
>> | 4k | 4721MiB/s | 4708MiB/s | -0.3% |
>
> That looks nice.
>
> AI review might have found a few things:
> https://sashiko.dev/#/patchset/20260520101538.58745-1-chizhiling@163.com
>
> I'll skip the patchset for now (unreviewed v1!).
Okay, I will fix those issues in v2.
Thanks!
prev parent reply other threads:[~2026-05-22 1:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 10:15 Chi Zhiling
2026-05-20 10:15 ` [PATCH v1 1/5] mm/filemap: reduce unnecessary xarray lookups when read cached pages Chi Zhiling
2026-05-20 10:15 ` [PATCH v1 2/5] mm/filemap: reduce xarray lookups in filemap_get_folios_contig() Chi Zhiling
2026-05-20 10:15 ` [PATCH v1 3/5] mm/shmem: make SGP_NOALLOC succeed on hole like SGP_READ Chi Zhiling
2026-05-25 7:10 ` Baolin Wang
2026-05-25 8:14 ` Chi Zhiling
2026-05-25 8:44 ` Baolin Wang
2026-05-20 10:15 ` [PATCH v1 4/5] mm/shmem: introduce copy_zero_to_iter() for large zeroing Chi Zhiling
2026-05-20 10:15 ` [PATCH v1 5/5] mm/shmem: optimize file read with folio batching Chi Zhiling
2026-05-25 8:37 ` Baolin Wang
2026-05-25 9:47 ` Chi Zhiling
2026-05-26 3:11 ` Baolin Wang
2026-05-26 7:12 ` Chi Zhiling
2026-06-01 11:20 ` Baolin Wang
2026-06-01 14:37 ` Chi Zhiling
2026-05-22 0:14 ` [PATCH v1 0/5] mm/shmem: optimize read with reduced xarray lookups and " Andrew Morton
2026-05-22 1:36 ` Chi Zhiling [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=ecf092ec-80d6-4851-b0bd-e05ba11074f7@163.com \
--to=chizhiling@163.com \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=chizhiling@kylinos.cn \
--cc=david@kernel.org \
--cc=dev.jain@arm.com \
--cc=hughd@google.com \
--cc=jack@suse.cz \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=npache@redhat.com \
--cc=ryan.roberts@arm.com \
--cc=willy@infradead.org \
--cc=ziy@nvidia.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