42

I've recently upgraded to Ubuntu 22.04 LTS desktop version. Now, I feel everything runs slowly on my machine. For example, Firefox take 10 to 20 seconds to start up which used to take only 2 to 3 seconds in my previous Ubuntu (v. 20.04 LTS).

So, I decided to reinstall Ubuntu 22.04 by downloading the ISO from ubuntu.com; although everything is still the same. Firefox, terminal and most of the app run slowly. Doesn't matter which application I'm going to run as it's going to take 10 to 30 seconds. It's annoying actually. I don't know whether there is a problem with my machine or Ubuntu's new release. Some other apps that do not run with the same performance level and take too long to start (compared to Ubuntu 20.04 LTS desktop):

  • Telegram
  • Windscribe
  • VS Code

I have a core i3 CPU (3.8ghz 2 or 4 cores) + 8 gigabytes of ram (DDR4). I use no GPU and am fine with onboard GPU provided by CPU itself. I've got a solid state drive and an Asus h110 motherboard if that is related.

4 Answers4

20

As Henning already pointed out in his answer there is a bug ticked filed in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434. This ticket contains some suggestions what you could try to improve the sluggishness.

In my case (Thinkpad T480) the following two measures from the the ticket improved the responsiveness considerably:

  • in /etc/default/grub: Add the flag intel_iommu=off to GRUB_CMDLINE_LINUX_DEFAULT
  • Disable the Intel Turbo Boost: echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
Moe
  • 453
8

I trial and errored a while and somehow got the idea it is a kernel thing, as it all somehow feels like wrong scheduling or something like that.

So I ended building myself a current mainline kernel 5.17.7 from https://www.kernel.org/ by taking the config file from my last 21.10 ubuntu standard kernel, running oldconfig, confirming all defaults. Oh and removing the ubuntu keys part manually...

And so that seems to work, I can play as many youtube videos as i wish, have a virtualbox vm running, look at my mails in thunderbird, browse the web with firefox (videos where in chrome) and nothing hangs as before.

Filed a bug and there is another proposed solution, along with the outlook this will be fixed in a later release, but can take a while: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1973434

Additional hint:

For those who didnt build a kernel on their own so far, that task will require quite some learning and time, so the preferred thing to try is the workaround described on launchpad. The adventurous might check the Kernel documentation https://docs.kernel.org/, the UBuntu Wiki on Kernel building https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel and this necessary fix on the mainline Kernel in Ubuntu when using "oldconfig": Compiling the kernel 5.11.11

Henning
  • 186
  • 8
2

I have been running Variety to change my desktop wallpaper for years. I recently changed it to only change the wallpaper on startup. The upgrade to 22.04 slowed my machine(s) to almost worthless - (a really old desktop, laptop and a rescued iMac all from about 2007 and all with 4GB RAM). I recently ran the system monitor for a couple hours while watching the ball game. WOW! What a surprise... Variety was constantly pinging the Internet and sucking up CPU, at around 25%. I shut Variety down and the difference is amazing. If you are using Variety, kill it as soon as it changes your wallpaper or replace it with a different background engine. GTH

EX-IBM
  • 31
0

I had this issue and resolved it installing the nvidia driver correctly. It was in some weird state where none of the buttons were selected.

k_g
  • 163
  • 8