Linux Fixing A "Hilarious/Revolting Performance Regression" Around Intel KVM Virtualization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • phoronix
    Administrator
    • Jan 2007
    • 67050

    Linux Fixing A "Hilarious/Revolting Performance Regression" Around Intel KVM Virtualization

    Phoronix: Linux Fixing A "Hilarious/Revolting Performance Regression" Around Intel KVM Virtualization

    It's not too often that "fixes" to the Kernel-based Virtual Machine (KVM) are noteworthy but today is an interesting exception with among the KVM fixes sent in today ahead of the Linux 6.13-rc3 tagging is for beginning to deal with a "hilarious/revolting" performance regression affecting recent generations of Intel processors. This performance regression won't be fully worked around until Linux 6.14 but at least there is an interim step in place once the code is merged later today...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
  • touma@volts.jp
    Junior Member
    • Oct 2024
    • 6

    #2
    Thank you for finding the problem! Google

    Comment

    • sophisticles
      Senior Member
      • Dec 2015
      • 2521

      #3
      Makes me want to laugh and vomit at the same time:

      Linux Fixing A "Hilarious/Revolting Performance Regression" Around Intel KVM Virtualization​

      Comment

      • iggy
        Junior Member
        • Feb 2020
        • 6

        #4
        Unless I'm reading this wrong, this only impacts nested virtualization which very few people use and even fewer people expect to perform well (especially on Intel CPUs). So it's unsurprising it has gone unfixed.

        Comment

        • Gonk
          Phoronix Member
          • Apr 2021
          • 93

          #5
          Originally posted by iggy View Post
          Unless I'm reading this wrong, this only impacts nested virtualization ...
          Yes and no. The CPUID performance problem is most obvious when using nested virtualization due how it multiplies the impact by executing it far more than necessary, but the problem is still there even when not using virtualization at all.

          Comment

          • mcloud
            Phoronix Member
            • Aug 2012
            • 68

            #6
            They might as well improve the KVM code while at it, sheesh...

            Comment

            • Gonk
              Phoronix Member
              • Apr 2021
              • 93

              #7
              Originally posted by mcloud View Post
              They might as well improve the KVM code while at it, sheesh...
              Uh, yeah, that's what they're doing. All the patches are to the kvm subsystem.

              Comment

              • FeRD_NYC
                Junior Member
                • Aug 2010
                • 21

                #8
                Originally posted by Gonk View Post
                Uh, yeah, that's what they're doing. All the patches are to the kvm subsystem.
                Which could end up being "unnecessary", ultimately, if Intel come up with a µcode patch for these processors that fixes their insane CPUID latency at the hardware level. But, since it sounds like the KVM code was doing a lot of questionable faffing around in its emulation code, cleaning that up isn't the worst thing even if Intel eventually patch this away.

                (It's like the whole climate-change thing: Worst-case scenario, what if it turns out that 97% of scientists are somehow wrong about human activity being the cause, and we end up making our industries more environmentally conscious, reducing our reliance on fossil fuels and our carbon output and greenhouse emissions, and just generally make the planet a cleaner, healthier, more pleasant place to live... "for nothing"? I guess we'll just have to take that chance.)

                Comment

                • FeRD_NYC
                  Junior Member
                  • Aug 2010
                  • 21

                  #9
                  Originally posted by sophisticles View Post
                  Makes me want to laugh and vomit at the same time:
                  That's how you know it's working!

                  Comment

                  • carewolf
                    Senior Member
                    • Nov 2012
                    • 2253

                    #10
                    Originally posted by sophisticles View Post
                    Makes me want to laugh and vomit at the same time:
                    As a framework developer, that is my usual reaction to seeing user code.

                    Comment

                    Working...
                    X