Coder Social home page Coder Social logo

abalib / power-gzip Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 4.0 1.88 MB

POWER9 gzip engine documentation and code samples

C 81.43% C++ 0.52% Makefile 0.32% Shell 0.02% Assembly 2.55% Objective-C 15.16%
accelerator compression decompression deflate gzip power9 powerpc zlib

power-gzip's People

Contributors

abalib avatar adamliyi avatar bedrisendir avatar davidzengxhsh avatar liyi-ibm avatar rzinsly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

power-gzip's Issues

User Space access to NX-842 in Linux via VAS?

Dear Bulent,

in https://github.com/abalib/power-gzip/wiki/NX-842-compression-accelerator, you wrote that the NX-842 is only accessible from Kernel space. Would it be possible to expose the NX-842 to user space analogue to what you did with NX-GZIP?

Could the changes you applied to skiboot and the Linux kernel be "re-used" for the NX-842, or do you expect major differences in exposing the hardware, e.g. as /dev/crypto/nx-842?

Thank you very much for your feedback :-)

Build on Linux 5.9

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.

NX842 user space in AIX 7.1 on Power8

Hello Bulent

Do you have any information about availability of user space compression tools for AIX or RHEL linux running on the Power8 platform?

I am familiar with the DB2 for AIX hw compression feature per https://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102732

we are interested in a more generic use for compressing large volumes of text files on the Power8. It appears that the required kernel hardware hooks may be available in AIX 7.1 TL3 and higher

I would appreciate your feedback

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.