<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>The situation is the following: Filesystem anonymous pages are
      consuming all the available memory and only 100 MB is left to the
      system. <br>
    </p>
    <p>The network driver, which allocates memory objects for Jumbo
      frames, needs more than 100 MB to run correctly.  If a burst of
      networks packets arrive together, the available memory is fully
      consumed and the new packets start to be dropped.</p>
    <p>This situation wouldn't happen if the "useless" pages of the
      filesystem were released just after the truncate operation.</p>
    <p>What is the point of keeping truncated pages in memory ? Is that
      a choice made by the kernel developers or there is something wrong
      in the filesystem implementation ?<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16-07-06 12:29 PM, Mulyadi Santosa
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGdaada_qt7iX7f3qea7QN5n9Om9jbsfNhgEfDpZHvnDSEzD7g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Trying to help here:</div>
        <div class="gmail_extra">You said you wanna do atomic
          allocation. But then you said you want to allocate around ~100
          MB contiguous memory region.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">IIRC, if you want to do atomic
          allocation, usually it can not be that big. I am not sure how
          large, but surely not reaching 100 MB. For that size, I think
          you should rely on vmalloc.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">But, for clarification, maybe you
          should also post your full content of  /proc/buddyinfo and
          /proc/meminfo </div>
        <div class="gmail_extra"><br clear="all">
          <br>
          -- <br>
        </div>
        <div class="gmail_signature" data-smartmail="gmail_signature">regards,<br>
          <br>
          Mulyadi Santosa<br>
          Freelance Linux trainer and consultant<br>
          <br>
          blog: <a moz-do-not-send="true"
            href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
          training: <a moz-do-not-send="true"
            href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a></div>
        <div class="gmail_extra">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kernelnewbies mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>