Re:Debugging Audio Artifacts Caused by a Serial Port?
by rcxdude on Monday October 28, 2024 @08:48PM
(#41978233)
I think in this case, unless they were running an RT kernel, it wouldn't have helped, since the interrupt hogging the CPU was non-preemptable. But it's good advice in general.
Re:Debugging Audio Artifacts Caused by a Serial Port?
by PaulDavisThe1st on Tuesday October 29, 2024 @12:03AM
(#41979259)
RT is in the mainline kernel now. Run with threaded_irqs, all interrupt handlers become preemptable (by default).
This immediately signifies some level of "does not understand how this stuff works". Latency sensitive (audio or other) tasks need to be in the SCHED_RR or SCHED_FIFO scheduling class, which nice(1) has no effect on.
Conversely, using nice(1) on a SCHED_OTHER task is also unlikely to work, given that nice only impacts scheduling decisions and cannot provide RT-like behavior.