LWN: Comments on "Low latency for audio applications" https://lwn.net/Articles/120797/ This is a special feed containing comments posted to the individual LWN article titled "Low latency for audio applications". en-us Thu, 18 Sep 2025 13:44:18 +0000 Thu, 18 Sep 2025 13:44:18 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Low latency for audio applications https://lwn.net/Articles/122022/ https://lwn.net/Articles/122022/ farnz There is no way for the kernel to accurately gauge the needs of a real-time application. Given a simple enough case, the developers of the application can determine what it needs, and require that users set the cap high enough, but in the general case, this is not possible. <p>No matter what the kernel does, if you want more CPU power than is available, you're doomed; all the isosynchronous patches do is limit the available CPU power to less than flat-out, allowing an admin to recover if a realtime process runs away. The solution is the same as in any other realtime system; get a faster processor. Thu, 03 Feb 2005 17:52:11 +0000 Low latency for audio applications https://lwn.net/Articles/122016/ https://lwn.net/Articles/122016/ acristianb Real time apps need realtime processing. They do not care if that takes 50% or 70% of the CPU. I think the isoschmiso classes are just teasing the apps in that they are promising them CPU bandwith but not realy guaranteeing that. I think a better approach would be to measure what are the needs of a realtime application and compute at application start time if a CPU bandwidth can be guaranteed for it and if not to exit right there with an error message or start NORMAL and notify the user of this.<br> Thu, 03 Feb 2005 17:10:05 +0000 Low latency for audio applications https://lwn.net/Articles/120985/ https://lwn.net/Articles/120985/ mwalls Another group that really cares about these patches are the video people (mythtv and relatives). Same problem even greater CPU load issues.<br> Thu, 27 Jan 2005 17:29:41 +0000 Low latency for audio applications https://lwn.net/Articles/120904/ https://lwn.net/Articles/120904/ farnz It is rocket science; if his app exceeds 100% CPU usage, he's not getting what he wants, and there's nothing a better kernel can do about it. As exceeding 100% CPU is going to lock up his machine, the patch allows a musician to set a limit, and then <b>if</b> his realtime applications are going to lock his machine up, the kernel drops their realtimeness, thus giving a musician a chance of recovering. Without this mechanism, the machine can lock hard, and there's no way to discover why, or to recover. <p>As a simple example of when this helps; a soft synth is normally a realtime application (MIDI in -> Waveform out). When running, a soft synth doesn't take that much CPU; if it did, it wouldn't work. If your algorithm fails, and causes the synth to run away in an endless loop (bad validation of input MIDI data, for example), you're doomed if it can take 100% CPU. If all your RT tasks are limited to 95% CPU between them, you can fire up "top", notice that the soft synth has gone from around 5% CPU to around 90% CPU, and kill it. Thu, 27 Jan 2005 10:55:52 +0000 Low latency for audio applications https://lwn.net/Articles/120900/ https://lwn.net/Articles/120900/ gnb Because you need to say what it is you want. If there isn't enough CPU <br> to meet all requirements, someone needs to decide on a trade-off and <br> not all users will want the same things: should the RT apps remain <br> RT even if this makes all the non-RT ones completely unuseable? Surely <br> the user should make that decision rather than the kernel? Or, as other <br> people have more concisely put it, the kernel provides mechanism, not <br> policy. <br> Thu, 27 Jan 2005 09:54:21 +0000 Low latency for audio applications https://lwn.net/Articles/120897/ https://lwn.net/Articles/120897/ alonso Set the limit at 100%... and be happy<br> <p> Thu, 27 Jan 2005 08:48:37 +0000 Low latency for audio applications https://lwn.net/Articles/120884/ https://lwn.net/Articles/120884/ xorbe Except that, a musician is not going to be happy when his<br> app exceeds "80%" and gets dropped back into the normal<br> realm of scheduling. How come these people can't just be<br> fed a kernel that does what they want? It's not rocket<br> science.<br> Thu, 27 Jan 2005 07:12:49 +0000