microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

MSRDC outputs diag logs into %TEMP%, issue 978 reoccurs #1260

Open vladsadovsky opened 1 week ago

vladsadovsky commented 1 week ago

Windows build number:

10.0.22631.3737

Your Distribution version:

Ubuntu 24.04

Your WSL versions:

WSL version: 2.2.4.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.61 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26091.1-240325-1447.ge-release Windows version: 10.0.22631.3737

Steps to reproduce:

Running WSL2 VM produces excessive ETL output in normal operation. The issue appears identical to #978, which is closed in 2023

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

Not seeing significant amount of trace files in normal operation, unless requested.

Actual behavior:

Simply running WSL2 VM with VSCode as a GUI app, produces steady diagnostic output. As observed in ResourceMonitor there is a steady writing at the rate of 40+ KB/s, which accumulates over time. ETL logs are not cleared on reboot, continuing to waste space.

An example listing of diagnostic directory content

06/17/2024 01:36 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240617-155413-606.etl 06/18/2024 02:50 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240617-203605-808.etl 06/18/2024 09:19 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240618-215038-997.etl 06/19/2024 05:35 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240619-041900-483.etl 06/19/2024 11:50 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240620-003556-744.etl 06/20/2024 11:50 PM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240620-065017-834.etl 06/22/2024 08:32 AM 16,252,928 RdClientAutoTrace-WppAutoTrace-20240622-153202-397.etl 06/22/2024 08:35 AM 17,301,504 RdClientAutoTrace-WppAutoTrace-20240622-153500-977.etl 06/23/2024 05:31 PM 14,680,064 RdClientAutoTrace-WppAutoTrace-20240624-003100-613.etl 06/24/2024 10:40 AM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240624-162443-887.etl 06/24/2024 11:35 AM 104,857,600 RdClientAutoTrace-WppAutoTrace-20240624-174029-915.etl 06/24/2024 11:35 AM 0 RdClientAutoTrace-WppAutoTrace-20240624-183543-888.etl