libnxz / power-gzip

POWER NX zlib compliant library
22 stars 18 forks source link

NX GZIP compression library

libnxz implements a zlib-compatible API for Linux userspace programs that exploit the NX GZIP accelerator available on POWER9 and newer processors.

Packaging status

How to Use

How to Run Test

cd test
./configure
make
make check

How to Select NXs

By default, the NX-GZIP device with the nearest process to cpu affinity is selected. Consider using numactl -N 0 (or 8) to force your process attach to a particular device

How to enable log and trace for debug

The default log will be /tmp/nx.log. Use export NX_GZIP_LOGFILE=your.log to specify a different log. By default, only errors will be recorded in log.

Use export NX_GZIP_VERBOSE=2 to record the more information.

Use export NX_GZIP_TRACE=1 to enable logic trace.

Use export NX_GZIP_TRACE=8 to enable statistics trace.

Supported Functions List

All the zlib supported functions are listed and described at libnxz.h.

If want to use nxzlib standalone, add a prefix 'nx_' before the function. For example, use nx_compress instead of compress.

Code organization