this post was submitted on 27 Oct 2024
166 points (99.4% liked)

Linux

48222 readers
849 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

From time to time, often after I've restored from sleep or finished playing a Steam game, one of my CPU cores is pinned at 100% with no indication of what might be doing it. Running htop, btop, or GNOME system monitor all show the same thing: CPU0 at 100% while the rest are doing near-nothing, and no process in particular seems to be using those resources.

If I restart, it's back to normal, and sometimes I can play a game in Steam or let the computer go to sleep and it doesn't do this, but it happens often enough that's annoying/confusing so I'd like to know if there's a way to either (a) diagnose which processes are using which CPU cores, or (b) somehow "reset" the checking of these values to make sure that something's not just being misreported.

This is a desktop system running Arch & GNOME.

you are viewing a single comment's thread
view the rest of the comments
[–] piexil@lemmy.world 88 points 3 weeks ago (8 children)

Show kernel threads, it's a setting in the htop config menu that is off by default.

[–] danielquinn@lemmy.ca 50 points 3 weeks ago* (last edited 3 weeks ago) (7 children)

There it is! Thank you! It's a process owned by root called kworker/0:0+kacpid. Any idea what that is?

[Edit 1] Interestingly, I can't even kill -9 it.

[Edit 2] With kworker kacpid to work with, I did a quick search and found this SO page that has some interesting information that I only partially understand, but the following worked like a charm:

# grep -Ev "^[ ]*0" /sys/firmware/acpi/interrupts/gpe?? | sort --field-separator=: --key=2 --numeric --reverse | head -1
/sys/firmware/acpi/interrupts/gpe09:11131050     STS enabled      unmasked
# echo disable > /sys/firmware/acpi/interrupts/gpe09

It's not clear to me what an interrupt is or whether this gpe09 value is meant to be persistent across reboots, or why this only seems to be happening in the last couple months, but if I can make it go away by running the above from time to time, I guess it's alright?

[–] cmnybo@discuss.tchncs.de 45 points 3 weeks ago (1 children)

That's a kernel worker for ACPI. It sounds like you may have a driver for something that is misbehaving.

[–] Atemu@lemmy.ml 1 points 2 weeks ago

More likely is the device firmware and you likely can't fix that.

load more comments (5 replies)
load more comments (5 replies)