-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB uses zstd and QATzip #12
Comments
Yes, MongoDB can use qat to accelerate the compression |
Thank you very much for your answer. I'm curious whether I should use QATlib+QATzip or directly use QAT-ZSTD-Plugin after installing the driver. |
你是想使用QAT加速mongdb中的ZSTD吗?如果是的,不用安装qatzip,需要安装qatlib和qat zstd plugin, 然后参考https://github.com/intel/QAT-ZSTD-Plugin?tab=readme-ov-file#how-to-integrate-qat-sequence-producer-into-applications 这部分添加一些代码 |
Thanks, and I would also like to ask if I need to install both Intel® QAT Driver for Linux* Hardware v2.0 and QATlib? I am using the latest 6.9.7 kernel for testing and I am not sure what will happen next. |
it seems that you are using QAT OOT package, you can refer to https://intel.github.io/quickassist/GSG/2.X/installation.html, you don't need to install QATlib(https://github.com/intel/qatlib), it is for QAT In-tree software package |
Oh, that's really unfortunate. After installing the qat_4xxx module in the kernel, I tried to install it using the package mentioned in the link. I encountered the following error when making: Aug 26 12:18:08 example[1]: Starting qat.service - QAT service... |
Sorry, the problem with ZSTD-Plugin has not been solved yet. I tried to find the three APIs you mentioned in Mongo, but there was no result. It seems that Mongo's WiredTiger does not call these three APIs? |
Could you try to use ZSTD_compress2 or ZSTD_compressStream2 to replace the API called by Mongo? |
Thanks for your reply! How to integrate QAT sequence producer into zstd Then the zstd module was successfully compiled and run. However, when I performed a simple performance test on the zstd module with QAT-ZSTD-Plugin added, I found that the compression time of multiple test samples was much higher than that of the normal zstd module compiled with the same source code. This is very puzzling, but I still continue to try to compile MongoDB directly to verify whether this set of processes can succeed - even if the performance of the zstd module with QAT is not normal. |
for the performance, you can refer to https://community.intel.com/t5/Blogs/Tech-Innovation/Artificial-Intelligence-AI/Intel-QuickAssist-Technology-Zstandard-Plugin-an-External/post/1509818 |
I would like to know if, when using MongoDB and switching to the zstd compression algorithm, I can use this plugin to call QAT hardware?
The text was updated successfully, but these errors were encountered: