[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
Fri Mar 11 12:08:07 PST 2016


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

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

> Looks good to me, but I think it makes sense to have someone more closely
> involved with the port sign off an polling proc every second.

Ok.

> > Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp:56
> > +static const size_t s_memoryCriticalLimit = 100 * KB * KB; // 100 MB
> > +static const size_t s_memoryNonCriticalLimit = 300 * KB * KB; // 300 MB
> It might be worth discussing a bit where these numbers come from. A comment
> here or a note in the ChangeLog or bug is fine.

Those numbers are arbitrary. I found them right for our downstream port, where we're interested in minimizing the RAM usage.

> > Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp:227
> >      if (ReliefLogger::loggingEnabled() && isUnderMemoryPressure())
> >          LOG(MemoryPressure, "System is no longer under memory pressure.");
> 
> This is quite strange. If isUnderMemoryPressure returns true, a message is
> printed that the system is not under memory pressure. Do you have understand
> why this is?

Hmmm... actually not. Changseok should know.

-- 
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/20160311/fd4e12a1/attachment.html>


More information about the webkit-unassigned mailing list