Laggy pc and one thread always at 100%

Hello everybody! Since I installed this distro, I noticed that the pc has a weird tendency to lag, but I decided to keep going to see if it was something that would've disappeared with time. 4-5 days have passed, and the lags and freezes are still a thing, especially in my browser (Firefox).
I also noticed that one of the 6 cpu threads is always at 100%, no matter what is actually running on the machine, a single page on the browser, a game or just nothing, it still is at 100% of usage:


Is it the normal behaviour of a cpu or is there something wrong?

Here is my inxi -Faz

System:
  Kernel: 5.18.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=835c06a3-7bfa-4fde-b09c-1ba4ae1c2e3e rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: GNOME v: 42.2 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z370P D3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: Z370P D3-CF v: x.x serial: <superuser required>
    UEFI: American Megatrends v: F5 date: 07/05/2018
CPU:
  Info: model: Intel Core i5-9600K bits: 64 type: MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xC (12) microcode: 0xF0
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
    desc: 1x9 MiB
  Speed (MHz): avg: 4300 min/max: 800/4600 scaling: driver: intel_pstate
    governor: powersave cores: 1: 4300 2: 4300 3: 4300 4: 4300 5: 4300 6: 4300
    bogomips: 44398
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Gigabyte
    driver: nvidia v: 515.43.04 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-05) arch: Pascal pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Device-2: Microdia Sonix USB 2.0 Camera type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 0c45:62c0 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: gnome-shell driver: X: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :1 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: DP-0 pos: primary,top-right res: 2560x1440 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  Monitor-2: HDMI-0 pos: bottom-l res: 1920x1080 hz: 60 dpi: 93
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") modes: N/A
  OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.43.04 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
  Device-3: JMTek LLC. USB PnP Audio Device(EEPROM) type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:3 chip-ID: 0c76:161f
    class-ID: 0300
  Sound Server-1: ALSA v: k5.18.1-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8192EE PCIe Wireless Network Adapter
    driver: rtl8192ee v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: c000 bus-ID: 08:00.0 chip-ID: 10ec:818b class-ID: 0280
  IF: wlp8s0 state: down mac: <filter>
