Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Linux

Intel Sees a 3888.9% Performance Improvement in the Linux Kernel - From One Line of Code (phoronix.com) 61

An anonymous reader shared this report from Phoronix: Intel's Linux kernel test robot has reported a 3888.9% performance improvement in the mainline Linux kernel as of this past week...

Intel thankfully has the resources to maintain this automated service for per-kernel commit/patch testing and has been maintaining their public kernel test robot for years now to help catch performance changes both positive and negative to the Linux kernel code. The commit in question causing this massive uplift to performance is mm, mmap: limit THP alignment of anonymous mappings to PMD-aligned sizes. The patch message confirms it will fix some prior performance regressions and deliver some major uplift in specialized cases...

That mmap patch merged last week affects just one line of code.

This week the Register also reported that Linus Torvalds revised a previously-submitted security tweak that addressed Spectre and Meltdown security holes, writing in his commit message that "The kernel test robot reports a 2.6 percent improvement in the per_thread_ops benchmark."

Intel Sees a 3888.9% Performance Improvement in the Linux Kernel - From One Line of Code

Comments Filter:
  • Misleading (Score:5, Informative)

    by Inzkeeper ( 767071 ) on Saturday November 09, 2024 @12:42PM (#64933255) Journal
    How about the other part of the article:
    This change has been shown to regress some workloads significantly.
    One reports regressions in various spec benchmarks, with up to 600% slowdown.
  • by backslashdot ( 95548 ) on Saturday November 09, 2024 @12:50PM (#64933283)

    Way too much dramatization. No way it's a 38x overall performance improvement, that would defy all logic and something like that would hit mainstream news. So next time you want people to swallow BS, use a much smaller number like say 3.8%.

    • That's just your ignorance talking. The 38x improvement was in a very specific case, it even is implied as such in TFS, and yes a buggy implementation of code can definitely screw up your results like this, and in some cases even worse.

      Just because you're afraid of big numbers or don't understand what is going on doesn't mean it isn't actually real.

  • Too little, too late.
    • It's not an Intel specific change. This impacts all platforms.

    • Re: (Score:1, Flamebait)

      by gweihir ( 88907 )

      Not really. And Intel is dead. They will just take a while to die.

      • by Mspangler ( 770054 ) on Saturday November 09, 2024 @02:24PM (#64933469)

        Intel is not dead (cue the shovel to the head). They do need to get back to their knitting.

        Remember Apple was pronounced dead once, and so was AMD.

        On the other hand GE did die due to thinking they were a bank.

        So, the question is should Intel concentrate on the super chips that have bragging potential but a market of 0.1% of users, or for the power efficient desktop/laptop market?

        I ask because looking at the M4 I realized I can't really put my M1 Air to full load. My Linux box has about the same performance, twice the RAM, six times the storage, and five times the USB ports. Apple's desktops are not a good fit for me.

        • by gweihir ( 88907 )

          Intel is dead. All they ever had was superior manufacturing which came form their _memory_ business. That is over. Their CPUs always sucked in one way or another and they have not managed any innovation for a long time now. And recently, they try to pull stunts like jeopardizing CPU reliability to boost performance. That has the stink of desperation.

          • "Intel is dead" - actually far from it.

            There's still a huge amount of talent at Intel, and their single-core performance is still exceptionally good, if not on equal footing to AMD [techspot.com].

            Besides, their business isn't limited to CPU production.

            They just need better management, ideally someone who isn't guzzling millions for his own sake [reuters.com].

            • There's still a huge amount of talent at Intel, and their single-core performance is still exceptionally good, if not on equal footing to AMD.

              If you're not #1, you're #2.

              AMD now has the fastest processor in every segment and is outselling Intel in the datacenter.

              Intel had better get their shit together fast or they really will die.

              • by gweihir ( 88907 )

                Indeed. And the thing is, AMD did this form a position of weakness. That shows how truly fucked Intel is. Intel may survive, but from available history, it is very unlikely they will ever be #1 again.

                Add to that, that ARM is becoming more and more of a thing. Intel is inactive in that space or late to the game. AMD can deliver things like mixed AMD64/ARM chiplets.

  • Read the fine print. (Score:4, Interesting)

    by Gravis Zero ( 934156 ) on Saturday November 09, 2024 @01:00PM (#64933297)

    The patch message confirms it will fix some prior performance regressions and deliver some major uplift in specialized cases...

    If you read the THP documentation [kernel.org] you'll learn that "THP only works for anonymous memory mappings and tmpfs/shmem" which means unless you're using tmpfs or shared memory with a request in excess of PMD_SIZE bytes (2MiB on my system) then this has no impact.

    It seems unlikely that many programs will see much difference in performance but it's always nice to see improvements added to the kernel.

    • tmpfs used to be default for some systems, I think it was mostly reverted because of the stuff that for some reason thinks it's smart to unpack a massive archive there, like Nvidia driver runfiles. (They also don't respect the TMPDIR variable so you have to add the flag --tmpdir=$TMPDIR to get them to act like everyone else's software. The command line option is literally named after the environment variable used in Unix[likes] for decades! Just support the fucking variable!)

      *ahem*

      I am using tmpfs because i

      • I think anything writing files of substance (more than 100MiB) should check that destination has enough storage space (and permissions) before any writing is attempted. It seems logical enough that POSIX should have a function dedicated to this practice. I'm a bit surprised that nobody has tried to make it a standard practice.

        • Yes, on the one hand I am glad that nvidia provides a runfile driver so I don't have to mess with their rep, on the other hand I wish they were more competent about it, and on the gripping hand why does their driver install conflict with Multiarch for other things so that I have to use the runfile?

          Since I am all-Linux now, my next GPU will probably be from AMD, and it's largely for reasons like this (but also price-motivated, ofc.)

          Back on topic, it is pretty surprising that you don't specify how big a file

  • by RevRa ( 1728 ) on Saturday November 09, 2024 @01:07PM (#64933317) Journal

    Now all my crappy code will crash much faster. ;)

    • Hey, the faster it crashes, the faster a fix may come.*

      *excluding Microsoft software which relies on crashes

  • Impacts all CPUs (Score:4, Interesting)

    by Gravis Zero ( 934156 ) on Saturday November 09, 2024 @01:18PM (#64933329)

    This isn't an Intel specific change or even a x86_64 specific change, this impacts every Linux platform. The only reason "Intel Sees..." is in there is because they are the ones doing regression testing for the kernel.

  • DEBUG_BUILD=0;
  • by gweihir ( 88907 ) on Saturday November 09, 2024 @01:41PM (#64933373)

    That is maybe a curiosity, but irrelevant. Also, 4000%? Most of that will _not_ mapt o general performance.

    All that is to see here is pretty stupid reporting.

    • All that is to see here is pretty stupid reporting.

      I see only stupid people seeing how TFS doesn't say it's general performance improvements. In fact it literally uses the phrase "uplift in specialized cases".

      • by Torodung ( 31985 )

        Yeah, there's a whole lot of skeptics on Slashdot basing their skepticism on, "That's a really big number. Can't be right." I will remind them that there is a big difference between skepticism and doubt. Skepticism demands more than a surface evaluation.

        • by gweihir ( 88907 )

          I throw 35 years of CS experience, a CS engineering PhD and experience with CPUs on all levels and understanding of system design into the pot. That enough for you to make it "more than a surface evaluation"?

      • by gweihir ( 88907 )

        You cannot keep quiet when you have nothing to say, can you? I am pointing something out. I am not making a claim. Of course, the difference is lost on you.

  • great (Score:5, Funny)

    by dawg1234 ( 6925868 ) on Saturday November 09, 2024 @01:50PM (#64933391)
    Runs infinite loop in couple minutes now.
  • Is this something that now takes microseconds instead of milliseconds for something that isn't done often, or something that takes milliseconds instead of large fractions of a second for something that's maybe done once or twice per boot on your average system?

    If it were something done often enough to be noticable by Joe Average Linux User. I'd expect it to be bigger news.

  • The group I volunteer with got half a truckload of older systems. A speed up in the kernel would be welcome for these systems to see new life and boldly go where no cpu has gone before.

  • The specialized case seeing a 38x increase in performance is the HCF instruction.

    But boy does it burn HOT!

  • {
    return 0; // WOW!! it runs SO much faster now!
    //
    // What loser ADDED IN all of those annoying error checks anyway?
    //
    // ignore any existing code below ..
    }
  • And Linux magically runs 38x faster!

    But like all of those "one weird tricks," this one line of code isn't all it's cracked up to be.

Is knowledge knowable? If not, how do we know that?

Working...