SYNOPSIS

DESCRIPTION

Hackbench is both a benchmark and a stress test for the Linux kernel
scheduler. It's main job is to create a specified number of pairs of
schedulable entities (either threads or traditional processes) which
communicate via either sockets or pipes and time how long it takes for
each pair to send data back and forth.

OPTIONS

These programs follow the usual GNU command line syntax, with long
options starting with two dashes ("--").
A summary of options is included below.

-p, --pipe

Sends the data via a pipe instead of the socket (default)

-s, --datasize=<size in bytes>

Sets the amount of data to send in each message

-l, --loops=<number of loops>

How many messages each sender/receiver pair should send

-g, --groups=<number of groups>

Defines how many groups of senders and receivers should be started

-f, --fds=<number of file descriptors>

Defines how many file descriptors each child should use.
Note that the effective number will be twice the amount you set here,
as the sender and receiver children will each open the given amount of
file descriptors.

-T, --threads

Each sender/receiver child will be a POSIX thread of the parent.

-P, --process

Hackbench will use fork() on all children (default behaviour)

--help

Shows a simple help screen

EXAMPLES

Running hackbench without any options will give default behaviour,
using fork() and sending data between senders and receivers via sockets.