Live data from Hacker News

Firefox engineers discover a Windows Defender bug that causes high CPU usage

bugzilla.mozilla.org

211–220 of 223 posts

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#211
post #143
post #65

Earlier quoted context omitted.

windows users will also happily "run as administrator", while a lot of linux users know not to do that in my experience

Honestly...I'm far for afraid of my $HOME being uploaded somewhere. You don't need "run as administrator" for that.

> You don't need "run as administrator" for that.

This is what makes it so doable since you don't need any privilege escalation.

The reason why this is a big deal for a lot of people is your ssh keys will give you access to your git repos and other servers unless you have them password protected or use gpg/sk ssh keys which I think a lot of people don't do.

And of course if you can see the known hosts file/bash_history you'll likely have access to more servers to propagate to.

Also things like your browser cache is stored there.

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#212

Windows Defender is a long standing bug in the Windows operating system. ;) My impression is that its invention was for the sole purpose of eradicating the idea that Windows is insecure and prone to viruses, which explains why it can be overzealous and CPU hungry. I would only enable it for family members who don't know what they are doing. For some reason, I haven't needed any form of active virus scanning in someth…

It was consuming 25% of CPU while I was rendering a frame with Arnold on 3D Max. Thankfully, I'm not a professional (and thankfully, I moved to Gentoo).

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#213

Well, windows defender is the single largest CPU hog Ive found on these low end cherry trail/silvermont/goldmont/etc tablets. Particularly when windows update kicks on the CPU's go to 100%, the thing overheats, and generally is absolutely unusable as it downloads and scans/etc the update its preparing. The devices go from usable but slow, to put it down for a couple hours cause you won't get anything done levels of u…

Re:24h

If you disable it and leave the security window, it automatically turns on again. It's bullshit.

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#214

Earlier quoted context omitted.

Next: internal combustion engines doing more heat than torque.

That's a feature in winter. Portable propane heaters for cars are a thing. I think they'll sell a lot for EV cars.

I don’t know. It’s not a thing in Norway and we have plenty of gaz, electric cars, and cold weather.

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#215
post #53

> a ~75% CPU usage reduction was noted when browsing YouTube in Firefox I wonder how many of the people who say "Firefox is significantly slower than chrome" are using windows... On my computer, Firefox IS slower than chrome but (with ad blockers enabled) by an insignificant amount. By still being "the last remaining mostly independent, maintained and reasonably popular browser" I'd prefer it to use over chrome even…

I just ran a test at https://browserbench.org/Speedometer2.1/ Firefox scored 89.5 ±1.7 Chromium scored 87.3 ±2.9 I guess that means Firefox did faster for those tests. I don't use Chrome or Chromium based browsers in general so I don't know how they compare in "feel". I am on Linux.

I obtained 86 on Linux but I am on a very old Dell PC Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz. Firefox has 16 addons and is running in Firejail and CPU reniced.

Just for fun I also ran it on a Windows 11 mini-PC Ryzen 9 6900HX 3.3 GHz with no addons and obtained:

Edge: 291

Firefox: 196

I do not have Chrome installed but I believe Edge may be some fork of Chrome?

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#217
post #143

Earlier quoted context omitted.

Honestly...I'm far for afraid of my $HOME being uploaded somewhere. You don't need "run as administrator" for that.

> You don't need "run as administrator" for that. This is what makes it so doable since you don't need any privilege escalation. The reason why this is a big deal for a lot of people is your ssh keys will give you access to your git repos and other servers unless you have them password protected or use gpg/sk ssh keys which I think a lot of people don't do. And of course if you can see the known hosts file/bash_histo…

Plenty of dangerous things stored in `~/`, they don't even need password for ssh-key if there is ssh-agent running (this is in case of dangerous process running, not just upload).

This is why I store keys on a hardware key that requires me to touch it when used and manually start ssh-agent when doing a lot of `git push`.

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#219
post #67
post #4

TL;DR: Windows Defender had a bug that made certain system calls expensive on CPU cycles when Defender's Real-time Protection feature is enabled. After discovery, Mozilla reported this issue to Microsoft. Microsoft is releasing a patch that should result in lower CPU usage when using Firefox on sites like YouTube (a ~75% CPU usage reduction was noted when browsing YouTube in Firefox with the fixed version of Defender…

I'm curious how much excess energy has been consumed, and won't be consumed any longer, as a result of this improvement - even just limited to reduced CPU usage on Windows machines using Firefox to watch Youtube. I love thinking about the impacts of tiny improvements at scale like this, might do some napkin math on it later and see if I can come up with something in the right order of magnitude.

Now calculate the man years lost to fixing strings represented as exponents in excel.

Re: Firefox engineers discover a Windows Defender bug that causes high CPU usage

#220
post #53

> a ~75% CPU usage reduction was noted when browsing YouTube in Firefox I wonder how many of the people who say "Firefox is significantly slower than chrome" are using windows... On my computer, Firefox IS slower than chrome but (with ad blockers enabled) by an insignificant amount. By still being "the last remaining mostly independent, maintained and reasonably popular browser" I'd prefer it to use over chrome even…

I just ran a test at https://browserbench.org/Speedometer2.1/ Firefox scored 89.5 ±1.7 Chromium scored 87.3 ±2.9 I guess that means Firefox did faster for those tests. I don't use Chrome or Chromium based browsers in general so I don't know how they compare in "feel". I am on Linux.

That's interesting.

M1 Pro 8 core

Safari: 133

Firefox: 221

Chromium: 339

Post reply on HN