[Webkit-unassigned] [Bug 155255] MemoryPressureHandler doesn't work if cgroups aren't present in Linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 14 02:34:11 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=155255

--- Comment #21 from Enrique Ocaña <eocanha at igalia.com> ---
(In reply to comment #16)

> In any case, if battery usage is more worrying than OOM for battery-backed
> devices, what about reading some environment variables when the object is
> created and enable polling on demand? We could even parameterize the memory
> limits (per each process) if we use env vars.

Nobody commented anything about this proposal of using an environment variable to enable and parameterize the new memory measurement alternative. It would be disabled if there's no environment variable defined and enabled otherwise. An example of how this environment variable could be defined:

export MEMORY_PRESSURE_HANDLER_MEMINFO=MiniBrowser:500M,WebProcess:100M/20M,*Process:500M/100M

The pattern is: MEMORY_PRESSURE_HANDLER_MEMINFO=<process-name-pattern>:[<optional-non-critical-limit>/]<critical-limit>, ...

I think this alternative would make everybody happy: no battery drain by default (when the variable isn't defined), and the memory exhaustion problem solved "if it's important enough for your use case and you know what you're doing".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160314/f5ce5a5e/attachment.html>


More information about the webkit-unassigned mailing list