CPU running 100% and freezing tasks

Hello there,

I’m on my first EOS birthday on these days! But that’s not the news.

Lately, I bought a tower PC with an Nvidia GPU from eBay, wiped the entire disk and installed EOS on it. It’s the first tower PC I’ve ever had, so I thought I wouldn’t chage my handgun this time. My previous laptop didn’t have a dedicated GPU, so I never had to struggle with Nvidia drivers.

I installed the package for Nvidia legacy drivers (nvidia-580xx-utils), as the graphic card (Nvidia GTX 1060 3GB) was not working with the latest ones, and everything seemed to work properly (at least from the GPU’s perspective). Eventually, during normal tasks (like watching a YouTube video on Brave), it happened to have some lags, disconnecting Bluetooth headphones, freezing video, and generally being less responsive than it should have been. 8GB DDR4 RAM wasn’t overcharged, so I started checking the CPU (Intel i5-9400F), and I noticed that it jumped regularly at 100% usage. When this happens, the computer obviously slows down. This doesn’t only happen when I’m actively using Brave, but also when I’m playing a non-expensive game, making it freeze for half-a-second. It’s becoming frustrating, because I bought that used PC mostly to play games with, and generally I would like a computer with these decent specifications to be at least fluid.

From the task manager I can’t really understand what program is causing the CPU overcharge: does anyone has any idea on what to do to lighten up processor usage?

Thanks in advance!

If you are using Plasma, then baloo is definitely a suspect. You can see if it’s the cause by running balooctl6 disable and seeing if the problem goes away. This will affect file search though. If it’s not the cause, reenable it by running balooctl6 enable

I’ve looked at it at first, but I couldn’t find Baloo in the Task Manager. Plus, It’s not always-always at 100% as it was with my laptop before disabling Baloo: when I leave it IDLE, CPU remains at more or less 20%, which is 19% more usage of my laptop when I leave it without touching it. It really looks like basic tasks are taking more CPU usage than they should.

Nevertheless, I’ll check for Baloo as soon as I come home tonight.

Which filesystem are you using? If it’s btrfs try turning off quotas:

sudo btrfs quota disable /mountpoint

with /mountpoint usually being /

I am using ext4 file system, so not really a problem on this side.

Update: I disabled Baloo, which was in fact running, but this didn’t solved the problem.

In the graphic down here, you can see the CPU during some normal operations: in the first part, the computer was IDLE, nothing opened, nothing running in background but the task manager itself. The first peak was the moment when I started moving the mouse around, simply pointing everywhere. Then, when I commanded the opening of Brave, you can see the CPU jumped 100% for some seconds, which is very annoying because it freezes the computer for some time. While I’m typing these lines, it stays calm at 20%.

Is this CPU usage strange? Am I doing something wrong?

In a case like this I would have htop open in terminal, make sure it also shows kernel processes and processes of other users, sort by CPU usage, and then start using the system, whilst monitoring the htop-window.

You took the words right out of my mouth.

Thanks both @SemLraug and @MyNameIsRichard, that’s what I did for a bounch of minutes. What I did has been opening YouTube, both from Brave and Firefox, and taking the first video available in the highest resolution for my monitor, and the problem presented again. Is it, somehow, possible that I have some problem with the GPU drivers, or something? I know that my GPU, during these tasks, doesn’t work above 2-3%, but since the CPU usage skyrockets when I enable 60fps…

Or, maybe, would it be possible that I somehow have something more “physical” wrong, like BIOS version or something? Could my CPU be damaged?

Could you share the output of this please:

sudo inxi -SMGmdjsxx --za

(I opted for sudo to pull some hopefully more accurate memory info)

Are you using hardware acceleration in the browser?

My output is the following:

System:
  Kernel: 6.19.11-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: KDE Plasma v: 6.6.4 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop System: HP product: HP Pavilion Gaming Desktop 690-01xx v: N/A
    serial: <filter> Chassis: type: 3 serial: <filter>
  Mobo: HP model: 843B v: 00 serial: <filter> part-nu: 6SZ92EA#ABF
    Firmware: UEFI vendor: AMI v: F.31 date: 05/27/2019
