您尚未登录。

#1 2024-07-22 10:22:25

arterxu
会员
注册时间: 2023-12-02
帖子: 12

kwin_wayland CPU 超高

最近更新版本之后,电脑巨卡无比,发现什么都没有开的情况下kwin_wayland这个进程占用cpu就非常高
进程号 USER      PR  NI    VIRT    RES    SHR    %CPU  %MEM     TIME+ COMMAND                                                                                         
   1107 arter     -2   0 5537552 910624 526712 S  1673   2.8  29:51.37 kwin_wayland                                                                                   
   3833 arter     20   0  802720 168928 142264 S  18.2   0.5   0:07.94 terminator                                                                                     
   6574 arter     20   0   12808   8916   6996 R   9.1   0.0   0:00.01 top             


搜索一些资料像是kde的一个bug,没有找到办法临时修复
看到相似的问题:
https://forums.opensuse.org/t/cpu-usage … /168676/11
https://forum.manjaro.org/t/kwin-wayland-100-cpu/163772

$inxi -Ga
Graphics:
  Device-1: Intel Raptor Lake-P [UHD Graphics] driver: i915 v: kernel
    alternate: xe arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports:
    active: DP-1,HDMI-A-1 empty: DP-2,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:a720 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,vesa gpu: i915 d-rect: 4114x1234 display-ID: 0
  Monitor-1: DP-1 pos: primary,left res: 1920x1080 size: N/A modes: N/A
  Monitor-2: HDMI-A-1 pos: right res: 2194x1234 size: N/A modes: N/A
  API: EGL v: 1.5 platforms: device: 1 drv: swrast surfaceless: drv: swrast
    wayland: drv: swrast x11: drv: swrast inactive: gbm,device-0
  API: OpenGL v: 4.5 vendor: mesa v: 24.1.4-arch1.2 glx-v: 1.4
    direct-render: yes renderer: llvmpipe (LLVM 18.1.8 256 bits)
    device-ID: ffffffff:ffffffff memory: 30.35 GiB unified: yes
    display-ID: :1.0
  API: Vulkan Message: No Vulkan data available.


lspci:

