This problem still very much exists on 23.04. Since I can't find a single 'regular' metric that shows the problem, I can only provide anecdotal information. Perhaps someone can see a pattern and find a common thread.
The machine I'm using is an Asus Zephyrus G14 with AMD Ryzen 5 4600HS NVIDIA GeForce GTX 1650 Ti and using Nvidia proprietary drivers. Storage is entirely NVME SSD and I have 40 gigs of RAM. I use both KDE (preferred) and Gnome, depending on which feels less laggy at the time. I use X11 now because Nvidia requires it (?), and I remember using wayland some time ago (on the same machine and with nvidia drivers. I remember needing to switch away from firefox because it didn't work with wayland (?). I did notice significant performance degradation when I updated to 22.10. At the time, I uninstalled most snaps except the browser(s), completely disabled tracker-miner, and the system was more or less usable. In retrospect, I have had performance degradation over the past couple of years when playing Dota 2. Since that's an occasional thing for me, and given gaming on Linux has been historically difficult, I just chalked it up to the game becoming more demanding. Similarly with pycharm and browsers, since I am used to having a large number of files / tabs / projects open, I have subconsiously adapted by changing my behavior by reducing the number of open windows / browser tabs and occasionally exiting or restarting the machine. For context, I've been using Ubuntu since 2007 and it wasn't unusual for my laptops to 20+ days of uptime. The performance degradation became entirely debilitating after upgrading to 23.04, which I did to get rid of the annoying EOL message for 22.10 (on a side note, 9 months of support on a release? Really?). The following are the 'measurables' I refer to when I talk of performance degradation: - The time it takes for me to hit a key on the keyboard and the character to show up on screen. - The time it takes for zsh/oh-my-zsh to render the first and subsequent command prompt. - The level of detail I can see when a web page is being rendered. - The time it takes to switch focus - The time it takes for me to press alt+tab or meta and be able to switch windows. - The time it takes for pycharm autocomplete to do something All of these measurables were probably actually borderline measurable immediately after the update. As in, with a stopwatch and human response times. I have made the following observations / changes since (possibly in slightly difference sequence). Each of these steps provided enough of an improvement that they felt successful: - Disabled most zsh/oh-my-zsh plugins for shell enrichment. Along with that, disabled keychain and its counterpart for gpg. - Got rid of snap. Completely. Every snap, and snapd itself as well. I will be honest and say I don't remember why I decided snap was the problem. Doing this did improve the situation slightly. - Suppressed tracker-miner. This was doing a lot of disk IO and eating CPU as well. - Uninstalled plocate and the indexer. Was also doing a lot of disk IO. - Installed (and later uninstalled) preload. I'm less certain if it helped, but preload itself was sitting at 50% CPU very often. - I was using brave as my browser, and I noticed it was doing a crap ton of disk IO. I first tried using profile-sync-daemon to mitigate this, and it did help for maybe a day or two. Then it lost the profile along with the 50 or so tabs I had open, and I didn't want to deal with it any longer. I uninstalled brave and tried using epiphany. (No snap, so no chromium etc) - Epiphany was just as bad. I started noticing a pattern. Chromium was choking things up initially as well, but I had nuked it along with snap. Epiphany uses the chromium engine as well. - Removed brave and stopped using epiphany. Installed Firefox from the Mozilla tarball. This resulted in possibly the most significant improvement in performance. - Switched the linux kernel from ubuntu (6.2.x?) to mainline (6.4.11). I _think_ this improved things, but I can't remember how I reached that conclusion. It could even have been the restart after installing the kernel that created a placebo effect. - I'm also noticing that the Steam client causes noticeable performance degradation as well, and I assume the client uses CEF as its browser. Note that the performance degradation happens whether or not the steam library is open. If it's in system tray for long enough, I need to wait after each mouse click I make on the desktop. This is similar to what happened with chromium and brave. Presently, if I sort in htop by TIME, the only potential redflag I see is pipewire with no audio playing. htop itself takes about 37% CPU. At present, the machine is usable, though the longer it is on and being used, more of the degradation becomes apparent. On occasion, I have had to hard shutdown because nothing responds. There are no red flags in CPU usage from htop and top, no red flags in io usage from iotop, and nvidia-smi sits at a comfortable 10% utilization. I haven't seen any noticeable red flags when things slow to a crawl. CPU utilization is well below 50% and so is RAM utilization. I should also note that this does not feel like a graphics issue. When the system itself is responsive, graphics on the desktop (effects, transparency, etc) are smooth as I've ever seen them. It feels more like some kind of IO bottleneck. As I write this, the machine actually has felt relatively usable, though I still feel much more lag than immediately after boot. This is after switching back to KDE. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1973434 Title: massive performance issues since 22.04 upgrade Status in linux package in Ubuntu: Confirmed Bug description: Hi, After upgrading to 22.04 i had to fight with massive performance issues. Browsers appeared to hang every other minute, youtube videos being laggy and hang in between, applications in a virtualbox VM where slow and also hanging every other minute to a level of not being useable. On a pretty recent and powerful system just 2 years old. I noticed CPU jumps in top, but also somehow thought it could be a graphics issue so invested some time installing nvidia drivers properly. Also I wondered if it might be the lowlatency kernel I normally use because I do audio stuff, and switched to generic. But nothing helped. ThenI had the idea it could be a kernel/scheduler issue because the system wasn't always slow, but it appeared certain things kept hanging when other processed had a lot of cpu for a few seconds. So I got a recent mainline kernel, configured it with my last running config from 21.10 before the update, made the debs and installed them, and now can tell that a mainline kernel 5.17.7 with all the dkms modules that i had before which got compiled automatically at installation brings back a "normal" performance. I can browse the web, run multiple youtube vids at once, even in another browser, have thunderbird running, and a virtualbox machine open with another browser for some web app testing and everything runs fine and smooth, no lagging. Not sure yet what the real reason is - either the kernel version, or a patch in the ubuntu version, or the 22.04 kernel config so far, or some configuration made in 21.10 that isn't good with 22.04 and it's kernel anymore. I will go ahead tomorrow and see if I can build a vanilla kernel with the config from the ubuntu 22.04 kernel and "make oldconfig", then I will be able to tell if only the config is making the difference. Please let me know of there is anything I should test to further analyze this issue, or any ideas I can try to solve it without having to run a mainline manually installed kernel. Thanks. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: linux-image-generic 5.15.0.30.33 ProcVersionSignature: Ubuntu 5.15.0-30.31-generic 5.15.30 Uname: Linux 5.15.0-30-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: henning 6198 F.... pulseaudio /dev/snd/controlC1: henning 6198 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Sat May 14 23:02:38 2022 InstallationDate: Installed on 2020-04-12 (761 days ago) InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017) MachineType: LENOVO 20QV00CEGE ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-30-generic root=/dev/mapper/vgubuntu-root ro RelatedPackageVersions: linux-restricted-modules-5.15.0-30-generic N/A linux-backports-modules-5.15.0-30-generic N/A linux-firmware 20220329.git681281e4-0ubuntu3 SourcePackage: linux UpgradeStatus: Upgraded to jammy on 2022-04-28 (15 days ago) dmi.bios.date: 12/06/2021 dmi.bios.release: 1.42 dmi.bios.vendor: LENOVO dmi.bios.version: N2OET55W (1.42 ) dmi.board.asset.tag: Not Available dmi.board.name: 20QV00CEGE dmi.board.vendor: LENOVO dmi.board.version: SDK0T08861 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.ec.firmware.release: 1.23 dmi.modalias: dmi:bvnLENOVO:bvrN2OET55W(1.42):bd12/06/2021:br1.42:efr1.23:svnLENOVO:pn20QV00CEGE:pvrThinkPadX1Extreme2nd:rvnLENOVO:rn20QV00CEGE:rvrSDK0T08861WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20QV_BU_Think_FM_ThinkPadX1Extreme2nd: dmi.product.family: ThinkPad X1 Extreme 2nd dmi.product.name: 20QV00CEGE dmi.product.sku: LENOVO_MT_20QV_BU_Think_FM_ThinkPad X1 Extreme 2nd dmi.product.version: ThinkPad X1 Extreme 2nd dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp