By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux Scheduler Adapted For A Latency Win & Avoiding An RT Deadlock
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linux Scheduler Adapted For A Latency Win & Avoiding An RT Deadlock
Computing

Linux Scheduler Adapted For A Latency Win & Avoiding An RT Deadlock

News Room
Last updated: 2025/09/05 at 4:01 AM
News Room Published 5 September 2025
Share
SHARE

A patch series for the Linux kernel scheduler code is queued up for expected introduction in Linux 6.18 to defer throttle when tasks exit to user-space. These changes to switch the scheduler to a task-based throttle model and task-based throttle time accounting can provide a latency win and also address a possible deadlock situation for real-time “RT” kernels.

Queued up today in tip/tip.git’s “sched/core” Git branch are the patches for reworking the scheduler code around throttling. The status quo issue is described in the patch cover letter of defer throttle when task exits to user:

“CFS tasks can end up throttled while holding locks that other, non-throttled tasks are blocking on.

For !PREEMPT_RT, this can be a source of latency due to the throttling causing a resource acquisition denial.

For PREEMPT_RT, this is worse and can lead to a deadlock:

o A CFS task p0 gets throttled while holding read_lock(&lock)

o A task p1 blocks on write_lock(&lock), making further readers enter the slowpath

o A ktimers or ksoftirqd task blocks on read_lock(&lock)

…

To fix this issue for PREEMPT_RT and improve latency situation for !PREEMPT_RT, change the throttle model to task based, i.e. when a cfs_rq is throttled, mark its throttled status but do not remove it from cpu’s rq. Instead, for tasks that belong to this cfs_rq, when they get picked, add a task work to them so that when they return to user, they can be dequeued. In this way, tasks throttled will not hold any kernel resources. When cfs_rq gets unthrottled, enqueue back those throttled tasks.”

Patches queued

With these patches now queued into the sched/core TIP branch, this task-based throttle model work should be merged for the upcoming Linux 6.18 merge window barring no objections from Linus Torvalds or other code issues from coming to light.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article The Galaxy S26 series looks like it’s stealing from Apple and Google
Next Article Could Your Home Pay for Long-Term Care?
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

The 5 Best Tech Deals You’ll Find This Weekend From Apple, Logitech, Samsung, and More
News
Refurbished Apple Pencil Pro Now Available in U.S. at a Discount
News
Save $500 on the LG 100-inch evo AI TV, just in time for fall TV
News
Last-Minute iPhone 17 Air Leak Offers Hope For A Long-Lasting Battery – BGR
News

You Might also Like

Computing

Pop!_OS 24.04 Beta Along With COSMIC Desktop Beta In Late September

1 Min Read
Computing

The HackerNoon Newsletter: Why SaaS Pricing Pages Fail (9/5/2025) | HackerNoon

3 Min Read
Computing

You Don’t Need to Be Famous to Make Money on YouTube—You Just Need to Be Useful

26 Min Read
Computing

The Taxman Enters the Blockchain | HackerNoon

10 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?