<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:svillar&#64;igalia.com" title="Sergio Villar Senin &lt;svillar&#64;igalia.com&gt;"> <span class="fn">Sergio Villar Senin</span></a>
</span> changed
              <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>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>svillar&#64;igalia.com
           </td>
         </tr></table>
      <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#c20">Comment # 20</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:svillar&#64;igalia.com" title="Sergio Villar Senin &lt;svillar&#64;igalia.com&gt;"> <span class="fn">Sergio Villar Senin</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=155255#c18">comment #18</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=155255#c15">comment #15</a>)
&gt; &gt; (In reply to <a href="show_bug.cgi?id=155255#c13">comment #13</a>)
&gt; &gt; 
&gt; &gt; &gt; &gt; Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp:149
&gt; &gt; &gt; &gt; +        sleep(s_pollingIntervalInSeconds);
&gt; &gt; &gt; &gt; +    } while (true);
&gt; &gt; &gt; 
&gt; &gt; &gt; I'm not happy with this either, but I have no idea how to do this if meminfo
&gt; &gt; &gt; is not pollable. Note that there's one memory pressure handler per process .
&gt; &gt; 
&gt; &gt; We can use a larger polling interval (5 sec?) and wider memory threshold
&gt; &gt; margins so that we trigger the pressure condition earlier without needing
&gt; &gt; such a high monitoring frequency. Actually, I thing that the current
&gt; &gt; thresholds for remaining memory of 300MB (non critical) and 100MB (critical)
&gt; &gt; are wide enough.
&gt; &gt; 
&gt; &gt; About battery consumption, take into account the relative expense of
&gt; &gt; &quot;opening a text file, parsing its first lines and closing it&quot;. What can it
&gt; &gt; be, some milliseconds? I can't believe it's so expensive compared to the
&gt; &gt; huge amount of time (in terms of CPU time scale) that the thread is going to
&gt; &gt; be idle.
&gt; 
&gt; The problem is precisely that the thread is never going to be idle, it's
&gt; going to wake up every second. It's not only a matter of what you do when
&gt; you wake up, it's just that you are waking up every second. I've seen
&gt; patches in embedded devices to fix battery drain that simply removed loops
&gt; like this one. If there's no other way to do this, we should figure out if
&gt; it's possible to disable this while there's no activity, or pages are all
&gt; hidden, etc.</span >

Yes please, let's not land something like this unless we want embedded devices not to use webkitgtk</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>