Skip to content
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

Support history buffer to improve compression ratio #8

Open
skyskyhu opened this issue Mar 20, 2024 · 1 comment
Open

Support history buffer to improve compression ratio #8

skyskyhu opened this issue Mar 20, 2024 · 1 comment

Comments

@skyskyhu
Copy link

skyskyhu commented Mar 20, 2024

Rectently I integrated the zstd plugin with intel QAT hardware acceleration. The hardware acceleration speed is siginificantly faster than that of software compression. However, my primary objective is to reducue total storage size and cost using zstd compression. For all testing files, I observed that the compression result of hardware acceleration is lower than software compression as shown below. I suspect this is caused by the limitation of zstd hardware acceleration doucmented at the link and link. History buffers are not currently supported, resulting in a lower hardware compression ratio compared to software compression. I am wondering if there is any plan to support history buffers in zstd hardware acceleration in the near future. Thanks!

hardware compression with level 12

./benchmark -m1 -l10 -c64K -t5 -E2 -L12 1.txt
Thread 1: Compression: 446020002 -> 130257784, Throughput: Comp: 508 MB/s, Decomp: 1273 MB/s, Compression Ratio: 29.20%, PASS

software compression with level 12

./benchmark -m0 -l10 -c64K -t5 -E2 -L12 1.txt
Thread 1: Compression: 446020002 -> 120037796, Throughput: Comp: 39 MB/s, Decomp: 1350 MB/s, Compression Ratio: 26.91%, PASS

software compression with level 9

./benchmark -m0 -l10 -c64K -t5 -E2 -L9 1.txt
Thread 1: Compression: 446020002 -> 120318010, Throughput: Comp: 99 MB/s, Decomp: 1341 MB/s, Compression Ratio: 26.98%, PASS

@embg
Copy link

embg commented Mar 31, 2024

There is some discussion here: facebook/zstd#3970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants