diff options
author | Rongqi Sun <sunrongqi@huawei.com> | 2024-06-28 09:39:33 +0200 |
---|---|---|
committer | Rongqi Sun <sunrongqi@huawei.com> | 2024-08-12 12:10:00 +0200 |
commit | 317465c07b348d3b9c91f0295ae9db29fa4dddf6 (patch) | |
tree | bef68b3518d4e848314750492d6e9028c0828320 /CMakeLists.txt | |
parent | Merge pull request #58883 from idryomov/wip-backport-create-resourceattrerror (diff) | |
download | ceph-317465c07b348d3b9c91f0295ae9db29fa4dddf6.tar.xz ceph-317465c07b348d3b9c91f0295ae9db29fa4dddf6.zip |
uadk: add uadk support
This patch add UADK Acceleration for zlib compressor
[UADK: Userspace Acceleration Development Kit](https://github.com/Linaro/uadk)
1. Unity: one set of interfaces to support enc and comp acceleration
2. Efficiency: userspace zerocopy based on IOMMU & SVA(shared virtual address)
3. Security: the IOMMU limits the access rights and security boundaries of devices and processes
4. Compatibility: all acc devices can join this opensource project
Test on Kunpeng 920 platform, compression offload based on UadkAccel:
1. save almost 50% cpu usage compared with no-isal compression in RBD 4M workload
2. save almost 40% cpu usage compared with no-isal compression in RGW put op (4M) workload
3. lower cpu usage, better performance
Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c971eee9b2d..161a363f129 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -379,6 +379,15 @@ if(WITH_QATZIP) set(HAVE_QATZIP TRUE) endif(WITH_QATZIP) +CMAKE_DEPENDENT_OPTION(WITH_UADK "Enable UADK" ON + "CMAKE_SYSTEM_PROCESSOR MATCHES aarch64" OFF) +if(WITH_UADK) + include(Builduadk) + build_uadk() + set(HAVE_UADK TRUE) + message("HAVE_UADK " ${HAVE_UADK}) +endif(WITH_UADK) + # needs mds and? XXX option(WITH_LIBCEPHFS "libcephfs client library" ON) |