Sluggish Linux Mint - Unable to find out why

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
KoosHopeloos
Level 1
Level 1
Posts: 5
Joined: Sun Jun 28, 2020 11:00 am

Sluggish Linux Mint - Unable to find out why

Post by KoosHopeloos »

L.S.,

For some reason linux becomes slow to respond during use after start-up. It allmost seems to much is going on (but what), and thus slowly grinding the computer down in speed. And lagging more and more in everything you do. I've been looking here and on the internet what might be the cause, but with my very limited knowledge of Linux Mint, I'm not able to find out why this happening. Hopefully you can be of help...

Some clue may be in the fact that letters etc. on the screen have a shadow if the same letters about 10 px. But this could also be something completely different. And havn't found how to solve this as well.

Anyway, thanks for any help, Koos

Output inxi -Fxxxrz:

Code: Select all

System:
  Host: lvbo-computer Kernel: 5.3.0-61-generic x86_64 bits: 64 compiler: gcc 
  v: 7.5.0 Desktop: Cinnamon 4.4.8 wm: muffin 4.4.2 dm: LightDM 1.26.0 
  Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: Hewlett-Packard product: HP Compaq Elite 8300 SFF 
  v: N/A serial: <filter> Chassis: type: 4 serial: <filter> 
  Mobo: Hewlett-Packard model: 3397 serial: <filter> UEFI: Hewlett-Packard 
  v: K01 v03.07 date: 05/10/2018 
CPU:
  Topology: Quad Core model: Intel Core i5-3470 bits: 64 type: MCP 
  arch: Ivy Bridge rev: 9 L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 25541 
  Speed: 1596 MHz min/max: 1600/3600 MHz Core speeds (MHz): 1: 1596 2: 1596 
  3: 1596 4: 1596 
Graphics:
  Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics 
  vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 
  chip ID: 8086:0152 
  Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1280x1024~60Hz 
  OpenGL: renderer: Mesa DRI Intel Ivybridge Desktop v: 4.2 Mesa 19.2.8 
  compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio 
  vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1e20 
  Sound Server: ALSA v: k5.3.0-61-generic 
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard 
  driver: e1000e v: 3.2.6-k port: f080 bus ID: 00:19.0 chip ID: 8086:1502 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek type: USB driver: rtl8xxxu bus ID: 1-1.3:3 
  chip ID: 0bda:818b serial: <filter> 
  IF: wlx00e04c20f331 state: up mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 138.82 GiB (29.8%) 
  ID-1: /dev/sda vendor: Western Digital model: WD5000AAKX-60U6AA0 
  size: 465.76 GiB speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> 
  rev: 1H18 scheme: MBR 
Partition:
  ID-1: / size: 91.17 GiB used: 61.61 GiB (67.6%) fs: ext4 dev: /dev/sda1 
  ID-2: /home size: 358.26 GiB used: 77.15 GiB (21.5%) fs: ext4 
  dev: /dev/sda4 
  ID-3: swap-1 size: 7.45 GiB used: 59.0 MiB (0.8%) fs: swap dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 33.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/linrunner-tlp-bionic.list 
  1: deb http://ppa.launchpad.net/linrunner/tlp/ubuntu bionic main
  2: deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu bionic main
  Active apt repos in: /etc/apt/sources.list.d/mjasnik-ppa-bionic.list 
  1: deb http://ppa.launchpad.net/mjasnik/ppa/ubuntu bionic main
  2: deb-src http://ppa.launchpad.net/mjasnik/ppa/ubuntu bionic main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://ftp.nluug.nl/os/Linux/distr/linuxmint/packages tricia main upstream import backport
  2: deb http://ftp.nluug.nl/os/Linux/distr/ubuntu bionic main restricted universe multiverse
  3: deb http://ftp.nluug.nl/os/Linux/distr/ubuntu bionic-updates main restricted universe multiverse
  4: deb http://ftp.nluug.nl/os/Linux/distr/ubuntu bionic-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ bionic partner
Info:
  Processes: 264 Uptime: 2h 07m Memory: 3.72 GiB used: 2.09 GiB (56.2%) 
  Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.5.0 alt: 7 Shell: bash 
  v: 4.4.20 running in: gnome-terminal inxi: 3.
Output systemd-analyze blame

Code: Select all

11.550s networkd-dispatcher.service
         10.928s dev-sda1.device
         10.676s snapd.service
          9.590s ModemManager.service
          8.867s NetworkManager.service
          6.748s NetworkManager-wait-online.service
          6.663s ubuntu-system-adjustments.service
          5.429s udisks2.service
          4.825s dev-loop1.device
          4.578s dev-loop2.device
          4.122s dev-loop0.device
          3.953s dev-loop3.device
          3.639s grub-common.service
          3.181s networking.service
          3.119s apport.service
          2.856s speech-dispatcher.service
          2.824s systemd-udevd.service
          2.784s timekpr.service
          2.677s lm-sensors.service
          2.669s gpu-manager.service
          2.636s lvm2-monitor.service
          2.486s thermald.service
          2.471s wpa_supplicant.service
Output sudo df -Th

Code: Select all

Bestandssysteem Type     Grootte Gebruikt Besch Geb% Aangekoppeld op
udev            devtmpfs    1,9G        0  1,9G   0% /dev
tmpfs           tmpfs       382M     1,5M  380M   1% /run
/dev/sda1       ext4         92G      62G   25G  72% /
tmpfs           tmpfs       1,9G     110M  1,8G   6% /dev/shm
tmpfs           tmpfs       5,0M     8,0K  5,0M   1% /run/lock
tmpfs           tmpfs       1,9G        0  1,9G   0% /sys/fs/cgroup
/dev/loop2      squashfs    2,0M     2,0M     0 100% /snap/gnuchess/11
/dev/loop0      squashfs     97M      97M     0 100% /snap/core/9436
/dev/loop3      squashfs    2,0M     2,0M     0 100% /snap/gnuchess/10
/dev/loop1      squashfs     98M      98M     0 100% /snap/core/9289
/dev/sda3       vfat        189M     6,0M  183M   4% /boot/efi
/dev/sda4       ext4        359G      79G  262G  24% /home
tmpfs           tmpfs       382M      28K  381M   1% /run/user/1001
tmpfs           tmpfs       382M      32K  381M   1% /run/user/1000

