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
Linux Scheduler Adapted For A Latency Win & Avoiding An RT Deadlock
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 The Galaxy S26 series looks like it’s stealing from Apple and Google
Next Article Could Your Home Pay for Long-Term Care? 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

‘New York City Has Fallen’: MAGA Responds to Zohran Mamdani’s Victory With a Racist Freak-Out
‘New York City Has Fallen’: MAGA Responds to Zohran Mamdani’s Victory With a Racist Freak-Out
Gadget
University of Pennsylvania confirms hacker stole data during cyberattack |  News
University of Pennsylvania confirms hacker stole data during cyberattack | News
News
9 New Features That Make The iPhone 17 A Compelling Upgrade – BGR
9 New Features That Make The iPhone 17 A Compelling Upgrade – BGR
News
Samsung Galaxy S26 Series India Launch Timeline Leaks: Here’s What To Expect
Samsung Galaxy S26 Series India Launch Timeline Leaks: Here’s What To Expect
Mobile

You Might also Like

Seattle startup unveils AI-powered enterprise smart glasses for roofers and electricians
Computing

Seattle startup unveils AI-powered enterprise smart glasses for roofers and electricians

2 Min Read
Linux 6.19 To Support Additional Arm Mali & Vivante Graphics Hardware
Computing

Linux 6.19 To Support Additional Arm Mali & Vivante Graphics Hardware

2 Min Read
Blak Dave: Inside the tech life of a developer and DJ
Computing

Blak Dave: Inside the tech life of a developer and DJ

17 Min Read
100+ Tasty Thanksgiving Puns to Bake into Seasonal Promos | WordStream
Computing

100+ Tasty Thanksgiving Puns to Bake into Seasonal Promos | WordStream

9 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?