Bug 101711 - [chv] Heavy web pages makes rendering stuck for few minutes, or until web browser is terminated
Summary: [chv] Heavy web pages makes rendering stuck for few minutes, or until web bro...
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 17.1
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-06 22:06 UTC by russianneuromancer
Modified: 2018-05-05 18:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg of Linux 2017-07-06 drm-tip with drm.debug=0x1e log_buf_len=1M (1009.28 KB, text/plain)
2017-07-06 22:06 UTC, russianneuromancer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description russianneuromancer 2017-07-06 22:06:57 UTC
Created attachment 132484 [details]
dmesg of Linux 2017-07-06 drm-tip with drm.debug=0x1e log_buf_len=1M

Hello!

Rendering of heavy web pages like pages with many gif images (https://www.theverge.com/tech) maps, just heavy web-sites, frequently lead to state that looks like GPU hang - while tablet is accessible via ssh, rendering on display just stop for a few minutes (or sometimes until web browser is terminated) however /sys/class/drm/card0/error return "No error state collected". Killing web browser process could bring system to life faster, however this is possible only remotely which is not an option for tablet (hence critical severity).

First example:
Enable GPU rendering in Chrome/Opera/Chromium settings. (Also reproducible with disabled GPU rendering.)
Visit https://www.theverge.com/walt-mossberg-verge
Scroll down to "MOSSBERG: THE DISAPPEARING COMPUTER" animation, wait few seconds.

Second example:
Disable GPU rendering in Chrome/Opera/Chromium settings. (Also reproducible with enabled GPU rendering, but less frequently, so keep it disabled for this particular page.)
Visit https://www.theverge.com/tech
Slowly scroll this page up and down, few seconds later rendering will stuck.

Hardware:
Dell Vanue 8 Pro 5855 with x5-Z8500 CPU.

Software:
Ubuntu Gnome 17.04 x86_64
Linux 4.12.0rc7 and Intel drm-tip kernel (cod/tip/drm-tip/2017-07-06, cefc82aab8bb8ec201e922cf23d227c47845094c)
Mesa 17.1.2, libdrm 2.4.80
Issue is reproducible with both of modesetting DDX and intel DDX.
Display is rotated in System Settings.
I reproduced this issue with Opera web-browser (45, 46, 47).
Comment 1 russianneuromancer 2017-07-19 21:39:25 UTC
I find that this issue is reproducible only with HD/2GB RAM version of Dell 5855, and does not reproducible with FHD/4GB RAM version of Dell 5855.

I also was able to reproduce this issue with Linux 4.12.2.
Comment 2 russianneuromancer 2017-08-01 20:46:23 UTC
Issue is still reproducible on Linux 4.13rc3 with Mesa git (17.3~git170731230100.df61a05~z~padoka0) and Intel DDX git (2.99.917+git1708011513.2100efa~x~padoka0).
Comment 3 Chris Wilson 2017-08-23 08:44:53 UTC
If your working-set size does hit swap, then you are in for a terrible time. For the borderline case, https://cgit.freedesktop.org/~ickle/linux-2.6/log/?h=shrinker should hopefully help.

vmstat is a good guide to see if the system is stuck on [swap] io.

But ultimately if the working-set is larger than RAM, the only recourse is to reduce it.
Comment 4 russianneuromancer 2017-08-31 23:11:30 UTC
Hello!

Thank you for looking into this

> If your working-set size does hit swap, then you are in for a terrible time. For the borderline case, https://cgit.freedesktop.org/~ickle/linux-2.6/log/?h=shrinker should hopefully help.

In this round of testing (with "shrinker" kernel and upstream 4.13rc6) I noticed that now animation playback is struggle few times before it completely stuck (earlier it always happened on first playback). Unfortunately I didn't find noticeable difference between "shrinker" kernel and upstream 4.13rc6.

Later, while I tested 4.13rc7, I also find that if I switch to another tab in the beginning of playback, and give system enough time to push data from RAM to swap, then I can switch back, let browser playback animation, and does not get freeze anymore - does it give hint where root cause can be?
Comment 5 fawad 2018-05-05 18:52:19 UTC
Thanks, I am looking for this I appreciated 
https://fawadkhan.me


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.