Drives:
  Local Storage: total: 1.36 TiB used: 35.02 GiB (2.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-60WN4A0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
Partition:
  ID-1: / raw-size: 90 GiB size: 90 GiB (100.00%) used: 34.99 GiB (38.9%)
    fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%)
    used: 25.6 MiB (26.9%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.99 GiB (38.9%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-4: /var/log raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.99 GiB (38.9%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-5: /var/tmp raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.99 GiB (38.9%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.57 GiB used: 1.6 MiB (0.0%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 53.0 C mobo: 16.8 C gpu: nvidia temp: 57 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 259 Uptime: 19m wakeups: 1 Memory: 15.57 GiB
  used: 3.47 GiB (22.3%) Init: systemd v: 251 tool: systemctl Compilers:
  gcc: 12.1.0 Packages: pacman: 1395 lib: 445 Shell: fish v: 3.4.1
  default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.16

Thanks in advance!

First of, update Firefox or Firedragon to version 101, has it includes fixes for hanging and crashing.

Secondly, not sure how it could be related to your particular situation, but if system lags, this thread could give ideas

3 Likes

Firefox already is at version 101.0, thanks for the links, I'll give them a read!

1 Like

Also check out htop to see what is causing the CPU hogs.

4 Likes

Please post garuda-inxi (instead of inxi -Faz).

I noticed you are using the powersave governor:

It is uncommon to see the powersave tweaks enabled on a desktop system. The primary reason people use powersave tweaks is for extending battery life on a laptop system. This governor may be throttling your CPU and contributing to the laggy behavior you have noticed.

Try enabling the performance tweaks instead, which you can do right from the Garuda Assistant settings tab:

2 Likes

It seems weird indeed, I just checked and these are my settings:

The only options I see which are different from your setup are the two power profiles daemon options enabled, should I disable them?
This is my garuda-inxi:

System:
  Kernel: 5.18.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=835c06a3-7bfa-4fde-b09c-1ba4ae1c2e3e rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: GNOME v: 42.2 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z370P D3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: Z370P D3-CF v: x.x serial: <superuser required>
    UEFI: American Megatrends v: F5 date: 07/05/2018
CPU:
  Info: model: Intel Core i5-9600K bits: 64 type: MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xC (12) microcode: 0xF0
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
    desc: 1x9 MiB
  Speed (MHz): avg: 4382 high: 4401 min/max: 800/4600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 4401 2: 4401 3: 4399
    4: 4398 5: 4336 6: 4358 bogomips: 44398
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Gigabyte
    driver: nvidia v: 515.43.04 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-05) arch: Pascal pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Device-2: Microdia Sonix USB 2.0 Camera type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 0c45:62c0 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: gnome-shell driver: X: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :1 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: DP-0 pos: primary,top-right res: 2560x1440 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  Monitor-2: HDMI-0 pos: bottom-l res: 1920x1080 hz: 60 dpi: 93
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") modes: N/A
  OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.43.04 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
  Device-3: JMTek LLC. USB PnP Audio Device(EEPROM) type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:3 chip-ID: 0c76:161f
    class-ID: 0300
  Sound Server-1: ALSA v: k5.18.1-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8192EE PCIe Wireless Network Adapter
    driver: rtl8192ee v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: c000 bus-ID: 08:00.0 chip-ID: 10ec:818b class-ID: 0280
  IF: wlp8s0 state: down mac: <filter>
Drives:
  Local Storage: total: 1.36 TiB used: 34.83 GiB (2.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-60WN4A0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
Partition:
  ID-1: / raw-size: 90 GiB size: 90 GiB (100.00%) used: 34.8 GiB (38.7%)
    fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%)
    used: 25.6 MiB (26.9%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.8 GiB (38.7%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-4: /var/log raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.8 GiB (38.7%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
  ID-5: /var/tmp raw-size: 90 GiB size: 90 GiB (100.00%)
    used: 34.8 GiB (38.7%) fs: btrfs dev: /dev/sda6 maj-min: 8:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.57 GiB used: 1.6 MiB (0.0%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 27.8 C mobo: 16.8 C gpu: nvidia temp: 55 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 270 Uptime: 58m wakeups: 1 Memory: 15.57 GiB
  used: 3.66 GiB (23.5%) Init: systemd v: 251 tool: systemctl Compilers:
  gcc: 12.1.0 Packages: pacman: 1397 lib: 445 Shell: fish v: 3.4.1
  default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.16
Garuda (2.6.3-2):
  System install date:     2022-05-31
  Last full system update: 2022-06-04
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Timeshift
  Failed units: 

@dr460nf1r3
I just checked and it seems like the systemd-journald is the problem. Don't really know what is it though.

Do you install old ISO or do you remove snapper for timeshift?

Something is spamming your journal with (most likely) a recurring error message or series of errors. You can look through journalctl -b to see if anything jumps out at you. Toss it in the PrivateBin if you'd like and we'll take a peek.

3 Likes

I manually added Timeshift (saw it in one of these "10 things to do after installing linux/garuda"), but it doesn't seem to work properly or I probably did something wrong, as it doesn't automatically snapshot n times per day as I selected in the app. I need to manually snap for the app. Was this Snapper better?

Seems like there's some issue with the kernel...
I put it in the PrivateBin, do I just share the link here or...? Not sure how it works.

Yes, exactly. Grab the link and paste it right into the thread. No one can see your PrivateBin stuff without the link.

Alright, here it is! :smile:

I'd try googling some of those error's like how pcie keeps being spammed. Maybe an issue or incompatibility with the kernel and your SSD? Maybe give LTS kernel a go incase it's driver related? Completely guessing here but worth trying some basic troubleshooting.

Hmm, the journal should be way longer than only 36 lines. I'm guessing that is just the first page of output. Try this:

journalctl -b > journal.txt

That will dump it into a text file. Then:

micro journal.txt

Ctrl + A to select all, copy and paste.

Uhm, when I run the command this came out from the terminal:

Journal file /var/log/journal/a29f1d83c87943998aece76bd648191c/[email protected]000000000000.journal corrupted, ignoring file.

Doesn't seem particularly good, anyway for some reason I'm not able to paste the entire text even after selecting all, copying the selection and pasting it... it just pastes around 43 lines of code, that seems really weird. I actually scrolled the file and it was 8000+ lines long, but I can't manage to copy/paste them.
EDIT: oh boy, there's actually 8.300.316 (eight million three hundred thousand three hundred sixteen) lines of stuff what the hell, is it normal?

I'll surely google something like that, thanks!

Googling around it seems like it could be a grub problem, as I have modified the default grub with a custom one downloaded from pling some days ago, can this be the issue?

You do not use standard Garuda Linux.
You follow some YT? video.
Not only that, but you destroy something.

You wonder about poor PC performance but now ask for advice here without mentioning these changes in the first post, although you should contact the originator?

I am out!

3 Likes

I mean, what is standard Garuda Linux? Out of the box freshly installed iso? Than no, I don't use it. I customized it with icons, themes and a grub theme, didn't think this would make Garuda Linux "non-standard". Was it necessary to specify it in the first post? I thought that this was what inxi -Faz was about to be honest, but apparently I'm wrong...

And what is an originator?

:man_shrugging: It could be. Post your /etc/default/grub into the thread, or at least the GRUB_CMDLINE_LINUX_DEFAULT line.

Whatever you did with Snapper sounds like it might be causing problems, since it sounds like it is broken from the way you described it. Snapper is a major piece of software.

SGS is pointing out that as people are trying to help you, you are slowly revealing different things you have done to modify your system that could be very relevant. We can't interact with your device and we only have a tiny snippet of output from your logs, so when you don't announce that you changed system components in a significant way we are left in the dark on some potentially important clues.

1 Like

I get it, sorry for wasting your time guys, it's that I don't really know if something is important to say or not... I honestly thought that the change on the grub was purely cosmetic, so why bring it up? Once I found out that it might have been a problem I immediately updated it here. And also the Snapper change to Timeshift, I thought I was just swapping an app which took snaps of the system with another one that did exactly the same. I really didn't know that it could've been a problem.
If I had to tell everything I did to fix the problems I faced it would've been a waste of everyone's time, or at least that's what I thought. I also followed this post to solve an issue with my dual monitor setup, is it important to specify that too? And I also had audio problems which I fixed with Alsamixer and Pavucontrol. I use the Sweet theme for Gnome, the same that KDE Dragonized Garuda uses, than I put some custom icons, cursor and I edited the login screen with gdm settings main. This should be everything I did "extra" in this distro.
But I'll just do a new fresh installation at this point, it might be the fastest way of solving the issue.
Thanks everyone, sorry for wasting your time.

No hard feelings @Gioltek, you can probably fix this if you want to avoid reinstalling--it would be helpful to see the rest of your log of course. :stuck_out_tongue_winking_eye:

I agree that installing a grub theme is probably harmless (paste /etc/default/grub), and I take your point that announcing every possible modification you have made is impractical/impossible.

It is unlikely your monitor configuration is related to this issue, but if Timeshift is not working correctly I would be immediately suspicious.

1 Like