[Bug 1973434] Re: massive performance issues since 22.04 upgrade
BTW: also, as I have an nvidia graphics card in that machine, one could think something is wrong with the graphics drivers... But I tried the nvidia drivers as recommended by the driver GUI tool as well as nouveau. It "feels" like the nvidia drivers are even slightly worse. On the Ubuntu live USB sticks, where perfromance is better, nouveau is used, on Poop OS the nividia driver - they seem all work similarly good. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1973434] Re: massive performance issues since 22.04 upgrade
I have an update on this and quite a bit of more information, even though not very clear what it means and how to further go on fully fixing it: After some more usage i realized that the performance is still pretty weak when using my desktop system for slightly more "real" work. I kept getting stutter in Video playback and Web browsers when using web applications with the slightest bit of JavaScript functionality, and a Virtualbox virtual machine. I first suspected gnome-shell to be a culprit and had the impressions things where sligthly better when using LXDE as a desktop environment, but still I never got real good performance. it's a real hard to get a grip on problem, as I dont know how to instantly produce the problem and measure it as with normal bugs. The easiest thing I can do is open a web browser, got to youtube, and open a few videos in new tabs and try to play them, and skip back and forth to different points, and "pretty soon" I get a stuttering in the video, a mouse pointer not moving fluently, switching tabs taking multiple seconds that usually works in an instant, a browser process with multiple 100s of % of CPU and a RRD* process. these are things that work without a problem on a very old Lenovo x1 tablet with a mobile processor, and that i would expect to work equally easy on a pretty new X1 extreme with i9 processor and 32G Ram... I did some more testing ( I cannot call it real debugging as I dont know how to use proper tooling and stuff for these kind of analysis) and checked how other Distributions and other Ubuntu versions perform from USB Live systems and found that not only PopOS, but also Ubuntu 21.10, BUT to my surprise also 22.04 from USB Live system behave much better. So I thought i must have some setting wrong, but I didn't know which, until i tried to turn off Intel Boost because I remembered in Ubuntu Studio it is recommended to be turned off for good audio performance. This helps a lot! But, this is not what is different between 22.04 live - because there, Intel boost is ON and it still behaves good. I tried this with several browsers with always the same result, so it seems to be a generic graphics system/library, or kernel problem. It actually "feels" like some scheduling issue - which was the reason I tried the boost setting. I also tried with a new test user, to make sure it's not a userspace local setting, or any browser plugin. But the same problems with a new, "clean" user. The system I experience all this with has been installed first with 20.10, so it has multiple upgrades - it *could* be there is some other setting from previous software versions thats broken - but I have no idea what setting this could be and how I can search for it. It could also be some old version of some gnome, X11 ( I also tried Xorg as well as wayland, no noticeable difference) or graphics library, and the kernel package is the wrong place for this bug, but I dont know where to start with that then... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1973434] Re: massive performance issues since 22.04 upgrade
Hi Henning, That is great news that "intel_iommu=off" on the kernel command line did the trick. You can follow this bug to get updates on when we will be disabling IOMMU by default in the 5.15 kernel. It should be soon, the patches are already submitted, and reviewed by the kernel team. The next step is for the patch to be applied to the git tree and the next kernel update built. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1971699 I'll let you know once there is a kernel in -proposed with IOMMU disabled. The patches missed this current SRU cycle, and will be in the next one, so it might be in a few weeks / months time. Thanks, Matthew -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1973434] Re: massive performance issues since 22.04 upgrade
Hi Matthew, Yes, that looks very good! have to dig a bit deeper and do some more actual work, but at the first glance I can do the things that I described above where impossible! Thanks a lot! I tried to build 5.17.7 with the 22.04 config and make olddefconfig and then bindeb-pkg, but it took extremely much longer than with the 20.10 config, and after about 2 hours i saw it still hanging on dpkg-deb for the dbg package and even half an hour later not finish. I will try again tonite, probably doing a full "mrproper" before and letting it run over night to see if it really hangs or just takes extremely long. Actually I cant imagine why a dpkg-deb should hang, but I also saw now clues what it could be. Cheers, Henning -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1973434] Re: massive performance issues since 22.04 upgrade
Hi Henning, Just a thought, could you try booting with IOMMU disabled? Edit /etc/default/grub, and append "intel_iommu=off" to GRUB_CMDLINE_LINUX_DEFAULT. Then save, and run "sudo update-grub" and reboot. Between 21.10 and 22.04 we enabled CONFIG_INTEL_IOMMU_DEFAULT_ON=y, and it has caused all sorts of odd issues, including performance related ones, so its worth a shot. We will be reverting the change to CONFIG_INTEL_IOMMU_DEFAULT_ON, and turning it off again in a kernel update in the near future. If "intel_iommu=off" doesn't help, then a make oldconfig with the 22.04 config and 5.17.7 would be interesting to see. Thanks, Matthew -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs