"The min_granularity setting was renamed to base_slice in this commit in v6 kernel.

The comment says it scales with CPU count and the comment is incorrect. I wonder whether kernel developers are aware of that mistake as they are rewriting the scheduler!

  • Official comments in the code says it’s scaling with log2(1+cores) but it doesn’t.
  • All the comments in the code are incorrect.
  • Official documentation and man pages are incorrect.
  • Every blog article, stack overflow answer and guide ever published about the scheduler is incorrect."
  • duncesplayed@lemmy.one
    link
    fedilink
    English
    arrow-up
    24
    ·
    10 months ago

    I love the arrogant confidently incorrect at the end of the blog.

    • The comments in the code are wrong
    • The official documentation is wrong
    • The manpage is wrong
    • Every blog article ever written is wrong
    • Linus Torvalds is wrong
    • Everyone who knows what they’re talking about is wrong
    • No, I don’t know how to read kernel code. Why do you ask? You’re wrong
    • Shut up. You’re wrong