You are here: Home / Support / HOWTOs / 
2021-10-26 - 09:50

Dates and Events:

OSADL Articles:

2021-09-06 12:00

"OSADL Track" at EWC 2022: Call for Papers

All about legal and technical issues and solutions when using Open Source software in industry


2021-02-09 12:00

Open Source OPC UA PubSub over TSN project phase #3 launched

Letter of Intent with call for participation is now available


2016-11-12 12:00

Raspberry Pi and real-time Linux

Let's have a look at the OSADL QA Farm data


2016-09-17 12:00

Preemption latency of real-time Linux systems

How to measure it – and how to fix it, if it's too high?



OSADL HOWTOs

HOWTO: Latency Generator (used for calibration purposes)

Quick HOWTO

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

tar -xf blocksys-0.5.tgz
cd blocksys-0.5
make
modprobe blocksys

Then run the application

./mklatency

or, alternatively, a shell script with the same functionality

./mklatency.sh

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 mklatency.sh while these tools are running. The CYCLES constant in the mklatency.c source file and the $nops shell variable in mklatency.sh define the duration of the latency.