New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 712176 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

ZSWAP Slows Down ARM Chromebook

Reported by tiago...@gmail.com, Apr 17 2017

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS armv7l 9202.64.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.146 Safari/537.36
Platform: 9202.64.0 (Official Build) stable-channel daisy_spring

Steps to reproduce the problem:
1. Have HP Chromebook 11 G1 at default tests.
2. Open Youtube video (h.264 480p) and browse the web until (z)swap gets used.
3. Notice slowdowns on the interface of software like the Youtube HTML5 player.
4. Turn /dev/zram0 swap off.
5. Youtube is now responsive, can pause, resume and go forward/backward on the video without interface stalls or delays. Activity on swap usage can be seen as this happens.

What is the expected behavior?
Swap on ZRAM should not slow down the machine. Upon disabling ZSWAP manually, everything is working as expected: the OOM killer is triggered much more often but everything works fine. Only minor slowdowns are experienced when the OOM needs to kill tabs. This is much better behavior than on regular Linux desktop, where lack of swap and free RAM will result in OOM lockups.

What went wrong?
It seems that the ZRAM module may be using more than 1 thread, so what I assume is higher priority from 2 kernel threads for 2 cores is starving the user space threads. Not sure of the underlying mechanism or how the 'zram' module is loaded, as a way to confirm if 1 thread for ZRAM would alleviate this issue.

Did this work before? No 

Chrome version: 57.0.2987.146  Channel: stable
OS Version: 9202.64.0
Flash Version: Shockwave Flash 25.0 r0

Youtube gets extremely unresponsive even though I'm running HW decoding through the use of the "h.264ify" extension - VP9 will be much harder on the CPU.
I've been running without ZSWAP for a couple of years now and turning it back on today was quite the bad experience. Most users experiencing this will probably replace the machine even though it is still quite decent when running no ZSWAP.
 

Comment 1 by tiago...@gmail.com, Apr 17 2017

Should have proof read. Above should read:

Steps to reproduce the problem:
1. Have HP Chromebook 11 G1 at default settings, w/ no root verification.
2. Open Youtube video and browse the web until (z)swap gets used.
3. Youtube HTML5 player interface becomes unusable, w/ even pause/resume massive delays. Activity on swap usage can be seen as this happens.
4. Turn /dev/zram0 swap off.
5. Youtube is now responsive, can pause, resume and go forward/backward on the video without interface stalls or delays. This is always the behavior with swap off.
Components: Internals>Media>Video OS>Kernel>Video
Cc: bccheng@chromium.org
Owner: rajatja@google.com
rajatja and Ben. Do you know who's familiar with zram?
Status: Assigned (was: Unconfirmed)
Cc: semenzato@chromium.org sonnyrao@chromium.org
+others

Comment 6 by rajatja@google.com, Jan 9 2018

Owner: vovoy@chromium.org
Vovo, do you know of a better owner to this?

Sign in to add a comment