1

I have been using Ubuntu Mate 20.04 LTS on my Lenovo Ideapad L340 17API (Ryzen 7 3700U based, with integrated VEGA Radeon graphics) since I bought it in summer of 2020 (maintaining the system up-to-date, though only about a year ago the laptop has become my the only PC for everyday use, before this I used it about several days a year). I've noticed that sometimes the system runs slow and also 20.04 goes to the end of its lifecycle, so I decided to install Ubuntu Mate 22.04.3 instead. I've saved only /home partition, all others were formatted before installing new version. And in several days I've recognized that the system sometimes become extremely slow (GIMP takes about a minute to start, applications like Double Commander started from click on icon on my desktop starts in a minute or so after click, even simple command in terminal like "sudo su" can require several seconds; after launching many applications work slow or freeze and then unfreeze time after time). Also some operations (like opening a directory containing ~400 .7z files by file browser of DeadBeef player) takes huge time (say, 15-20 seconds).

First of all, I've checked simple things. There was absolutely no system overload when my system freezes as described above (htop shows less than 20% (usually 5-10%) of load for each thread, less than half of available RAM is used, no swap is used). There was no overheat (CPU temperature is less than 60 degrees Centigrade according to Psensor, keyboard over CPU isn't hot, command line tools show normal CPU frequency, i.e. no throttling). I've checked CPU by CPU-Z. All's OK. I've checked RAM by Memtest86Free. All's OK. I've checked S.M.A.R.T. data of both SSD (there are /boot/efi (exfat), /boot (ext3), swap and /mnt/ssd (ext4) filesystems) and HDD (there are / (ext4) and /home (ext4) filesystems) - all's excellent. I've checked dmesg logs - nothing critical. Yeah, Ubuntu 22.04 Mate as well as Ubuntu 20.04 Mate takes about 1 minute to boot, IMHO it's not good, though OK, this is not critical.

I haven't tuned the system after installation except setting dirty bytes value (unsetting doesn't help though). Kernel version is 6.2.0-36-generic, with latest linux-firmware from Ubuntu repository.

Then I noticed that if I just boot my system and use some applications like LibreOffice, Double Commander, music players, GIMP, all's OK. But if I start Google Chrome with about 20 tabs (still more than half of system RAM is available, no mentionable CPU load, no swap is used), all the problems described above appeared after minutes of browsing and after 2 hours my system becomes really slow). Firefox with about 60 tabs also make system slow (but not in such extent!).

I've installed IceWM and tried it. Similar thing (though slowing due to Firefox is not so mentionable, slowing due to Chrome is not of such extent). I've tried to boot from live media (Ubuntu Mate 22.04, Xubuntu 22.04, Slackware 15.0 live), and all was OK (after installing Google Chrome and opening about 20 tabs there was no problems).

Any ideas about the reasons of such slowing down? Of course, there's a simple idea just not to use Google Chrome, but anyway I want to understand why does this happen!

  • 1
    Just out of curiosity, Why are you using 60 tabs of Firefox or 20 tabs of Chrome? Do you actually use all that or are you trying to benchmark your system? Look at benchmark if your intentions are to benchmark your system. – stumblebee Nov 18 '23 at 00:41
  • Sometimes I use them, sometimes not. But anyway 60 tabs of Firefox slow down my laptop in less extent than 20 tabs of Chrome. – Metalian Nov 19 '23 at 12:16

1 Answers1

1

Sir,

You've actually answered your own question and you have identified the reason for the perceived lag in performance.

The symptoms you are describing are indicative of resource starvation. You first state that GIMP is very slow to start and later say that GIMP runs fine. Issues such as you describe are rarely the fault of the operating system. Sometimes they are caused by bloated, power hungry applications and sometimes there really isn't a problem per se. The user is just trying to get too much utility out of the machine they are on. This is especially true with laptops. Those devices typically don't have the fastest RAM, the best graphics cards and so on. I have an ASUS ROG which is a pretty mighty beast but if I were to open FF with 60 open tabs I can assure you that performance would come to it's knees.

Fully disclosure: I run Ubuntu LTS exclusively so I have no experience with the Mate variant.

The obvious solution is to just have the tabs you actually need open. 60 is truly excessive.

Also, be advised that Google does everything they can to keep ad blocking plugins off their platform. So if you even have just a few open tabs and Chrome is minimized, Chrome if constantly snooping on you, serving up ads and doing all sorts of other activities. All of that "activity" is going to consume resources and slow your laptop down. This could very well be the reason some apps are slow to start.

Firefox is somewhat similar in that it has become bloatware over the years, especially if you have a lot of plugins installed. As at test, you could try installing LibreWolf which is a branch of FF that is MUCH lighter but otherwise fully featured.

You've done a good job of monitoring the usual suspects for slow performance. It couldn't hurt to do a basic tuneup, trimming/defragging the drive, updating the various drivers and so on. You might be able to squeeze out a few more cycles doing that. And don't forget checking for BIOS updates.

Very high end desktop builds are more tolerant of excessive active apps running. Laptops, not so much. You don't see many laptops that have 64GB RAM, for example. You said that this laptop has been very lightly used previously so it could well be that it's working it's little heart out and you are just asking too much of it.

jones0610
  • 2,157
  • Sir, it's nothing common with resource starvation. In case of real resource starvation, htop (e.g. in the moment right after clicking on GIMP icon) will show CPU load. There's no mentionable CPU load in my case. And GIMP as well as browsers are not extreme high demanding applications. I know what is real resource starvation in Ubuntu (when all the available RAM is used and also several Gb of swap used or all the cores are 100% busy - I had many various systems and I remember their behaviour under such load). – Metalian Nov 17 '23 at 22:28
  • BIOS update - yes, I've updated it 2 days ago, it didn't help.

    BTW, I've found the following: https://askubuntu.com/questions/1419843/how-to-identify-chrome-tab-responsible-for-ui-slowdown So I've turned off hardware acceleration in Google Chrome and it seems that the system became to work faster though CPU load have risen to about 15% for all the cores at the same moment. It's not perfect (as it loads CPU), but OK, let's work with it.

    But anyway, I'd like to understand the reasons of these lags.

    – Metalian Nov 17 '23 at 22:29
  • Sir, you asked for help and I tried to give you the benefit of my 50+ years of systems engineering experience with *NIX. You are absolutely expecting more out of that little laptop than it's capable of providing. This is an undeniable fact. Yes, a tweak here and there may help a bit.... but if you listen to the voice of experience you may learn something. No disrespect intended but the various monitoring tools you mention do not tell the whole story. Of course free advice is worth every penny you paid for it so if you think you know better don't let me take the fun out of it for you. – jones0610 Nov 17 '23 at 22:35
  • OK, I left 9 tabs. And still the same lags. On my Android phone (Oukitel, not Samsung or Xiaomi) I open 13-15 tabs in Google Chrome and neither lags nor overheat. I closed Chrome but opened Firefox with 60 tabs. System works really faster. So the problem is likely in the interaction of Chrome with linux or maybe with GTK or X11. – Metalian Nov 21 '23 at 11:11