Bug 245427
Summary: | [GTK] High CPU usage when the browser window is in the background | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alberto Garcia <berto> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro, svillar, zan |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Alberto Garcia
I'm using epiphany 3.38.2 to access a chat webapp, which I normally have open but in the background when I'm not using it.
Since I upgraded to WebKitGTK 2.38.0 I notice that the browser starts to use a lot of CPU when it should be mostly idle. The problem seems to happen (this is my guess) when there's new activity in the chat room and disappears when I focus the browser window.
perf-top shows fast_composite_scaled_bilinear_sse2_8888_8_8888_none_OVER as the top symbol in the UI process, and the web process is constantly running different WebCore and JSC functions.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alberto Garcia
hmmm I'm not so sure that this didn't happen with 2.36 already...
Zan Dobersek
(In reply to Alberto Garcia from comment #0)
> I'm using epiphany 3.38.2 to access a chat webapp, which I normally have
> open but in the background when I'm not using it.
>
Possible to reproduce with MiniBrowser?
Alberto Garcia
(In reply to Zan Dobersek from comment #2)
> Possible to reproduce with MiniBrowser?
Yes, here's perf-top --sort=comm,dso
UI process:
46.14% MiniBrowser libc-2.31.so
25.47% MiniBrowser libpixman-1.so.0.40.0
6.17% MiniBrowser radeonsi_dri.so
5.37% MiniBrowser [kernel]
3.55% MiniBrowse:cs0 [kernel]
3.03% MiniBrowser libcairo.so.2.11600.0
1.98% MiniBrowser libglib-2.0.so.0.6600.8
1.38% MiniBrowser libgtk-3.so.0.2404.20
1.24% MiniBrowser libgdk-3.so.0.2404.20
0.71% MiniBrowser libgobject-2.0.so.0.6600.8
0.59% MiniBrowser libwayland-server.so.0.1.0
[...]
Web Process:
18.05% eadedCompositor radeonsi_dri.so
16.01% WebKitWebProces [kernel]
14.36% eadedCompositor libwebkit2gtk-4.0.so.37.57.3
13.94% WebKitWebProces libc-2.31.so
8.03% WebKitWe:gdrv0 radeonsi_dri.so
6.26% WebKitWebP:cs0 [kernel]
4.69% eadedCompositor [kernel]
3.55% ReceiveQueue libjavascriptcoregtk-4.0.so.18.21.3
2.38% WebKitWebProces libwebkit2gtk-4.0.so.37.57.3
1.68% eadedCompositor libc-2.31.so
1.43% eadedCompositor libjavascriptcoregtk-4.0.so.18.21.3
[...]
Sergio Villar Senin
FWIW I'm getting similar results with epy 42.4 but I've been observing this for a while. This is the perf top for the epiphany process alone
31,98% epiphany libpixman-1.so.0.40.0
16,62% epiphany libc.so.6
3,18% epiphany [kernel]
2,25% epiphany libcairo.so.2.11600.0
1,22% epiphany iris_dri.so
0,96% epiphany libglib-2.0.so.0.7200.3
0,87% epiphany libgtk-3.so.0.2404.30
0,45% epiphany libgdk-3.so.0.2404.30
0,34% epiphany libgobject-2.0.so.0.7200.3
0,13% epiphany [unknown]
WebProcess is low in the list of global offenders with ~2% of total CPU usage.
Alberto Garcia
Still happening with 2.39.3