microsoft / microsoft/WSL

Windows Defender is fcking the performance of Windows 11 WSL2

Open
#8,995 77 comments 119 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Version

Windows 11 22H2

### WSL Version

- [X] WSL 2
- [ ] WSL 1

### Kernel Version

_No response_

### Distro Version

all

### Other Software

_No response_

### Repro Steps

turn off windows defender real protection
check any app using wsl2 network drive for indexing or reading.
Turn on windows Defender real protection
Try again.

### Expected Behavior

Windows Defender should NOT make WSL2 useless for IntelliJ IDEA , PhpStork , Raider IDE etc.

### Actual Behavior

the reindexing stuck on all not Microsoft owned IDEs

### Diagnostic Logs

I know Microsoft wants people to use VScode but this is just Ugly and super bad practice.

To force people to use stupid editor because Windows Defender is making other IDEs useless in WSL2 is just a dick move.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides only reproduction steps involving Windows Defender real-time protection, WSL2 network-drive access, and IDE indexing; no files, tests, or diagnostic logs are identified. Start by reproducing the indexing stall with Defender enabled and disabled, then determine whether a WSL2 or Defender change is needed; done means affected IDEs no longer stall while accessing WSL2 files.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems, performance, security
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.