News for hackers. Stuff that matters.
Re:Debugging Audio Artifacts Caused by a Serial Port? by PaulDavisThe1st on Monday October 28, 2024 @04:09PM (#41975656)
> There are a few processes in the bot that are especially latency sensitive, which we have tuned the nice value for.

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.

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).
Re:Debugging Audio Artifacts Caused by a Serial Port? by rcxdude on Tuesday October 29, 2024 @06:49AM (#41982393)
True, but that's very recent, and still not a default configuration. (And the message reported in the article was removed from the mainline kernel in 2018)