Ubuntu performance issues, slow and laggy


laptop specs:

  • processor: 9th Generation Intel® Core™ i7-9750H Processor
  • graphics card: RTX 2060
  • 16gb of ram
  • Ubuntu 20.04.3 LTS

I am running the propierty and tested driver from nvidia. (the recommended driver)

i checked the system monitor and see nothing out of the ordinary (i think) but I can't open it when my laptoop freezes ofc

and with laggy i mean sometimes i have to wait 3 minutes for something to open or load or it won't load at all. even with only my browser open. it's the opposite from smooth. not sure what to do. if anyone has an idea on how to fix this problem that would be nice :)

no idea if the problem is snap apps i tried to understand what is is but i have like a 80IQ so I'm not sure what a snap app really is. but i think that's how i install all the programs that are not available in the ubuntu software app

free command output:

free
              total        used        free      shared  buff/cache   available
Mem:       16306104     5888768     6184552      661244     4232784     9437128
Swap:       2097148           0     2097148

free -h output:

              total        used        free      shared  buff/cache   available
Mem:           15Gi       5,2Gi       6,3Gi       445Mi       4,1Gi       9,6Gi
Swap:         2,0Gi          0B       2,0Gi

sudo snap list output:

Name                             Version                     Rev    Tracking         Publisher          Notes
bare                             1.0                         5      latest/stable    canonical✓         base
bitwarden                        1.29.1                      58     latest/stable    bitwarden✓         -
brave                            1.32.106                    137    latest/stable    brave              -
core                             16-2.52.1                   11993  latest/stable    canonical✓         core
core18                           20211028                    2253   latest/stable    canonical✓         base
core20                           20211115                    1242   latest/stable    canonical✓         base
gimp                             2.10.28                     380    latest/stable    snapcrafters       -
gnome-3-28-1804                  3.28.0-19-g98f9e67.98f9e67  161    latest/stable    canonical✓         -
gnome-3-34-1804                  0+git.3556cb3               77     latest/stable/…  canonical✓         -
gnome-3-38-2004                  0+git.cd626d1               87     latest/stable    canonical✓         -
gtk-common-themes                0.1-59-g7bca6ae             1519   latest/stable/…  canonical✓         -
kde-frameworks-5-qt-5-15-core20  5.79.0                      14     latest/stable    kde✓               -
krdc                             21.04.0                     56     latest/stable    kde✓               -
snap-store                       3.38.0-66-gbd5b8f7          558    latest/stable/…  canonical✓         -
snapd                            2.53.2                      14066  latest/stable    canonical✓         snapd
telegram-desktop                 3.2.2                       3343   latest/stable    telegram.desktop   -
vlc                              3.0.16                      2344   latest/stable    videolan✓          -
yubioath-desktop                 5.1.0                       13     latest/stable    yubico-snap-store  -

yes I'm dual booting from an USB, a fast one. and starting up does not take a lot of time. (yes I'm running ubuntu on a live usb)

neofetch output:

OS: Ubuntu 20.04.3 LTS x86_64 
Host: 81SX Legion Y540-15IRH 
Kernel: 5.11.0-40-generic 
Uptime: 1 hour, 47 mins 
Packages: 1863 (dpkg), 19 (snap) 
Shell: bash 5.0.17 
Resolution: 1920x1080 
DE: GNOME 
WM: Mutter 
WM Theme: Adwaita 
Theme: Yaru-dark [GTK2/3] 
Icons: Yaru [GTK2/3] 
Terminal: gnome-terminal 
CPU: Intel i7-9750H (12) @ 4.500GHz 
GPU: NVIDIA GeForce RTX 2060 Mobile 
Memory: 5338MiB / 15923MiB 
---------------Answer---------------

There is no obvious way to fix this problem but you could take the following Precautions , Good Luck!


  • Try increasing the swap size


  • Try a lighter desktop environment such as XFCE .


  • try disabling services that you don't want (You can use Stacer also for that sudo snap install stacer , also make sure not to disable any useful service)

  • Always keep your system updates sudo apt update ; sudo apt upgrade

  • Avoid heavy usage

  • Use cpu freq with power saving mode .

  • Use alternative flavours of ubuntu like XUBUNTU or LUBUNTU

  • Try decreasing configs you made to the desktop (You can use dconf reset -f / (Note this will remove all configs)

  • Use more workspaces rather than opening more then 3 apps in 1 workspace

  • keep your computer clean sudo apt autoremove && sudo apt clean

  • use an old kernel (only use if if it is supported)


  • And at last decrease swapiness.(10 is a good value)


If the problem is after update or kernel update

If that is the case then

  • Open Grub menu (Press ESC or SHIFT key before the boot splash screen appear)

  • From there choose "advanced options for ubuntu"

  • Then choose an older kernel (probably the oldest)

Check if the problem is still there if not then Give me further updates in the comments.


As You mentioned in the question, You are on a live USB this problem will highly depend on the speed of the storage medium you are using to operate ubuntu, So I would recommend installing Ubuntu on SSD

If none of above works then PROBABLY you should Switch to a newer version of ubuntu or Switch to another distro

Also , You said that it is dualbooted so can you see if the problem is also there in windows ?

Also what kind of things(tell the name of specific apps if any) you find slow ?

As you have provided no comments about how and when the problem started, it is really hard to figure out what can be a correct solution, If none of above works then please edit your question and add the answers of these questions

  • Since when is the issue

  • What you think caused the issue

  • What specific thing are slow ?

  • What kind of special services and packages you use ?


Previous : Network Manager in ubuntu 18.04 crashes and I've to reboot everytime
Next : Ubuntu 21.10: Cinnamong network manager applet shows "No connection" while Internet works fine over ethernet