Jan Benda
2018-06-11 07:04:59 UTC
Hi,
recently I played around with the isolcpus kernel parameter (with great
success - see below). In this context I have two questions:
1. Right now I select a CPU with the isolcpus kernel parameter and then
I also need to select the same CPU for the real time task / latency test.
Is there a way to figure out which CPUs are isolated and then use this
information for making the RTAI task run on that CPU (via
rt_set_runnable_on_cpus as in kern/latency test)?
2. I need to edit the latency-module.c file to change the CPU id on
which the test is run (modifying the RUNNABLE_ON_CPUS define). It would
be very nice if this would be a parameter that can be set when loading
the module - or as of 1) if the tests would be run on the isolated CPU.
Same for all the other tests in testsuite.
Here are the kern/latency tests with isolcpus=1 and latency test running
on CPU1:
Idle condition: average jitter (lat max - lat min) 250ns, maximum < 1000ns
Under full cpu, memory, io, and network load: average jitter 1200ns, max
about 2000ns
On a Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz with RTAI 5.1,
hal-linux-4.4.115-x86-10.patch. idle-poll and tsc-reliable.
Jan
recently I played around with the isolcpus kernel parameter (with great
success - see below). In this context I have two questions:
1. Right now I select a CPU with the isolcpus kernel parameter and then
I also need to select the same CPU for the real time task / latency test.
Is there a way to figure out which CPUs are isolated and then use this
information for making the RTAI task run on that CPU (via
rt_set_runnable_on_cpus as in kern/latency test)?
2. I need to edit the latency-module.c file to change the CPU id on
which the test is run (modifying the RUNNABLE_ON_CPUS define). It would
be very nice if this would be a parameter that can be set when loading
the module - or as of 1) if the tests would be run on the isolated CPU.
Same for all the other tests in testsuite.
Here are the kern/latency tests with isolcpus=1 and latency test running
on CPU1:
Idle condition: average jitter (lat max - lat min) 250ns, maximum < 1000ns
Under full cpu, memory, io, and network load: average jitter 1200ns, max
about 2000ns
On a Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz with RTAI 5.1,
hal-linux-4.4.115-x86-10.patch. idle-poll and tsc-reliable.
Jan