Skip to content

igzip/aarch64: optimize deflate level 3 performance - #432

Open
zl523856 wants to merge 1 commit into
intel:masterfrom
zte-riscv:arm-deflate
Open

igzip/aarch64: optimize deflate level 3 performance#432
zl523856 wants to merge 1 commit into
intel:masterfrom
zte-riscv:arm-deflate

Conversation

@zl523856

Copy link
Copy Markdown

The aarch64 platform provides an assembly-optimized implementation of gen_icf_map_h1_aarch64. However, this optimized path was not correctly enabled for deflate compression level 3. After correcting the invocation logic, deflate throughput increased by 11%.

This optimization has been validated with igzip_perf on the ZXIC(R) ZhuFengXin Processor platform:
./igzip/igzip_perf -f 3 -y 0 -b 1024 silesia.tar (11% performance improvement)
new:
file info-> name: silesia.tar file_size: 211957760 compress_size: 75671749 ratio: 35.70%
isal_stateful_deflate-> runtime = 3623708 usecs, bandwidth 423 MB in 3.6237 sec = 116.98 MB/s
old:
file info-> name: silesia.tar file_size: 211957760 compress_size: 75699582 ratio: 35.71%
isal_stateful_deflate-> runtime = 4029556 usecs, bandwidth 423 MB in 4.0296 sec = 105.20 MB/s

All tests successful:
PASS: igzip/igzip_rand_test

The aarch64 platform provides an assembly-optimized implementation of gen_icf_map_h1_aarch64. However, this optimized path was not correctly enabled for deflate compression level 3. After correcting the invocation logic, deflate throughput increased by 11%.

This optimization has been validated with igzip_perf on the ZXIC(R) ZhuFengXin Processor platform:
./igzip/igzip_perf -f 3 -y 0 -b 1024 silesia.tar  (11% performance improvement)
new:
  file info-> name: silesia.tar file_size: 211957760 compress_size: 75671749 ratio: 35.70%
    isal_stateful_deflate->  runtime =    3623708 usecs, bandwidth 423 MB in 3.6237 sec = 116.98 MB/s
old:
  file info-> name: silesia.tar file_size: 211957760 compress_size: 75699582 ratio: 35.71%
    isal_stateful_deflate->  runtime =    4029556 usecs, bandwidth 423 MB in 4.0296 sec = 105.20 MB/s

All tests successful:
PASS: igzip/igzip_rand_test

Signed-off-by: zhoulu <zhou.lu1@zte.com.cn>
@pablodelara

Copy link
Copy Markdown
Contributor

@liuqinfei could you review this PR? Thanks!

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

Successfully merging this pull request may close these issues.

2 participants