Live data from Hacker News

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

bugzilla.mozilla.org

261–270 of 443 posts

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

#261

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

Gaming on a mid-tier modern GPU probably uses around 50-100w, the Steam stats probably have a number of users to multiply with. I'm sure it's a massive amount of power. I don't like video games and they are not-necessary so I propose that we ban them globally, or only allow gaming if using renewable energy. If you don't live in a place where this is an option, too bad! Maybe instead of this we require all games to be…

People get entertainment out of games. They got nothing out of this wasted cpu.

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

#262

Earlier quoted context omitted.

To save a search: "Ambient mode uses a lighting effect to make watching videos in Dark theme more immersive, by casting gentle colors from the video, into your screen's background."

Neat idea, I bet the intern had fun implementing it, why was it on by default?

[deleted]

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

#263
post #143

If you're on a Mac and using FF (probably not FF specific), turning off "ambient mode" 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 "ambient mode" was the culprit. My lap is now cooler and the fan doesn't turn on anymore. I wonder how much…

as I don't care about the comments section or the recommender algo, I search (youtube-fzf) and launch (yt-dlp + mpv) youtube videos directly from the terminal. i have a bash pipeline for this and, naturally, it is very resource efficient

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

#264

It's so frustrating this discussion took five years . I'd be grateful for an overview of the bug. I don't think I've seen it on my two systems but I can't be confident.

Windows Update and Windows Defender are notorious piles of shit that eat up huge amounts of CPU for seemingly no reason.

The problem is that there is zero incentive to get them right. Nobody is going to get promoted because they use 10% less CPU. Nobody is losing their bonus because 10% of all computers melt down. etc.

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

#265
post #170

Earlier quoted context omitted.

That's actually fairly clear in the title - the second clause depends upon the first.

Then why are comments assuming a large decrease in power consumption?

Because the bug is a frequent occurrence and the increased CPU usage is frequently noticeable?

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

#266
post #239

Earlier quoted context omitted.

Does Chrome really use significantly less resources than Firefox? Are there numbers there?

According to Tom's Guide[1] Microsoft Edge beats out both when it comes to RAM utilization but Chrome just edges out Firefox when loading >10 tabs. That was in 2021. I'd be interested to see any other comparisons or benchmarks. 1. https://www.tomsguide.com/news/chrome-firefox-edge-ram-compa...

This is with no extensions installed right?

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

#267
post #110

My only interaction with Windows Defender is the (undefeatable) nag popup every boot that warns me it is disabled.

If you use Windows Pro and Enterprise, you can use GPO to disable Defender. Just run gpedit.msc and edit a few of the policies to disable real-time protection etc. Under Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus - Turn off Microsoft Defender Antivirus -> set to Enabled Under Computer Configuration > Administrative Templates > Windows Components > Microsoft D…

You can also elevate to Trusted Installer or System and completely remove this garbage from your computer.

Alternatively, if you run windows server as your workstation OS, you can perform an uninstall using Remove-WindowsFeature from powershell.

The old gpedit tricks don't really work anymore in my experience.

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

#268
post #167
post #143

If you're on a Mac and using FF (probably not FF specific), turning off "ambient mode" 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 "ambient mode" was the culprit. My lap is now cooler and the fan doesn't turn on anymore. I wonder how much…

This is why I like terminal, rss, or other technologies where it’s hard to add this kind of fireworks to the UI. When done right, sure, they improves the user experience by some percentage. But when done badly, the UX goes down by orders of magnitude.

absolutely. besides, graphical UIs bombard the brain with everyone's unique take on visual aesthetics, consuming limited mental resources like attention

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

#269
post #245
post #195

Earlier quoted context omitted.

I just bought a Macbook because my dedicated Linux laptop, made by a popular Linux-only manufacturer, had so many issues that I got tired of diagnosing. I love Linux, but it's not a panacea for every computer issue under the sun, just a few of them. I, personally, am stoked I no longer have to deal with issues with this new machine, and can just take it into a Genius bar appointment to let someone else deal with it,…

With all the attention being paid to macOS these days, there's enough mods and addon's that I don't miss Linux so much on my laptop. Hammerspoon gets me drag and resize windows how I want, and there's Rectangle.app for tiling-ish window management. There's no /proc, and all the rest of the cli utilities are just wrong (netstat, route, top, etc) but I can live with my M1. (brew addresses a lot of the issues though, ev…

yabai is the full featured window manager for macos

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

#270
Looks like there's more work left to do to catch up to Chrome: https://bugzilla.mozilla.org/show_bug.cgi?id=1823634

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.

So it's not only the original problem of the events being handled inefficiently, it's also that the way they're generated is a bit of a black box and hard to predict without detailed performance tracing work.

Post reply on HN