Description of problem: When running Firefox as a wayland native application (as is default on Fedora 31) it consistently uses 15 - 30% CPU when idle. When being interacted with it uses significantly more CPU than the X11 version. This becomes a battery issue (which is how I noticed the problem) Version-Release number of selected component (if applicable): Name : firefox Version : 70.0.1 Release : 4.fc31 Architecture : x86_64 Size : 269 M Source : firefox-70.0.1-4.fc31.src.rpm Repository : @System From repo : updates Summary : Mozilla Firefox Web browser URL : https://www.mozilla.org/firefox/ License : MPLv1.1 or GPLv2+ or LGPLv2+ Description : Mozilla Firefox is an open-source web browser, designed for standards : compliance, performance and portability. How reproducible: Run Firefox under Wayland observe CPU usage, Run Firefox with X11 observe less CPU usage. Steps to Reproduce: 1. Run Firefox under Wayland Additional info: I'm not sure how to get a hard or consistent log that would be useful here. This is my observed behavior via htop. Happy to run diagnostics or collect any other logs that would be helpful.
Can you get a gecko profiler addon (https://profiler.firefox.com/) and capture/share the profiling data? Thanks.
https://perfht.ml/2qubiDT Here is the profile data, I just moved the mouse around over top of the browser a bit, opened and closed a blank tab.
Hm, I don't see anything wrong in the perf log, it just waits in g_main_context_dispatch. Can you try to enable all possible threads in the profiler? Thanks.
Wayland: https://perfht.ml/2CXFuKq XWayland: https://perfht.ml/2quhZ8Y I've enabled all threads, I've also included XWayland profiler results for comparison. I still see a 15 - 30% overhead in htop on the Wayland version of Firefox (it significantly effects battery life) Thanks for looking at this!
Hm, I can't find anything wrong there.
This message is a reminder that Fedora 31 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '31'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 31 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.