Ubuntu Budgie. Slow and glitchy

Hi. New to Budgie.
Ive running Budgie about a month now and everything was running so smooth. Then last week everytime I use Libreoffice, Firefox even Klavaro the system slows down to a crawl. Opening an app takes ages. Working in Libreoffice is a serious chore. Typed lines take almost three seconds to appear. Closing the app takes longer. Is it an Ubuntu issue? Because I cant find any reference to Budgie being resource heavy… Is there another version of Budgie?

Hi and welcome.

Did you install anything about a week ago or change anything about a week ago?

Do you notice anything taking a large amount of ram and/or swap space in system monitor?

Anything installed as snap in the slowing app’s you mention ?
Which version of them ?

snap list

dpkg -l | grep -Ei "libreoffice|firefox|klavaro"

Any chance your storage is getting close to full ?

df -Th -x squashfs

df -i -x squashfs

Run each of these commands in a window terminal ( i.e. tilix ) and post here their outputs.

@Coeur-Noir

I haven’t installed any snaps, list below: ```
dpkg -l | grep -Ei “libreoffice|firefox|klavaro”


             Rev   Tracking         Publisher     Notes
core18                 20200724                    1885  latest/stable    canonical✓    base
gnome-3-28-1804        3.28.0-17-gde3d74c.de3d74c  128   latest/stable    canonical✓    -
gtk-common-themes      0.1-36-gc75f853             1506  latest/stable    canonical✓    -
purple-task            1.0.0                       1     latest/stable    mivoligo      -
snapd                  2.46.1                      9279  latest/stable    canonical✓    snapd
ubuntu-budgie-welcome  0.12.9                      221   latest/stable/…  ubuntubudgie  classic

**dpkg -l | grep -Ei "libreoffice|firefox|klavaro" results:**
ii  firefox                               80.0.1+build1-0ubuntu0.20.04.1        amd64        Safe and easy web browser from Mozilla
ii  firefox-locale-en                     80.0.1+build1-0ubuntu0.20.04.1        amd64        English language pack for Firefox
ii  klavaro                               3.09-2                                amd64        Flexible touch typing tutor
ii  libjuh-java                           1:6.4.5-0ubuntu0.20.04.1              all          LibreOffice UNO runtime environment -- Java Uno helper
ii  libjurt-java                          1:6.4.5-0ubuntu0.20.04.1              all          LibreOffice UNO runtime environment -- Java Uno Runtime
ii  libreoffice-base-core                 1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- shared library
ii  libreoffice-calc                      1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- spreadsheet
ii  libreoffice-common                    1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- arch-independent files
ii  libreoffice-core                      1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- arch-dependent files
ii  libreoffice-draw                      1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- drawing
ii  libreoffice-gnome                     1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- GNOME integration
ii  libreoffice-gtk3                      1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- GTK+ 3 integration
ii  libreoffice-help-common               1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- common files for LibreOffice help
ii  libreoffice-help-en-us                1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- English_american help
ii  libreoffice-impress                   1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- presentation
ii  libreoffice-l10n-en-za                1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- English_southafrican language package
ii  libreoffice-math                      1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- equation editor
ii  libreoffice-ogltrans                  1:6.4.5-0ubuntu0.20.04.1              all          transitional package for libreoffice-ogltrans
ii  libreoffice-pdfimport                 1:6.4.5-0ubuntu0.20.04.1              all          transitional package for PDF Import component for LibreOffice
ii  libreoffice-style-colibre             1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- colibre symbol style
ii  libreoffice-style-elementary          1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- Elementary symbol style
ii  libreoffice-style-tango               1:6.4.5-0ubuntu0.20.04.1              all          office productivity suite -- Tango symbol style
ii  libreoffice-writer                    1:6.4.5-0ubuntu0.20.04.1              amd64        office productivity suite -- word processor
ii  libridl-java                          1:6.4.5-0ubuntu0.20.04.1              all          LibreOffice UNO runtime environment -- base types and types access library for the Java Uno typesystem
ii  libuno-cppu3                          1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- CPPU public library
ii  libuno-cppuhelpergcc3-3               1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- CPPU helper library
ii  libuno-purpenvhelpergcc3-3            1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- "purpose environment" helper
ii  libuno-sal3                           1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- SAL public library
ii  libuno-salhelpergcc3-3                1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- SAL helpers for C++ library
ii  libunoloader-java                     1:6.4.5-0ubuntu0.20.04.1              all          LibreOffice UNO runtime environment -- (Java) UNO loader
ii  mythes-en-us                          1:6.4.3-1                             all          English (USA) Thesaurus for LibreOffice
ii  uno-libs-private                      1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment -- private libraries used by public ones
ii  ure                                   1:6.4.5-0ubuntu0.20.04.1              amd64        LibreOffice UNO runtime environment
ii  xul-ext-ubufox                        3.4-0ubuntu1.17.10.1                  all          Ubuntu modifications for Firefox


df -Th -x squashfs results:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs tmpfs 385M 2.1M 383M 1% /run
/dev/sda5 ext4 73G 11G 59G 16% /
tmpfs tmpfs 1.9G 63M 1.9G 4% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 vfat 96M 76M 21M 79% /boot/efi
/dev/sda7 ext4 687G 65G 588G 10% /home
tmpfs tmpfs 385M 28K 385M 1% /run/user/1000

df -i -x squashfs results:
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 485138 604 484534 1% /dev
tmpfs 492181 1132 491049 1% /run
/dev/sda5 4890624 443648 4446976 10% /
tmpfs 492181 57 492124 1% /dev/shm
tmpfs 492181 5 492176 1% /run/lock
tmpfs 492181 18 492163 1% /sys/fs/cgroup
/dev/sda1 0 0 0 - /boot/efi
/dev/sda7 45776896 57093 45719803 1% /home
tmpfs 492181 61 492120 1% /run/user/1000

The Libreoffice, Firefox and Klavaro I installed from the Software Centre, so those should be standard.
I seem to have enough space available.

Thank you for your help. I am a very new Linux user, so feeling my way around. I used Elementary OS before but had firmware issues with my laptop, so I switched to Budgie.

Thank you again!

I installed Klavaro two days ago. That is the only thing.

free -hgives me this:

             total        used        free      shared  buff/cache   available
Mem:          3.8Gi       2.8Gi       193Mi       203Mi       778Mi       539Mi
Swap:         7.4Gi        43Mi       7.4Gi

I ran the top command and then started Libreoffice. There was a spike just after it loaded to 43% of the memory usage.

Not sure what else I should run. Is there a command that allows me to see the memory usage of a program over the past few weeks? Does linux support such statistics? Or is there something I can install to help me with this?

On second thought. I did add the Flathub repository, but have been unable to install anything from it.

you seem to have very little RAM left - 193MB - you have used 2.8GB out of your 3.8GB.

So what is taking all of your RAM?

run:

ps aux | head -1; ps aux | sort -rnk 4 | head -10

I get this:

USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
clamav       812  1.3 28.8 1302840 1136016 ?     Ssl  22:19   0:53 /usr/sbin/clamd --foreground=true
gnosist+    4366 13.4  9.6 3552304 379360 ?      Sl   22:22   8:28 /usr/lib/firefox/firefox
gnosist+    6825  9.9  7.6 3173776 302096 ?      Sl   23:13   1:13 /usr/lib/firefox/firefox -contentproc -childID 10 -isForBrowser -prefsLen 10753 -prefMapSize 230781 -parentBuildID 20200831163820 -appdir /usr/lib/firefox/browser 4366 true tab
gnosist+    6244  5.2  5.1 2875956 204428 ?      Sl   23:01   1:14 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 10752 -prefMapSize 230781 -parentBuildID 20200831163820 -appdir /usr/lib/firefox/browser 4366 true tab
gnosist+    4533  2.2  5.0 27936992 198740 ?     Sl   22:22   1:23 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 6456 -prefMapSize 230781 -parentBuildID 20200831163820 -appdir /usr/lib/firefox/browser 4366 true tab
gnosist+    6549  2.7  4.1 2769112 163220 ?      Sl   23:08   0:27 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 10752 -prefMapSize 230781 -parentBuildID 20200831163820 -appdir /usr/lib/firefox/browser 4366 true tab
gnosist+    5819  0.3  3.5 946692 138808 ?       Sl   22:49   0:07 /usr/lib/libreoffice/program/soffice.bin --writer
root         932  4.9  1.8 1093428 72412 tty7    Ssl+ 22:19   3:16 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
gnosist+    7621 11.0  1.8 704568 73560 ?        Sl   23:25   0:01 /usr/bin/tilix --gapplication-service
gnosist+    4438  0.2  1.5 2489796 62180 ?       Sl   22:22   0:10 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 230781 -parentBuildID 20200831163820 -appdir /usr/lib/firefox/browser 4366 true tab

Well - your clamav (clam antivirus) is gobbling up more than a quarter of your RAM. You’ll need to look at that.

Firefox is taking up 40% or more of your RAM. Also if you total the percentage of CPU for firefox - it is huge as well.

All in all you are RAM starved and your CPU is being hit very hard - both probably explains the massive slowdown.

Thanks mate. I’ll have a look. I run one program at a time on this laptop since it is an unkown brand to me.

The firefox might be high right now while I’m trying to find more info on forums - though it should not be that high. The ClamAV is strange. It probably means when I run Libreoffice the usage spikes as well - but I cant imagine why.

Wonder if an older version of libreoffice will work better.

Thank you again mate. This is the most helpfull and friendliest linux forum i’ve ever encountered

You should perhaps reconsider the use of ClamAV - it probably is setup to scan everything - Libreoffice by its nature is file intensive so ClamAV is probably scanning everything Libreoffice is touching.

Probably similar with Firefox.

BTW - I have been using Linux for 15+ years … and I’ve never used an antivirus … but then again - I don’t randomly install stuff from random sites … and I regularly reset my Firefox profile from scratch.

If you can dig into the back of that sofa to find the loose change there I would suggest you spend a few ebay dollars on RAM - try to maximize out your laptop. You’ll see a massive difference moving to 8GB.

Thank you mate.
Installing anivirus is a reflex for me :slight_smile: but I’ll remove ClamAV.

Great tip on the Firefox profile reset.

As for the RAM on this laptop - can’t be upgraded. It was the first thing I looked at after the laptop started slowing down. It is for the lack of a better word a no-name-brand here in South Africa. I can’t find much support for it on the web either. But it does what it is supposed to.

Removed ClamAV.

Libreoffice still hogging the cpu resources. Froze up and crashed twice today.
Beginning to think that it is a Libreoffice issue, there are some others on the net that have had the same issue in previous editions. Wondering if my laptop with the low RAM is maybe incompatible with the newer Libreoffice suites.

I’ll use an older version or see WPS office is better with the resources.

Thank you so much for your help mate, I really appreciate all your guidance and help in the matter.

maybe OnlyOffice https://www.onlyoffice.com/en/desktop.aspxhttps://helpcenter.onlyoffice.com/desktop/documents/linux/installation-ubuntu.aspxhttps://snapcraft.io/onlyoffice-desktopeditors

I used Elementary OS before but had firmware issues with my laptop, so I switched to Budgie.
This worries me a bit, as elementaryOS is Ubuntu based, like Budgie.
Do you have any graphic card / graphic processor which would require specific drivers ( ie. nvidia ) ? Non-matching graphic drivers may lead to very weird behaviors.

I am assuming here that the OP had reinstalled rather than install side by side with the elementary desktop… the latter is a bad idea because critical packages budgie needs have elementary specifics that could cause instability issues.

Elementary is an older version of Ubuntu. I couldn’t figure out how to change the repositories from South Africa to the main. So rather than go through steps I am unfamiliar with, installed Budgie after a recommendation from someone using Elementary OS.

I’ll have a look at Only Office, thank you!

Correct. I removed elementary and did a fresh install of Budgie. I only experience these weird hanging and slow issues when using Libreoffice and Firefox.

My work requires me doing a lot of documentation for which I use Libreoffice. But the experience has been troublesome. The longer I spend working on Libreoffice the more sluggish my system becomes. The work-around is now to close LO and restart the system.

I suppose it is always worth testing if the v7 libreoffice behaves better/same/worse than the default v6.x series

snap install libreoffice

Thank you again mate. I’ll do that. Much appreciated

Not sure installing as a snap is a good idea if the computer is « by nature » a bit slow ( only HDD and no SSD maybe ? ).

LibreOffice 7 is available as good old .deb package from a very trustable ppa :

Maybe set other swappiness values for RAM to be « managed » better ? Yet note I’m not very confident about this idea.


Default value is 60.
Try a long moment with 20 and an other long moment with 80 to see what fits better for you.