public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] erofs: support deflate decompress by using Intel QAT
@ 2025-04-10  4:20 Bo Liu
  2025-04-10  4:20 ` [PATCH 1/2] erofs: remove duplicate code Bo Liu
  2025-04-10  4:20 ` [PATCH 2/2] erofs: support deflate decompress by using Intel QAT Bo Liu
  0 siblings, 2 replies; 7+ messages in thread
From: Bo Liu @ 2025-04-10  4:20 UTC (permalink / raw)
  To: xiang, chao; +Cc: linux-erofs, linux-kernel, Bo Liu

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   |    65536     |    452  MiB/s   | 177 MiB/s |     11.44 MiB/s    |
| deflate   |    262144    |    466  MiB/s   | 194 MiB/s |     10.60 MiB/s    |

Bo Liu (2):
  erofs: remove duplicate code
  erofs: support deflate decompress by using Intel QAT

 fs/erofs/decompressor_deflate.c | 145 +++++++++++++++++++++++++++++++-
 fs/erofs/internal.h             |   1 +
 fs/erofs/sysfs.c                |  30 +++++++
 fs/erofs/zdata.c                |   1 -
 4 files changed, 175 insertions(+), 2 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-05-13  5:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10  4:20 [PATCH 0/2] erofs: support deflate decompress by using Intel QAT Bo Liu
2025-04-10  4:20 ` [PATCH 1/2] erofs: remove duplicate code Bo Liu
2025-04-10  5:34   ` Gao Xiang
2025-04-10  4:20 ` [PATCH 2/2] erofs: support deflate decompress by using Intel QAT Bo Liu
2025-04-11  6:30   ` kernel test robot
2025-04-11  7:44   ` kernel test robot
2025-05-13  5:47   ` Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox