loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.44k stars 310 forks source link

Running the DevPod gui causes Microsoft Defender to consume large amounts of CPU! #956

Open Gaff opened 4 months ago

Gaff commented 4 months ago

What happened?

Running the DevPod gui causes Microsoft Defender Antivirus Software to consume large amounts of CPU!

Quiting devpod causes the CPU from Microsoft Defender to go back down.

What did you expect to happen instead?

I'd expect it to use little CPU!

How can we reproduce the bug? (as minimally and precisely as possible)

For me it was as simple as starting the GUI. No running devpod pods or other docker containers.

Local Environment:

DevPod Provider:

Anything else we need to know?

Seems like minimusing to the system tray causes it to reduce CPU losd

89luca89 commented 4 months ago

Hi @Gaff do you have any special setup for defender? On my test machine this does not happen and I can't reproduce

Gaff commented 4 months ago

ok - it's definitely weird. I don't think I have anything special going on. I'm using windows 10 and operating on fairly old hardware (i5-4670). Though I don't see how that's particularly relevant.

I see Defender Antivirus at 20-40% CPU with the GUI open and a workspace created 2-5% without. Seems if no workspaces are created there's no load - so check that?

If nobody else can reproduce then I guess I'll chalk it up to software-rot on my machine; it's certainly strange though!

89luca89 commented 4 months ago

Got it, my test machine is a plain W11 machine, maybe something to do with W10

Will try to reproduce :+1:

Gaff commented 4 months ago

image

Seems to correspond with the visibility of the GUI. I must say there's a lot of process churn when the GUI widget is visible (pictured) that goes away when it's minimised to the system tray.