$lspci                                           
00:00.0 Host bridge: Intel Corporation Raptor Lake-P 6p+8e cores Host Bridge/DRAM Controller
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [UHD Graphics] (rev 04)
00:06.0 PCI bridge: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port
00:0a.0 Signal processing controller: Intel Corporation Raptor Lake Crashlog and Telemetry (rev 01)
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
00:17.0 SATA controller: Intel Corporation Alder Lake-P SATA AHCI Controller (rev 01)
00:19.0 Serial bus controller: Intel Corporation Alder Lake-P Serial IO I2C Controller #0 (rev 01)
00:19.1 Serial bus controller: Intel Corporation Alder Lake-P Serial IO I2C Controller #1 (rev 01)
00:1d.0 PCI bridge: Intel Corporation Alder Lake PCI Express Root Port #9 (rev 01)
00:1d.1 PCI bridge: Intel Corporation Alder Lake PCI Express x1 Root Port #10 (rev 01)
00:1d.2 PCI bridge: Intel Corporation Device 51b2 (rev 01)
00:1e.0 Communication controller: Intel Corporation Alder Lake PCH UART #0 (rev 01)
00:1e.3 Serial bus controller: Intel Corporation Alder Lake SPI Controller (rev 01)
00:1f.0 ISA bridge: Intel Corporation Raptor Lake LPC/eSPI Controller (rev 01)
00:1f.3 Audio device: Intel Corporation Raptor Lake-P/U/H cAVS (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. NV2 NVMe SSD SM2269XT (DRAM-less) (rev 03)
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
04:00.0 Network controller: Intel Corporation Wi-Fi 6E(802.11ax) AX210/AX1675* 2x2 [Typhoon Peak] (rev 1a)

系统日志一直在报:
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
7月 22 10:23:02 ohYee kwin_wayland_wrapper[1199]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!

最近编辑记录 arterxu (2024-07-22 11:26:58)

离线

#2 2024-07-22 10:47:59

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,844
个人网站

Re: kwin_wayland CPU 超高

sudo perf top 看看能不能看到它在干什么。

离线

#3 2024-07-22 11:17:31

arterxu
会员
注册时间: 2023-12-02
帖子: 12

Re: kwin_wayland CPU 超高

依云大神来支持了,感谢

Samples: 117K of event 'cpu_atom/cycles/P', 4000 Hz, Event count (approx.): 59229731274 lost: 0/0 drop: 0/0
Overhead  Shared Object                     Symbol
   5.10%  [JIT] tid 29962                   [.] 0x00007ec3f9ab77e7
   4.92%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7b21
   4.91%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7e1c
   4.80%  [JIT] tid 29962                   [.] 0x00007ec3f9ab80d7
   3.34%  [JIT] tid 29962                   [.] 0x00007ec3f9ab79b6
   3.25%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7f6e
   3.24%  [JIT] tid 29962                   [.] 0x00007ec3f9ab820d
   3.20%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7c71
   1.98%  [JIT] tid 31010                   [.] 0x00007ba11f20faf5
   1.10%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7311
   0.70%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7358
   0.69%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7338
   0.69%  [JIT] tid 29962                   [.] 0x00007ec3f9ab740c
   0.67%  [JIT] tid 31010                   [.] 0x00007ba11f20fb32
   0.67%  [JIT] tid 29962                   [.] 0x00007ec3f9ab736b
   0.63%  [kernel]                          [k] native_queued_spin_lock_slowpath
   0.59%  [JIT] tid 31010                   [.] 0x00007ba11f20fadd
   0.54%  libc.so.6                         [.] 0x0000000000167787
   0.53%  [JIT] tid 31010                   [.] 0x00007ba11f20e402
   0.52%  [JIT] tid 31010                   [.] 0x00007ba11f20fa8b
   0.51%  [JIT] tid 29962                   [.] 0x00007ec3f9ab7706
   0.46%  [JIT] tid 31010                   [.] 0x00007ba11f20f848
   0.43%  [JIT] tid 31010                   [.] 0x00007ba11f20fa32
   0.40%  [JIT] tid 31010                   [.] 0x00007ba11f20faff
   0.40%  [JIT] tid 31010                   [.] 0x00007ba11f20f869
   0.39%  [JIT] tid 31010                   [.] 0x00007ba11f20fb0d
   0.37%  [JIT] tid 31010                   [.] 0x00007ba11f20fb11
   0.37%  [JIT] tid 31010                   [.] 0x00007ba11f20fb04
   0.36%  [JIT] tid 31010                   [.] 0x00007ba11f20fb25
   0.36%  [JIT] tid 31010                   [.] 0x00007ba11f20fb29
   0.36%  [JIT] tid 31010                   [.] 0x00007ba11f20fb54
   0.35%  libc.so.6                         [.] pthread_mutex_lock
   0.35%  [JIT] tid 31010                   [.] 0x00007ba11f20f8fe
   0.32%  [JIT] tid 31010                   [.] 0x00007ba11f20f85f
   0.31%  [JIT] tid 31010                   [.] 0x00007ba11f20faa8
   0.31%  [JIT] tid 31010                   [.] 0x00007ba11f20fbdf
   0.30%  [JIT] tid 31010                   [.] 0x00007ba11f20efd3
   0.28%  [JIT] tid 31010                   [.] 0x00007ba11f20faa0
   0.28%  [JIT] tid 31010                   [.] 0x00007ba11f20fa28
   0.28%  [JIT] tid 31010                   [.] 0x00007ba11f20f99a
   0.28%  [JIT] tid 31010                   [.] 0x00007ba11f20fba2
   0.28%  [JIT] tid 31010                   [.] 0x00007ba11f20fb1d
   0.25%  [JIT] tid 31010                   [.] 0x00007ba11f20fba8
   0.25%  [JIT] tid 31010                   [.] 0x00007ba11f20fb8f
   0.24%  [JIT] tid 31010                   [.] 0x00007ba11f20fb67
   0.24%  [JIT] tid 31010                   [.] 0x00007ba11f20f842

最近编辑记录 arterxu (2024-07-22 11:20:30)

离线

#4 2024-07-22 12:40:34

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,844
个人网站

Re: kwin_wayland CPU 超高

得装 -debug 包啦。不过这儿有个 JIT 字样,不知道能不能看到些啥。总之你先按回车看看是在哪个库文件里,然后装对应的 -debug 包。腾讯云有 -debug 包的镜像。

离线

#5 2024-07-22 19:40:28

arterxu
会员
注册时间: 2023-12-02
帖子: 12

Re: kwin_wayland CPU 超高

不会debug,看不出要debug哪个包?我对比另外一台电脑更新内容,看里面有linux-firmware-20240703.e94a2a3b-1,  盲猜是驱动更新有问题了,downgrade linux-firmware执行到上一个版本20240610.9c10a208-1没有问题了。

最近编辑记录 arterxu (2024-07-22 19:40:56)

离线

#6 2024-09-07 10:12:45

sunnysab
会员
注册时间: 2024-03-04
帖子: 1

Re: kwin_wayland CPU 超高

最近一段时间感觉笔记本比较烫,打开 Zotero 或 firefox 后,kwin_wayland 的 CPU 占用在 7%-16% 间跳动,并且 zotero-bin 或 firefox 进程也保持相似的 CPU 占用率。
将 linux-firmware 降级无法解决。

目前尚不清楚原因。你说有影响吧,电脑整天很烫。你说没有影响吧,它又占着 10% 左右的CPU。无奈。

最近编辑记录 sunnysab (2024-09-07 10:13:02)

离线

页脚