You are here: Home / Support / HOWTOs / 
2018-03-22 - 01:30

HOWTO: Latency Generator (used for calibration purposes)


Download the file archive blocksys-0.4.tgz and type:

tar -zxvf blocksys-0.4.tgz
cd blocksys-0.4
modprobe blocksys

Then run the application


or, alternatively, a shell script with the same functionality


Check out the generated latency:

tail /var/log/messages
[..] kernel: blocksys: CPU #0 will be blocked for 2000000 nops
[..] kernel: blocksys: CPU #0 blocked about 1270 us

You may then wish to check and to calibrate latency analysis tools such as cyclictest or the OSADL Latency Measurement Box by executing mklatency or while these tools are running. The CYCLES constant in the mklatency.c source file and the $nops shell variable in define the duration of the latency.