list RT processes with policies click to copy
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan,comm
Show all processes with scheduling class (FF/RR/TS), RT priority, and CPU assignment.
watch RT processes live click to copy
watch -n0.5 'ps -eo pid,class,rtprio,comm | grep -v TS'
Refresh every 0.5 s showing only non-SCHED_OTHER (i.e. RT) tasks and their priorities.
tuna — show thread/IRQ overview click to copy
tuna --show_threads
Display all threads with scheduling policy, priority, and affinity in one table.
CPU topology overview click to copy
lscpu
Show socket/core/thread topology, cache sizes, NUMA config. Essential for planning CPU isolation layout.
visualise NUMA/CPU topology click to copy
lstopo --of ascii
ASCII diagram of the full hardware topology (hwloc package). Helps plan NUMA-aware affinity.
check kernel timer frequency (HZ) click to copy
grep CONFIG_HZ= /boot/config-$(uname -r)
RT kernels are typically built at HZ=1000 (1 ms tick). Lower HZ means coarser sleep granularity.
live context switches & interrupts click to copy
vmstat 1
Column cs = context switches/s, in = interrupts/s. Both should be minimal on isolated RT CPUs.
monitor CPU C-states & frequency click to copy
turbostat --interval 1 --quiet
Per-CPU frequency, C-state residency, and power. Verify RT cores stay at full frequency in C0.