Run doca_bench decompress on a host as a steady engine load
When to use#
You want a second client on a BlueField or ConnectX compress engine, for example to cause contention for another program, with NVIDIA's own doca_bench and no code of your own.
Steps#
Make one raw-deflate input file (no zlib or gzip header). Python's
zlibwithwbits=-15writes one:Use the
file-setdata provider with a list file. Thefileprovider cuts the input into equal jobs: it needs--uniform-job-sizeand fails without it ("Uniform data size must not be 0 when using file data provider"), and a slice of a deflate stream is not valid deflate input.Name the algorithm with an attribute. Without it the step fails with "Unable to create DOCA Compress instance. No algorithm selected."
Give an output buffer as large as the uncompressed job, pin the worker with
--core-list, and bound the run with--run-limit-seconds:Use the DOCA install that has the compress library. A DOCA tree that lacks it fails with "doca_compress library is not installed", because doca_bench opens the library at run time.
Evidence#
Built for the dpucrumbs hidden-cause cells on an x86 host with a BlueField-3 (system DOCA 3.2). The file provider and a missing algorithm attribute failed with the messages above. A staged DOCA 3.0 tree with only common, argp and rdma libraries failed with "doca_compress library is not installed". The steps above ran 201,182 jobs in 5 s (40,210 ops/s). Run beside an HDF5 reader on the same engine, it slowed the reader's chunk time from 630 to 3757 us.
Also found by searching
- Uniform data size must not be 0 when using file data provider
- Unable to create DOCA Compress instance. No algorithm selected.
- doca_compress library is not installed
- how do I run doca_bench decompress in a loop as a load generator