-
Notifications
You must be signed in to change notification settings - Fork 4
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
FLAGS_compression_parallel_threads of IAA #6
Comments
Hi. That option enables multiple threads for compression. So, there will be multiple threads submitting compression jobs to IAA, allowing higher utilization of the devices. |
Thank you for your reply. In addition, I would like to ask two more questions: Parallelism of IAA: How is the parallelism of IAA? How can I view its maximum parallelism? Is there any relevant documentation to support it? |
The IAA spec has more information on the architecture. There is a link on the IAA page. To set IAA compression per level, you can use the compressor_per_level option added in PR 6717. It takes a vector of compressors (colon-separated). For each compressor, the syntax is the same as when setting the compressor option. For example: |
I find the flag QPL_FLAG_ZLIB_MODE suppots adding ZLIB header and trailer information to raw Deflate stream from IAA. Thank you! |
Both the zlib library and QPL support 3 formats: deflate raw (no header/trailer), zlib (raw + zlib header/trailer), and gzip (raw + gzip header/trailer). The IAA-compressed blocks can technically be decompressed by zlib, but that selection is not currently possible in RocksDB. The compressed blocks have compression type id set to the IAA plugin, and RocksDB will use the corresponding Compressor to decompress the blocks (the zlib Compressor has a different id). Compatibility across compressors is currently not supported, although we are looking into options to enable this (e.g., have an accelerated version of the zlib Compressor). compressor_per_level won't achieve that. Data may be decompressed with zlib at one level and recompressed with IAA at the next level or vice versa. However, the data at a certain level will always be handled by the same Compressor for compression and decompression. |
I found a parameter called
FLAGS_compression_parallel_threads
indb_bench_tool
. When using IAA as the compression type, settingFLAGS_compression_parallel_threads
to a value greater than 1 significantly improves compression performance.I would like to ask:
My CPU is: Intel(R) Xeon(R) Gold 5420+
The text was updated successfully, but these errors were encountered: