This repo contains the code to test I/O roundtrip times on a POSIX system. Currently shared memory is implemented as a data exchange method.
Simply run
./make.sh
cd build/master
./master
The master process sets up a POSIX shared memory (basically a mmap
ed file
on tmpfs) and starts the worker process.
Then the master process fills the shared memory with a number of integers and
notifies the worker through STDIN
when everything is prepared. The worker
then calculates the sum of the numbers and reports it back through STDOUT
.
This process is repeated a few times. The master
process measures and shows
the average response time.
MIT. (see LICENSE
file)