env: 非RT-kernel 4.4
root@ubuntu-daisy:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-36-generic root=UUID=efd67e19-78b1-41ca-bf3f-353fc44c015a ro isolcpus=1-35 irqaffinity=0 clocksource=tsc tsc=perfect nohz_full=1-35 intel_idle.max_cstate=0 processor.max_cstate=1 idle=mwait
host rt performance:
root@ubuntu-daisy:~# !1334
taskset -c 1 cyclictest -t1 -p 99 -n -i 1000 -l 60000
# /dev/cpu_dma_latency set to 0us
policy: fifo: loadavg: 0.00 0.04 0.09 1/484 6589
T: 0 ( 6589) P:99 I:1000 C: 5746 Min: 1 Act: 2 Avg: 2 Max: 3
docker run cmd:
docker run -it --cap-add=sys_nice --rm --cpuset-cpus=10-15 bamboojsr/ubuntu-rt-tests /bin/bash
root@2075f3842c20:/# taskset -c 10 cyclictest -t1 -p 99 -n -i 1000 -l 60000
WARN: stat /dev/cpu_dma_latency failed: No such file or directory
policy: fifo: loadavg: 0.00 0.02 0.08 1/505 15
T: 0 ( 15) P:99 I:1000 C: 4288 Min: 2 Act: 2 Avg: 2 Max: 4