Skip to content
NUTIMES
Menu
  • Home
  • HOME IMPROVEMENT
  • Fitness
  • MOVIE
  • FASHION
  • TECHNOLOGY
  • LAW AND FIRM
  • About Us
    • Advertise Here
    • Contact Us
    • Privacy Policy
    • Sitemap
Menu
The Linux Scheduler And How It Handles More Cores

The Linux Scheduler And How It Handles More Cores

Posted on November 16, 2023

Sometimes you read an article headline and you find yourself re-reading it a few times before diving into the article. This was definitely the case for a recent blog post by [The HFT Guy], where the claim was made that the Linux kernel has for fifteen years now been hardlocked into not scheduling for more than 8 cores. Obviously this caused a lot of double-checking and context discovery on both Hacker News and the Level 1 Techs forum. So what is going on exactly? Did the Linux developers make an egregious error more than a decade ago that has crippled Linux performance to this day?

Where the blog author takes offence is in the claim made in the Linux kernel code and documentation that the base time slice scales with the number of CPUs (or cores), pointing out the commit in which the number of CPUs taken into account was limited to a maximum of 8. So far so good, even if at this point quite a few readers had already jumped to showing that their Linux system could definitely load more than 8 cores to 100%.

As pointed out by [sirn] on the Level 1 Techs forum, this limit was intentional, as discussed on the Linux Kernel mailing list (LKML) in November and December of 2009. Essentially – as also pointed out by a few commentators in the Hacker News thread – the granularity of task switching (time slices per second) should be higher with fewer cores, to give the impression of concurrency, which becomes less important with more cores, where diminishing returns – around the 8 CPU mark – mean that task switching overhead becomes more crucial.

That means that this ‘hardcoded limit’ was put in there on purpose back in 2009, based on solid empirical evidence using many-core workstations and servers. It also shows that writing good schedulers is hard, which is why the LKML is famous for its Scheduler Wars and why you can pick alternative schedulers if you compile your own kernel. The current Completely Fair Scheduler (CFS) is also likely going to be replaced in the Linux kernel with the EEVDF scheduler as the default.

Related Posts:

  • A Unmarried Board Laptop From A TV
  • Easy Hackintosh With Docker-OSX: Soon To Be Impossible?
  • Cat9 And LASH Need To Alternate Your Linux Command Line
  • Real Estate & Construction News Round-Up (11/09/22)…
  • Need To Play With FPGAs? Use Your Pico!
  • Rope Core Drum Gadget | Hackaday

Recent Posts

  • Protecting Your Rights: Top Domestic Violence Attorney in San Bernardino
  •  Decoding Forex Jargon: A Comprehensive Guide
  • Exploring the World with Wayfarer: The Ultimate Travel Companion
  • Unlocking the Hidden Gems of [Destination]: A Traveler’s Guide
  • Revamp Your Living Space: Top Interior Design Trends for 2022

Categories

  • Automotive
  • FASHION
  • Fitness
  • Forex
  • HOME IMPROVEMENT
  • LAW AND FIRM
  • MOVIE
  • TECHNOLOGY
  • Traveling

Archives

  • June 2024
  • May 2024
  • April 2024
  • February 2024
  • December 2023
  • November 2023
  • October 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

BL

fashion beauty
©2025 NUTIMES | Design: Newspaperly WordPress Theme