Skip to content

Instantly share code, notes, and snippets.

@GaryLee
Last active March 30, 2025 01:08
Show Gist options
  • Select an option

  • Save GaryLee/e08ae4af880a202c3ee8dfd273533922 to your computer and use it in GitHub Desktop.

Select an option

Save GaryLee/e08ae4af880a202c3ee8dfd273533922 to your computer and use it in GitHub Desktop.
處理高ACPI interrupt造成high CPU usage的問題

References

Description

當使用top命令看到類似於下面的command佔據極高的CPU usage(可能高達20%~30%)。

kworker/0:xx-kacpi_notify

透過下面的命令來列出系統上的ACPI interrupt.

grep . -r /sys/firmware/acpi/interrupts | grep -v " 0"

找到有STS的那個gpe interrupt. 例如,看到下面這樣的字樣

/sys/firmware/acpi/interrupts/gpe6F:203678841 STS enabled unmasked

使用下面的命令,將其關閉

echo "disable" > /sys/firmware/acpi/interrupts/gpe6F

再重新使用top命令看看,是不是該command已經消失,同時CPU loading下降至正常水準。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment