From: "Bo Liu (刘波)-浪潮信息" <liubo03@inspur.com>
To: "hsiangkao@linux.alibaba.com" <hsiangkao@linux.alibaba.com>,
"xiang@kernel.org" <xiang@kernel.org>,
"chao@kernel.org" <chao@kernel.org>
Cc: "linux-erofs@lists.ozlabs.org" <linux-erofs@lists.ozlabs.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v5] erofs: support deflate decompress by using Intel QAT
Date: Thu, 22 May 2025 08:08:02 +0000 [thread overview]
Message-ID: <f245b9edfc1b4205804c415cc0608558@inspur.com> (raw)
In-Reply-To: <49ca7ddc-4ea7-4081-84ee-609a23b815e4@linux.alibaba.com>
[-- Attachment #1: Type: text/plain, Size: 4581 bytes --]
>-----Original Message-----
>From: Gao Xiang <hsiangkao@linux.alibaba.com>
>Sent: Thursday, May 22, 2025 3:54 PM
>To: Bo Liu (刘波)-浪潮信息 <liubo03@inspur.com>; xiang@kernel.org;
>chao@kernel.org
>Cc: linux-erofs@lists.ozlabs.org; linux-kernel@vger.kernel.org
>Subject: Re: [PATCH v5] erofs: support deflate decompress by using Intel QAT
>
>Hi Bo,
>
>On 2025/5/22 14:16, Bo Liu wrote:
>> This patch introdueces the use of the Intel QAT to decompress
>> compressed data in the EROFS filesystem, aiming to improve the
>> decompression speed of compressed datea.
>>
>> We created a 285MiB compressed file and then used the following
>> command to create EROFS images with different cluster size.
>> # mkfs.erofs -zdeflate,level=9 -C16384
>>
>> fio command was used to test random read and small random read(~5%)
>> and sequential read performance.
>> # fio -filename=testfile -bs=4k -rw=read -name=job1
>> # fio -filename=testfile -bs=4k -rw=randread -name=job1
>> # fio -filename=testfile -bs=4k -rw=randread --io_size=14m
>> -name=job1
>>
>> Here are some performance numbers for reference:
>>
>> Processors: Intel(R) Xeon(R) 6766E(144 core)
>> Memory: 521 GiB
>>
>> |-----------------------------------------------------------------------------|
>> | | Cluster size | sequential read | randread | small
>> | randread(5%) |
>> |-----------|--------------|-----------------|-----------|--------------------|
>> | Intel QAT | 4096 | 538 MiB/s | 112 MiB/s | 20.76
>MiB/s |
>> | Intel QAT | 16384 | 699 MiB/s | 158 MiB/s | 21.02
>MiB/s |
>> | Intel QAT | 65536 | 917 MiB/s | 278 MiB/s | 20.90
>MiB/s |
>> | Intel QAT | 131072 | 1056 MiB/s | 351 MiB/s | 23.36
>MiB/s |
>> | Intel QAT | 262144 | 1145 MiB/s | 431 MiB/s | 26.66
>MiB/s |
>> | deflate | 4096 | 499 MiB/s | 108 MiB/s | 21.50
>MiB/s |
>> | deflate | 16384 | 422 MiB/s | 125 MiB/s | 18.94
>MiB/s |
>> | deflate | 65536 | 452 MiB/s | 159 MiB/s | 13.02
>MiB/s |
>> | deflate | 131072 | 452 MiB/s | 177 MiB/s | 11.44
>MiB/s |
>> | deflate | 262144 | 466 MiB/s | 194 MiB/s | 10.60
>MiB/s |
>>
>> Signed-off-by: Bo Liu <liubo03@inspur.com>
>> ---
>> v1:
>> https://lore.kernel.org/linux-erofs/20250410042048.3044-1-liubo03@insp
>> ur.com/
>> v2:
>> https://lore.kernel.org/linux-erofs/20250410042048.3044-1-liubo03@insp
>> ur.com/T/#t
>> v3:
>> https://lore.kernel.org/linux-erofs/20250516082634.3801-1-liubo03@insp
>> ur.com/
>> v4:
>> https://lore.kernel.org/linux-erofs/20250521100326.2867828-1-hsiangkao
>> @linux.alibaba.com/
>> change since v4:
>> - add sysfs documentation.
>>
>> Documentation/ABI/testing/sysfs-fs-erofs | 12 ++
>> fs/erofs/Kconfig | 14 ++
>> fs/erofs/Makefile | 1 +
>> fs/erofs/compress.h | 10 ++
>> fs/erofs/decompressor_crypto.c | 186
>+++++++++++++++++++++++
>> fs/erofs/decompressor_deflate.c | 17 ++-
>> fs/erofs/sysfs.c | 34 ++++-
>> fs/erofs/zdata.c | 1 +
>> 8 files changed, 272 insertions(+), 3 deletions(-)
>> create mode 100644 fs/erofs/decompressor_crypto.c
>>
>> diff --git a/Documentation/ABI/testing/sysfs-fs-erofs
>> b/Documentation/ABI/testing/sysfs-fs-erofs
>> index b134146d735b..95201a62f704 100644
>> --- a/Documentation/ABI/testing/sysfs-fs-erofs
>> +++ b/Documentation/ABI/testing/sysfs-fs-erofs
>> @@ -27,3 +27,15 @@ Description: Writing to this will drop
>compression-related caches,
>> - 1 : invalidate cached compressed folios
>> - 2 : drop in-memory pclusters
>> - 3 : drop in-memory pclusters and cached compressed folios
>> +
>> +What: /sys/fs/erofs/accel
>> +Date: May 2025
>> +Contact: "Bo Liu" <liubo03@inspur.com>
>> +Description: The accel file is read-write and allows to set or show
>> + hardware decompression accelerators, and it supports writing
>> + multiple accelerators separated by ‘\n’.
>
> Used to set or show hardware accelerators in effect and multiple
> accelerators are separated by '\n'.
>
> Supported accelerator(s): qat_deflate
>
> Disable all accelerators with an empty string (echo > accel).
>
>> + Currently supported accelerators:
>
>...
OK, I will make some changes
Thanks
Bo Liu
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3816 bytes --]
prev parent reply other threads:[~2025-05-22 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 6:16 [PATCH v5] erofs: support deflate decompress by using Intel QAT Bo Liu
2025-05-22 7:54 ` Gao Xiang
2025-05-22 8:08 ` Bo Liu (刘波)-浪潮信息 [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=f245b9edfc1b4205804c415cc0608558@inspur.com \
--to=liubo03@inspur.com \
--cc=chao@kernel.org \
--cc=hsiangkao@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.