Nevuly / WSL2-Rolling-Kernel-Issue

Rolling Release Kernel for WSL2 Issue Report Repository
0 stars 0 forks source link

[BUG][DEV_TRACING] GUI apps are get slow to open #20

Open Nevuly opened 1 month ago

Nevuly commented 1 month ago

Windows Version

Windows 11

Kernel Release Channel

Stable Release

Kernel Version

6.10.x

Distro Version

All Of Distro

Other Software

-

Repro Steps

Reference this issue https://github.com/microsoft/wslg/issues/1250#issuecomment-2251888279

Expected Behavior

GUI apps are must operate quickly.

Actual Behavior

GUI apps are get slow, and GPU throw some exceptions.

Diagnostic Logs

No response

Nevuly commented 1 month ago

This issue try to trace about performance issue in GUI apps.

Nevuly commented 4 weeks ago

Log

4,76215,69176834,-;------------[ cut here ]------------
4,76216,69176837,-;WARNING: CPU: 6 PID: 1452 at include/linux/rwsem.h:85 track_pfn_remap+0x110/0x120
4,76217,69176841,-;Modules linked in:
4,76218,69176843,-;CPU: 6 PID: 1452 Comm: nautilus Tainted: G        W          6.10.5-WSL2-STABLE+ #1
4,76219,69176846,-;RIP: 0010:track_pfn_remap+0x110/0x120
4,76220,69176848,-;Code: 4f ff ff ff 5b b8 ea ff ff ff 5d 41 5c 41 5d e9 76 f3 1b 01 5b 48 89 f2 48 89 ef 31 c9 5d 4c 89 c6 41 5c 41 5d e9 a0 fc ff ff <0f> 0b eb a7 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
4,76221,69176850,-;RSP: 0018:ffff9f1786bdfab8 EFLAGS: 00010246
4,76222,69176853,-;RAX: ffff8eb1c632da00 RBX: 0000000000040000 RCX: 0000000000000000
4,76223,69176854,-;RDX: 0000000000000000 RSI: ffff8eb1c529b740 RDI: ffffffffb0126090
4,76224,69176856,-;RBP: 0000000a00ec6000 R08: ffff9f1786bdf9f0 R09: 0000000000000000
4,76225,69176857,-;R10: ffff9f1786bdfa18 R11: ffff8eb2b4e5a90c R12: ffff9f1786bdfae8
4,76226,69176859,-;R13: ffff8eb33e616dc8 R14: 0000000000040000 R15: 0000000000000000
4,76227,69176861,-;FS:  00007f65dd162d00(0000) GS:ffff8eb4b5180000(0000) knlGS:0000000000000000
4,76228,69176864,-;CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
4,76229,69176866,-;CR2: 00007f65c6a7e200 CR3: 000000013c442000 CR4: 0000000000350eb0
4,76230,69176867,-;Call Trace:
4,76231,69176869,-; <TASK>
4,76232,69176870,-; ? track_pfn_remap+0x110/0x120
4,76233,69176872,-; ? __warn.cold+0x8e/0xe8
4,76234,69176875,-; ? track_pfn_remap+0x110/0x120
4,76235,69176878,-; ? report_bug+0xff/0x140
4,76236,69176881,-; ? handle_bug+0x3a/0x70
4,76237,69176884,-; ? exc_invalid_op+0x17/0x70
4,76238,69176886,-; ? asm_exc_invalid_op+0x1a/0x20
4,76239,69176891,-; ? track_pfn_remap+0x110/0x120
4,76240,69176894,-; ? track_pfn_remap+0xa7/0x120
4,76241,69176897,-; remap_pfn_range+0x44/0xb0
4,76242,69176900,-; dxg_map_iospace.constprop.0+0xd3/0x170
4,76243,69176903,-; dxgvmb_send_lock2+0x1c3/0x200
4,76244,69176909,-; dxgkio_lock2+0x156/0x1b0
4,76245,69176912,-; dxgk_unlocked_ioctl+0xe/0x30
4,76246,69176914,-; __x64_sys_ioctl+0x97/0xd0
4,76247,69176918,-; do_syscall_64+0x6b/0x100
4,76248,69176920,-; ? srso_return_thunk+0x5/0x5f
4,76249,69176923,-; ? srso_return_thunk+0x5/0x5f
4,76250,69176925,-; ? free_unref_page+0x2c9/0x430
4,76251,69176930,-; ? srso_return_thunk+0x5/0x5f
4,76252,69176932,-; ? dxgvmb_send_wait_sync_object_cpu+0x128/0x1d0
4,76253,69176936,-; ? srso_return_thunk+0x5/0x5f
4,76254,69176938,-; ? srso_return_thunk+0x5/0x5f
4,76255,69176941,-; ? wait_for_completion_interruptible+0x5a/0x1e0
4,76256,69176944,-; ? srso_return_thunk+0x5/0x5f
4,76257,69176947,-; ? dxgglobal_remove_host_event+0x32/0x70
4,76258,69176950,-; ? srso_return_thunk+0x5/0x5f
4,76259,69176952,-; ? srso_return_thunk+0x5/0x5f
4,76260,69176954,-; ? dxgkio_wait_sync_object_cpu+0x24a/0x370
4,76261,69176958,-; ? srso_return_thunk+0x5/0x5f
4,76262,69176960,-; ? __rseq_handle_notify_resume+0xa6/0x4a0
4,76263,69176965,-; ? srso_return_thunk+0x5/0x5f
4,76264,69176967,-; ? syscall_exit_to_user_mode+0x60/0x120
4,76265,69176970,-; ? srso_return_thunk+0x5/0x5f
4,76266,69176972,-; ? do_syscall_64+0x77/0x100
4,76267,69176974,-; ? srso_return_thunk+0x5/0x5f
4,76268,69176977,-; ? syscall_exit_to_user_mode+0x60/0x120
4,76269,69176979,-; ? srso_return_thunk+0x5/0x5f
4,76270,69176981,-; ? do_syscall_64+0x77/0x100
4,76271,69176983,-; ? irqentry_exit_to_user_mode+0x46/0xf0
4,76272,69176986,-; entry_SYSCALL_64_after_hwframe+0x76/0x7e
4,76273,69176988,-;RIP: 0033:0x7f65df724ded
4,76274,69176990,-;Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
4,76275,69176992,-;RSP: 002b:00007ffee5efca40 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
4,76276,69176994,-;RAX: ffffffffffffffda RBX: 00007ffee5efcb00 RCX: 00007f65df724ded
4,76277,69176996,-;RDX: 00007ffee5efcab0 RSI: 00000000c0184725 RDI: 000000000000000e
4,76278,69176997,-;RBP: 00007ffee5efca90 R08: 0000000000000011 R09: 0000000000000000
4,76279,69176998,-;R10: 0000000000000001 R11: 0000000000000246 R12: 000055caa1d4f870
4,76280,69177000,-;R13: 0000000000000000 R14: 000055caa1f4f4d0 R15: 000055caa1e9e7b0
4,76281,69177005,-; </TASK>
4,76282,69177006,-;---[ end trace 0000000000000000 ]---

Repro Steps Execute nautilus in terminal and check kmsg

Expected Behavior Run nautilus application instantly.

Actual Behavior Run nautilus application after 10~30 seconds. And kernel appear call trace