Memory:
  System RAM: total: 8 GiB available: 7.62 GiB used: 2.49 GiB (32.6%)
  Array-1: capacity: 32 GiB slots: 2 modules: 1 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 size: 8 GiB speed: 2666 MT/s
    volts: 1.2 manufacturer: SK Hynix part-no: HMA81GU6JJR8N-VK
  Device-2: ChannelB-DIMM0 type: no module installed
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] vendor: Hewlett-Packard
    driver: nvidia v: 580.142 arch: Pascal pcie: speed: 8 GT/s lanes: 16 ports:
    active: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-D-1 bus-ID: 01:00.0
    chip-ID: 10de:1c02
  Display: unspecified server: X.Org v: 24.1.10 with: Xwayland v: 24.1.10
    compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia,nvidia-nvswitch
    display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: HDMI-A-1 model: Samsung LS27D40xG res: 1920x1080 hz: 100
    dpi: 82 diag: 686mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.142
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1060
    3GB/PCIe/SSE2
  API: Vulkan v: 1.4.341 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:1c02
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
Drives:
  Local Storage: total: 1.94 TiB used: 88.96 GiB (4.5%)
  ID-1: /dev/sda vendor: Toshiba model: DT01ACA200 size: 1.82 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: LITE-ON model: CV8-8E128-HP size: 119.24 GiB
    speed: 6.0 Gb/s serial: <filter>
  Message: No optical or floppy data found.
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -1
    dev: /dev/sdb3
Sensors:
  System Temperatures: cpu: 62.0 C pch: 51.0 C mobo: N/A
  Fan Speeds (rpm): N/A

Is it somehow useful?

I don’t know that it’s your problem, but your machine is pretty anemic (memory wise), the OS/DE is gonna take about 4 GB, and the browser about 4 more with typical use.

I can say this:

And more or less everything that can be found in brave://gpu

.

Actually, with Steam, some apps and several browser tabs open I have less than 50% of used RAM. I am planning to take some more anytime soon, but I’m not as clunched as this.

Well, my comments are based on my own experience (with 32 GB).

I managed to install EOS with KDE Plasma on my old PC with 4GB DDR3, and make it work. I wouldn’t recommend it tho, but it was running smoothly with some apps (but it was nearly impossible to compile code, as an example). I can play most of my games with 8GB, but I’m planning on doubling the memory size just to be sure.

You can see the total used memory in my previous reply.

Update: disabling hardware acceleration didn’t solved the problem. I really feel like tasks are taking more CPU resources than they should, that’s why I suggested that the CPU could have some problems.
Update [2]: after an afternoon of investigations, I think I can confirm that the problem comes from the Hardware acceleration, but not only for Brave. As I said, I have an Nvidia GTX 1060 3GB, which is driven by nvidia-580xx drivers since it has Pascal architecture.
To be short about what I learned, my CPU is doing all the work for what concerns video decoding, and since I have an F-series Intel CPU, which does not have an integrated GPU, all this work is done by the part that should do a CPU-only task, causing the 100% CPU usage as soon as I do something with Brave, or other apps.
I’m thinking about replacing my CPU with one that has an integrated GPU processor, changing my GPU or, if nothing works, switching my OS, even if I still don’t know to what.
If anyone has any other suggestion, I’m taking it.

I realise now I neglected to request your CPU info in my earlier inxi command :downcast_face_with_sweat:

inxi -Ccsxx --za

CPU’s are rarely the cause of issues, with perhaps the rare exception that was Intel’s 13th and 14th gen CPU’s.

The more likely issues are other components, impacting them. Cooling (or lack of) perhaps, or BIOS config, or motherboard damage, insufficient power (but typically presents as memory faults, not slowdowns).

And integrated GPU in an Intel series processor is going to be… well… stick with your GTX 1060 frankly :sweat_smile:

[1] here is the output of the instruction:

CPU:
  Info: single core model: Intel Core i5-9400F bits: 64 arch: Coffee Lake
    rev: A cache: L1: 64 KiB L2: 256 KiB L3: 9 MiB
  Speed (MHz): 1100 min/max: 800/4100 core: 1: 1100 bogomips: 5799
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Sensors:
  System Temperatures: cpu: 35.0 C pch: 44.0 C mobo: N/A gpu: nvidia
    temp: 31 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 36%

Edit: wait a second, why is it saying “single core model”?

[2] Maybe I wasn’t clear: I am not thinking of switching my dedicated GPU with an integrated GPU, but more about just chosing a CPU with an integrated one to be able to use video decoding with it. If I understood the problem, my GPU cannot do the video decoding, forcing the CPU to do all the graphics work with some applications.

Maybe, a valid alternative would be to switch to an AMD GPU, which has open source drivers and better supports its components on Linux.