Skip to content

Using QAT on a Hygon CPU #150

Description

@zzkr7ex0f-beep

Can QAT work properly on a Hygon CPU and ensure normal performance?

Distribution Name	Kylin V10 SP3 2403
Distribution Version	9.7
Kernel Version	4.19.90-89.11.v2401.ky10.x86_64
Architecture	x86_64
qat Version	4.20.0
zfs Version       2.2.4-1

There are issues with read performance when using ZFS compression together with QAT.During the fio test, read performance drops a lot.

Image Image
--qat
mkdir -p /opt/qat
tar -xvf QAT.L.4.20.0-00001.tar.gz
./configure --enable-kapi
make -j$(nproc)
make install

--zfs
./configure --with-qat=/opt/qat
make -j$(nproc)
make install
ldconfig && depmod -a
modprobe zfs


zpool create datapool raidz /dev/nvme2n1 /dev/nvme3n1 /dev/nvme4n1 /dev/nvme5n1 -o listsnapshots=on -O atime=off -O primarycache=metadata -o ashift=12 -f
zfs create -o volblocksize=32k -o refreservation=0B -o compression=gzip -V 1000G datapool/datatest
mkfs.xfs /dev/zd0
mount /dev/zd0 /datatest

fio read 
[global]
ioengine=libaio
direct=1
runtime=60
time_based=1
numjobs=4
iodepth=8
bs=1024K
rw=read
group_reporting

buffer_compress_chunk=4096
buffer_compress_percentage=90

size=100g

[file1]
filename=/datatest/file1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions