5 ms·
Neither of those bugs have to do with 100% CPU on rMBP. Their about using an inefficient presentation path which increases GPU power usage. You can mitigate thi
by muizelaar 8y ago
Neither of those bugs have to do with 100% CPU on rMBP. Their about using an inefficient presentation path which increases GPU power usage. You can mitigate this today by setting gfx.compositor.glcontext.opaque to true. Further, Firefox Beta has additional texture upload performance improvements that will reduce cpu usage.
If you're actually experiencing 100% cpu usage, post a profile using https://perf-html.io/ https://perf-html.io/ and I can try tell you why.
- ericabiz 8y agoSteps to reproduce: 1) Pick a rMBP. Any one. 2) Set display options - "more space" under System Preferences. 3) Run Firefox. Load any website. No extensions; safe mode doesn't matter. 4) 100%+ CPU, fans kick up and run high, system gets hot and slows to a crawl. Chrome and Safari run totally fine under the same conditions. It's documented pretty thoroughly in the first Bugzilla link I posted; the second one is an offshoot where they're trying to solve this specific issue. If you do happen to work at Mozilla, would really appreciate your help escalating. EDIT: I now have a perf file showing significant issues when clicking on a YouTube video. It gives an error when trying to upload it to the site, but if you contact me through email (in my HN profile), I can send it over.
- exikyut 8y agoI don't have a rMBP, and others who may be curious to help may not either. Uploading performance profiles from various websites to the mentioned URL will give everyone something to poke at.
- mycelium 8y agoI spent a few minutes trying to replicate on a MacBook Pro (Retina, 13-inch, Late 2013) with Firefox 62.0.2 and could not replicate, browsing a number of resource intense sites.
- ericabiz 8y agoInteresting, as this is the same MBP I have, and same Firefox version. I now have a perf file showing the issue. Can't upload it (it gives an error), but would be happy to send it to anyone who thinks they can help.
- Groxx 8y agoI've been doing this since the first-gen rMBP, and I've never had this issue. No matter my scaling, I idle at about 5% CPU with about 80 tabs and 10 windows actively open.
- JonathonW 8y agoCan't reproduce that here (on either of two different machines)-- something else may be going on on your machine.
- inetknght 8y agoI'm not sure what it is with your MBP but my Firefox does the same thing anytime I open a phys.org page -- one Firefox at work using Ubuntu 16.04 and the other at home using Windows 7 both exhibit it. Edit: Actually I just checked and the Windows 7 machine doesn't do it any more. I'm not sure if maybe a Firefox update fixed that here. I'll double check at work tomorrow too
- muizelaar 8y ago1) I'm running a MacBook Pro (Retina, 15-inch, Mid 2015) 2) My display options are set to "more space" 3) I loaded this hackernews thread. 4) Firefox and it's child processes are using <1% cpu. If I aggressively scroll this page I can push the cpu usage up. We have a variety of fixes in the pipeline that will help with this (https://bugzilla.mozilla.org/show_bug.cgi?id=1429522 https://bugzilla.mozilla.org/show_bug.cgi?id=1429522, https://bugzilla.mozilla.org/show_bug.cgi?id=1265824 https://bugzilla.mozilla.org/show_bug.cgi?id=1265824). That being said, only 4.7% of our users are on MacOS so it's more difficult to justify prioritizing work specific to that platform.
- gpm 8y ago4.7% of your users, but what percentage of web developers? If that second number is substantially higher (and I personally suspect it is, but I don't have data backing that up) I think it would be very reasonable for Mozilla to prioritize MacOS. Getting web developers to use firefox makes firefox work better for everyone because it makes more sites work well with firefox.
- bholley 8y agoYeah, we do prioritize Mac disproportionately to its market share for that reason. It does sometimes happen that we have to make hard calls though, and that's what Jeff is referring to. On that note, one of the key motivators behind WebRender (our new graphics backend) is that it provides hardware acceleration across all platforms, including mac (whereas our current Direct2D acceleration works only on Windows). So Mac graphics performance should generally improve once we get that shipped.
- dwaltrip 8y agoFirst off, thank you for all of your hardwork. I'm grateful for the existence of Mozilla. However, I would like to ask... 4.7% translates to how many millions of people?
- sjwright 8y ago4.7% of your users... and how much of that is because you are finding it difficult to prioritise work specific to that platform? It sounds like a chicken-and-egg problem to me.
- cmurf 8y agoAll I have to do is load gmail and it'll hit over 100% CPU in top. Usually between 125% and 175%. http://bit.ly/2QaGqzJ http://bit.ly/2QaGqzJ
- muizelaar 8y agoThat profile shows all of the time being spent in script execution. Are you sure that setting a different resolution has a dramatic effect on the amount of CPU being used?
- cmurf 8y agoNope. I'm not the Retina Mac person. I'm gonna guess a lot of sites make the system busy with scripts, they all post 100+% CPU loads, fans go on, system gets warm - just to load them. Every once in a while the go nuts well after loading and I'll see a Web Content process over 100% and just stay there but I don't know which tab is causing the problem, so I usually end up killing the whole browser.