TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

1163 pointsby ylereabout 2 years ago

33 comments

arnaudsmabout 2 years ago
Quick napkin math of the wasted power : Firefox has ~300e6 users, let&#x27;s assume the bug wasted 5 extra watts 4 hours a day.<p>That&#x27;s 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.
评论 #35516261 未加载
评论 #35515951 未加载
评论 #35520628 未加载
评论 #35515221 未加载
评论 #35515214 未加载
评论 #35517794 未加载
评论 #35519322 未加载
评论 #35518828 未加载
评论 #35516067 未加载
评论 #35516199 未加载
评论 #35515197 未加载
评论 #35516955 未加载
评论 #35515268 未加载
评论 #35516181 未加载
评论 #35519680 未加载
评论 #35515204 未加载
评论 #35520154 未加载
评论 #35577437 未加载
评论 #35524646 未加载
评论 #35516242 未加载
评论 #35515831 未加载
评论 #35516992 未加载
dgellowabout 2 years ago
&gt; mpengine.dll version 1.1.20200.4 was released on April 4, so the fix should be available for everybody now. See the end of comment 91 to know what version you are using. Also, the latest discoveries in bug 1822650 comment 6 suggest that we can go even further down in CPU usage, with all antivirus software this time, not just Windows Defender.<p>Really nice to see open collaboration between Mozilla and Microsoft development teams resulting in a net improvement for everybody.
评论 #35516115 未加载
评论 #35516472 未加载
评论 #35519040 未加载
评论 #35553911 未加载
cronixabout 2 years ago
If you&#x27;re on a Mac and using FF (probably not FF specific), turning off &quot;ambient mode&quot; in youtube can save 30% cpu. I just found this out while searching why FF was taking 90% of my cpu while watching youtube videos in normal mode, but went down to 40% use if viewing in full screen. Turns out that this youtube &quot;ambient mode&quot; was the culprit. My lap is now cooler and the fan doesn&#x27;t turn on anymore. I wonder how much power I&#x27;ve wasted due to this new &quot;feature&quot; they added 6 months ago that I didn&#x27;t know about.
评论 #35516687 未加载
评论 #35516840 未加载
评论 #35518119 未加载
评论 #35518837 未加载
评论 #35517555 未加载
评论 #35517494 未加载
评论 #35517521 未加载
评论 #35519083 未加载
评论 #35516627 未加载
评论 #35517919 未加载
评论 #35516649 未加载
dangabout 2 years ago
Recent and related:<p><i>Firefox engineers discover a Windows Defender bug that causes high CPU usage</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35458746" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35458746</a> - April 2023 (215 comments)<p>Is the current post significant new information* or just a repeat of that submission?<p>* <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=false&amp;sort=byDate&amp;type=comment&amp;query=%22significant%20new%20information%22%20by%3Adang" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=false&amp;so...</a>
NelsonMinarabout 2 years ago
It&#x27;s so frustrating this discussion took <i>five years</i>.<p>I&#x27;d be grateful for an overview of the bug. I don&#x27;t think I&#x27;ve seen it on my two systems but I can&#x27;t be confident.
评论 #35516321 未加载
评论 #35517939 未加载
评论 #35519730 未加载
jeffbeeabout 2 years ago
That&#x27;s one way to look at it, but a very biased take. An equally valid take is that Firefox was calling an expensive platform feature too often, and even though it has been killing performance for years (possibly, for the entire history of the project) nobody noticed or bothered to fix it on the application side.
评论 #35514648 未加载
评论 #35516239 未加载
评论 #35514789 未加载
评论 #35514806 未加载
whalesaladabout 2 years ago
My only interaction with Windows Defender is the (undefeatable) nag popup every boot that warns me it is disabled.
评论 #35516193 未加载
评论 #35515275 未加载
评论 #35515097 未加载
评论 #35516815 未加载
neilvabout 2 years ago
When I&#x27;ve heard people speak of changing Web browsers in recent years, I think the two most common reasons given are performance and privacy.<p>I wonder whether this situation with Microsoft Defender cost Firefox some market share.
评论 #35516568 未加载
somid3about 2 years ago
Conspiracy theory — could this have been done on purpose for browser share dominance purposes?
评论 #35517381 未加载
评论 #35519419 未加载
评论 #35517505 未加载
Animatsabout 2 years ago
How fast would this have been fixed if was Microsoft Edge that was wasting CPU time?
评论 #35516084 未加载
NelsonMinarabout 2 years ago
Interesting comment on Reddit from a Mozilla engineer: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;firefox&#x2F;comments&#x2F;12hxqjl&#x2F;comment&#x2F;jfs5tvy&#x2F;?utm_source=reddit&amp;utm_medium=web2x&amp;context=3" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;firefox&#x2F;comments&#x2F;12hxqjl&#x2F;comment&#x2F;jf...</a><p>Careful to talk about how this is entirely a fix for Windows and will improve the experience of folks using other software, not just Firefox.
MuffinFlavoredabout 2 years ago
What apps other than Firefox might this have affected that badly (75% CPU usage)?
评论 #35514898 未加载
评论 #35515282 未加载
评论 #35516852 未加载
评论 #35516454 未加载
评论 #35514496 未加载
评论 #35514610 未加载
评论 #35514870 未加载
nabakinabout 2 years ago
Firefox-related CPU use is only reduced by 75% when this bug is caused. NOT in the general case as this title implies
评论 #35516914 未加载
jiggawattsabout 2 years ago
Looks like there&#x27;s more work left to do to catch up to Chrome: <a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1823634" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1823634</a><p>That bug is more subtle. Apparently the various ways to use VirtualAlloc is not self evident, and some variations have wildly different performance characteristics due to undocumented interactions with Event Tracing for Windows (ETW) events that get sent to anti virus products.<p>So it&#x27;s not <i>only</i> the original problem of the events being handled inefficiently, it&#x27;s also that the way they&#x27;re generated is a bit of a black box and hard to predict without detailed performance tracing work.
dbg31415about 2 years ago
I have screamed about this like a crazy person and filed bugs and was always told, &quot;Meh there&#x27;s nothing there...&quot;<p>But if you use Firefox to call yourself on Chrome... you&#x27;ll see that Firefox takes up a TON more energy on an Intel MBP than Chrome does.<p>You can tell because Firefox literally heats your laptop up to do streaming videos. You hear the fans kick on, the laptop gets hotter to hold.<p>Anyway I&#x27;m sure there are more bugs like this! Glad Firefox is getting some of the people to fix their code... but look, Microsoft isn&#x27;t the only culprit. Until Firefox takes as little power as Chrome in MacOS &amp; Windows... I think we should all stay outraged! (=
tcfunkabout 2 years ago
I wonder if this is why Firefox often gets killed when I have other high-resource apps open?
qikInNdOutReplyabout 2 years ago
Good thing its a bug though, not a monopolistic attempt to sabotage the competition running on your platform, by doing strange things with API rodeo. This surely ruined the performance of other software too..
mmis1000about 2 years ago
Guess that&#x27;s why I never feel firefox laggy but others said it is. The first thing I do after installing windows is always installing some other antivirus to disable defender. Because the defender start routine scanning at weird time and lag games randomly, which is really annoying.<p>I really have no clue why engineer at ms think such behavior is ok. Shouldn&#x27;t scans like these scheduled at some time slot that people are not actively using computers?
评论 #35519972 未加载
gtop3about 2 years ago
I would like anyone that considers Microsoft to be a recent champion of Open Source to reflect on corporate doublespeak. It&#x27;s plausible that this bug was engineered as an attack on Firefox.
评论 #35514626 未加载
评论 #35514659 未加载
评论 #35514728 未加载
评论 #35514766 未加载
评论 #35514695 未加载
评论 #35514445 未加载
评论 #35514852 未加载
评论 #35515669 未加载
评论 #35514412 未加载
评论 #35516799 未加载
评论 #35515631 未加载
评论 #35514719 未加载
nnurmanovabout 2 years ago
Someone should create a website to list bugs that haven’t solved for years. Hall of shame. I myself could add couple from Oracle, hibernate
nabakinabout 2 years ago
Previous post:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35458746" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35458746</a><p>@dang
shadowgovtabout 2 years ago
Woof, that&#x27;s a long time for a bug like that to have sat around and Mozilla to not have come up with a workaround for it.
xystabout 2 years ago
yet another reason why I don’t touch Windows for any professional&#x2F;sensitive workflows.<p>Only keep a license around for the occasional gaming session. Disable all of the Windows features (ie, firewall, auto updates, antivirus) and telemetry. Strip the OS to bare minimum and manage the GPU, mobile drivers manually. Limit it to only games
subarcticabout 2 years ago
When you say reduced by 75%, would that mean, say, going from %40 to 10% or from 75% to 0%?
评论 #35516664 未加载
taericabout 2 years ago
I feel like this could&#x2F;should be a metaphor for airport security...
pomsenseabout 2 years ago
Most likely their devs using GPT4 and finally &quot;fixed&quot; it
PaulHouleabout 2 years ago
It’s hard to say that anti-virus isn’t worse than the virus.
wankleabout 2 years ago
Someone diverged the thread into Linux vs Mac. The point is, how did the evil Microsoft monolopy get away with not fixing this bug for so long.
Brosperabout 2 years ago
Wow Microsoft should say at least sorry to Mozilla and somehow repay them for this!
crestabout 2 years ago
&quot;bug&quot;
GrumpyNlabout 2 years ago
maybe AI helped them out.
MagicMoonlightabout 2 years ago
“Bug”
andrewstuartabout 2 years ago
DOS ain’t done till lotus won’t run.