<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - MemoryPressureHandler doesn't work if cgroups aren't present in Linux"
   href="https://bugs.webkit.org/show_bug.cgi?id=155255#c24">Comment # 24</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - MemoryPressureHandler doesn't work if cgroups aren't present in Linux"
   href="https://bugs.webkit.org/show_bug.cgi?id=155255">bug 155255</a>
              from <span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=155255#c23">comment #23</a>)
<span class="quote">&gt; A better approach could be to never wake up when process is idle, and poll
&gt; only when there's other activity, since it's very unlikely that the memory
&gt; grows if the process is idle. I'm not sure how we can detect that, though.
&gt; Maybe we can invent a run loop source that is only triggered when other run
&gt; loops are dispatched, or something like that.</span >

I don't think is unlikely at all to enter in a low memory scenario when webkit is idle.

Just suppose that the user minimizes the browser and loads up libreoffice or any other application.

In that situation webkit should be able to get the memory pressure notification as fast as possible and free the caches potentially keeping the system from swapping.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>