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

Build on Linux 5.9 #7

Closed
carlosedp opened this issue Nov 16, 2020 · 3 comments
Closed

Build on Linux 5.9 #7

carlosedp opened this issue Nov 16, 2020 · 3 comments

Comments

@carlosedp
Copy link

I'm trying to perform some tests with power-gzip library and it's samples but I'm getting errors:

❯ ./test_deflate
ioctl() n -1, error 22
 open_device_nodes failed
nx_deflateInit err -2
❯ ../samples/gzm
ioctl() n -1, error 22
 open_device_nodes failed
zpipe: invalid compression level

My system is a Raptor Computing System Blackbird with a 4-core Power9.
Here is my system info:

❯ uname -a
Linux debian-blackbird 5.9.8 #1 SMP Mon Nov 16 13:17:13 -03 2020 ppc64le GNU/Linux
❯ zcat /proc/config.gz|grep _VAS
CONFIG_PPC_VAS=y
❯ zcat /proc/config.gz|grep DEV_NX
CONFIG_CRYPTO_DEV_NX=y
CONFIG_CRYPTO_DEV_NX_COMPRESS=y
CONFIG_CRYPTO_DEV_NX_COMPRESS_PSERIES=y
CONFIG_CRYPTO_DEV_NX_COMPRESS_POWERNV=y

I've built the kernel with NX enabled and added permissions to /dev/crypto/nx-gzip:

❯ ll /dev/crypto/nx-gzip
crw-rw-rw- 1 root root 248, 0 Nov 16 14:39 /dev/crypto/nx-gzip

Tried both master and develop branches but got same errors.

@tuliom
Copy link

tuliom commented Nov 16, 2020

@carlosedp I suggest to use the repository from https://github.com/libnxz/power-gzip
It has newer code that I think would solve this issue.

@carlosedp
Copy link
Author

Wow, it worked.. and it's fast:

❯ time gzip < kernel-modules-5.9.5.tar >mod.pigz.gz
gzip < kernel-modules-5.9.5.tar > mod.pigz.gz  23.30s user 0.08s system 100% cpu 23.304 total

❯ time pigz < kernel-modules-5.9.5.tar >mod.pigz.gz
pigz < kernel-modules-5.9.5.tar > mod.pigz.gz  47.07s user 0.19s system 1594% cpu 2.964 total

❯ time ~/repos/power-gzip/samples/gzm  < kernel-modules-5.9.5.tar >mod.nx.gz
~/repos/power-gzip/samples/gzm < kernel-modules-5.9.5.tar > mod.nx.gz  0.05s user 0.05s system 99% cpu 0.094 total

Thanks!

@abalib
Copy link
Owner

abalib commented Nov 16, 2020

I updated README with a redirect to the new repository @tuliom

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

3 participants