Bug 171789 - [GTK] High CPU usage w/o interaction, w/o javascript
Summary: [GTK] High CPU usage w/o interaction, w/o javascript
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-07 03:32 PDT by ManDay
Modified: 2020-06-30 13:33 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ManDay 2017-05-07 03:32:19 PDT
I noticed that at least on the following webpage:

https://www.notebookcheck.com/Test-HP-Spectre-x360-13-Convertible.180988.0.html

MiniBrowser from 2.16.1 has a high CPU usage, constantly, even without interaction (the window is not mapped) and JS disabled.
Comment 1 ManDay 2017-05-07 03:41:24 PDT
I've tried this under weston and sway, and it appears that under weston (when on a different desktop, i.e. the window unmapped), the CPU usage is about 14% constantly whereas with sway (different desktop), the usage is about 40% constantly, and sway, too requests more CPU than weston.

I guess if no one can reproduce this then this is likely to have to be a problem more related to sway than to WK (there have been various problems with GTK in the past which appeared only or more frequently in sway than in weston).

The CPU is an i5-6267Z (4 hyperthreaded cores)
Comment 2 ManDay 2017-05-07 03:41:58 PDT
i5-6267U
Comment 3 Michael Catanzaro 2017-05-07 12:43:21 PDT
I can't reproduce this.
Comment 4 ManDay 2017-05-07 22:22:46 PDT
It's

webkitgtk 2.16.1
weston 2.0.0-73-geca5cca
gtk 3.22.12

for me and when, for example, I open this bug with javascript enabled, turn javascript off (through MiniBrowsers settings dialog), navigate to the link mentioned above, let the page fully load and tab to another weston desktop, top shows

25% MiniBrowser
14% WebKitWebProcess

where the percentage actually varies from run to run but remains constant when I go "back" to bugzilla (usage drops to 0) and "forth" to the example page within one instance.
Comment 5 ManDay 2017-06-03 10:19:42 PDT
FWIW, here is another example which gives even heavier load (>90%)

http://smartwatch-im-praxistest.de/produkt/casio/casio-wsd-f20-pro-trek/
Comment 6 Carlos Garcia Campos 2017-09-04 23:57:24 PDT
Could this be a dupe of bug #175942? Could you try again with 2.17.92 or trunk?
Comment 7 Jan-Michael Brummer 2020-06-30 13:33:15 PDT
I'm also affected on my tablet + 4k monitor and on pinephone, both running Wayland.

CPU Load on the below test pages:
---------------------------------
4k screen (Wayland) : 100% load
Full-HD (Wayland)   : 45% load

4k + FHD (X)        : 10% load

How can i debug this issue?