LWN: Comments on "ELC: A PREEMPT_RT roadmap" https://lwn.net/Articles/440064/ This is a special feed containing comments posted to the individual LWN article titled "ELC: A PREEMPT_RT roadmap". en-us Sat, 04 Oct 2025 13:55:01 +0000 Sat, 04 Oct 2025 13:55:01 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net ELC: A PREEMPT_RT roadmap https://lwn.net/Articles/441152/ https://lwn.net/Articles/441152/ i3839 <div class="FormattedComment"> <font class="QuotedText">&gt; The realtime developers have talked with the per-CPU folks and they</font><br> <font class="QuotedText">&gt; "see our pain". The right solution is use inline functions to annotate</font><br> <font class="QuotedText">&gt; the real atomic accesses, so that the preemption-disabled window can</font><br> <font class="QuotedText">&gt; be reduced. "Right now, there is a massive amount of code protected</font><br> <font class="QuotedText">&gt; by preempt_disable()", he said.</font><br> <p> Hm, to me it seems something else than preemption disable is needed <br> for this situation.<br> <p> What is wanted is to atomically change some data, in a very fast way.<br> To achieve this, the data is kept per-CPU, so no concurrent access<br> happens, and preemption is disabled to avoid being interrupted by <br> another task on the same CPU touching the same data.<br> <p> But what's really needed is avoiding preemption by tasks that would<br> touch the same data, being preempted by other tasks is fine.<br> <p> So instead of using preemption, something more alike to coroutines<br> can be used: Have a per-CPU data region task ID, used as a kind of<br> lockless lock. When a task wants to access per-CPU data, it checks<br> the ID first. If it already is set, it schedules to that task. If<br> not, it writes its own ID atomically (but without lock prefix) and <br> can access the data safely. It's basically a per-CPU mutex with<br> special properties.<br> <p> That said, reducing the preemption-disabled window is always good.<br> <p> </div> Tue, 03 May 2011 16:29:18 +0000 ELC: A PREEMPT_RT roadmap https://lwn.net/Articles/441074/ https://lwn.net/Articles/441074/ dashesy <div class="FormattedComment"> I subscribed to LWN specially to to read this article, and hopefully more and more -rt related articles to come.<br> </div> Mon, 02 May 2011 19:08:30 +0000