rene
Level 16
Level 16
Posts: 6507
Joined: Sun Mar 27, 2016 6:58 pm

Re: Sluggish Linux Mint - Unable to find out why

Post by rene »

You probably have a runaway and/or wildly leaking process active. From a terminal start top, note the %Cpu(s): line in the header and the top-most (few) process(es) in the list for a possible hint.

KoosHopeloos
Level 1
Level 1
Posts: 5
Joined: Sun Jun 28, 2020 11:00 am

Re: Sluggish Linux Mint - Unable to find out why

Post by KoosHopeloos »

Dear Rene,

Thank you for your prompt reply! Here is what you asked for. Unfortunately, I'm not able to say some meaningfull about this.

Code: Select all

top - 20:34:23 up 41 min,  1 user,  load average: 0,31, 0,51, 0,61
Tasks: 199 total,   1 running, 147 sleeping,   0 stopped,   1 zombie
%Cpu(s):  3,1 us,  1,3 sy,  0,0 ni, 95,4 id,  0,2 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem :  3901532 total,  1349396 free,  1147124 used,  1405012 buff/cache
KiB Swap:  7812092 total,  7799804 free,    12288 used.  2323176 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                   
 3088 lars      20   0 2679484 175144 117564 S   5,3  4,5   0:24.24 Web Content                                                                               
 2991 lars      20   0 3458048 378400 137960 S   3,6  9,7   3:31.42 firefox                                                                                   
 1254 root      20   0  599300  70680  52544 S   2,6  1,8   0:38.13 Xorg                                                                                      
 2694 lars      20   0 3385604 107232  55980 S   2,3  2,7   0:40.10 cinnamon                                                                                  
 7564 lars      20   0  589832  36916  27092 S   2,0  0,9   0:03.10 gnome-terminal-                                                                           
 2734 lars      20   0  657956  34124  27556 S   0,7  0,9   0:00.65 nm-applet                                                                                 
 7581 lars      20   0   44276   3976   3336 R   0,7  0,1   0:00.90 top                                                                                       
  254 root      20   0       0      0      0 I   0,3  0,0   0:03.00 kworker/u8:4-ph                                                                           
 1135 root      20   0  559020  13524  10420 S   0,3  0,3   0:00.81 NetworkManager                                                                            
 3129 lars      20   0 8937940 148680  88576 S   0,3  3,8   0:13.36 WebExtensions                                                                             
    1 root      20   0  159908   9112   6684 S   0,0  0,2   0:01.31 systemd                                                                                   
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kthreadd    

rene
Level 16
Level 16
Posts: 6507
Joined: Sun Mar 27, 2016 6:58 pm

Re: Sluggish Linux Mint - Unable to find out why

Post by rene »

That's not (yet) showing much interesting indeed: the system's 95% idle. Do see you somewhat likely have a heavy site such as Facebook or alike open in Firefox (or are on a puny system) but this would supposedly be to say that you are nor currently experiencing the issue. I'd leave that terminal with top running in it open and glance at it when the mentioned sluggishness starts occurring.

Also keep an eye on the displayed "free" mem and "used" swap. Do see you have already touched swap even though it's okay now: do you keep your system running constantly? If not: something you did since boot got out of hand memory-wise.

[EDIT] Just (re)noticed your inxi report: note that I would not feel that to be "puny" in the above sense and as to CPU. As to memory 4G isn't a lot these days and it might as such not be very surprsing that you hit swap every now and then, so probably right now still nothing to see. I.e., keep on eye on it...

jonau01
Level 2
Level 2
Posts: 80
Joined: Tue Apr 07, 2020 4:01 pm

Re: Sluggish Linux Mint - Unable to find out why

Post by jonau01 »

My guess your problem would be your hard disk.
One possible test to do is to run Linux mint from a live usb disk (if you have a spare one) to see.

rene
Level 16
Level 16
Posts: 6507
Joined: Sun Mar 27, 2016 6:58 pm

Re: Sluggish Linux Mint - Unable to find out why

Post by rene »

jonau01 wrote:
Tue Jun 30, 2020 9:02 pm
My guess your problem would be your hard disk.
That's a rather strange guess, and twice over if poster does not have readonly remount issues or disk-corruption / fsck ones on reboot. Any case the point of e.g. top of the above is that monitoring what is happening rather than guessing would be better. I expect them to see either a run-away discrete application or a run-away browser-tab, latter possibly due to a faulty browser extension.

KoosHopeloos
Level 1
Level 1
Posts: 5
Joined: Sun Jun 28, 2020 11:00 am

Re: Sluggish Linux Mint - Unable to find out why

Post by KoosHopeloos »

Dear jonau01, rene,

Both thank you for the help.

To answer the questions:
Do see you have already touched swap even though it's okay now: do you keep your system running constantly?
No, this system is used by my son. So at most a couple of hours each day.
If not: something you did since boot got out of hand memory-wise.
Not sure how to answer this, I have not changed anything as far as I know.

Also keep an eye on the displayed "free" mem and "used" swap. I'll test it this weekend with top running, so I can see what is happening.

Post Reply

Return to “Newbie Questions”