<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Thanks for your feedback.</p>
    <p>In fact meta xlator is loaded only on fuse mount, is there any
      particular reason to not to use meta-autoload xltor for nfs server
      and libgfapi ?</p>
    <p>Regards</p>
    <p>Rafi KC<br>
    </p>
    <div class="moz-cite-prefix">On 07/26/2016 04:05 PM, Niels de Vos
      wrote:<br>
    </div>
    <blockquote
      cite="mid:20160726103552.GF13478@ndevos-x240.usersys.redhat.com"
      type="cite">
      <pre wrap="">On Tue, Jul 26, 2016 at 12:43:56PM +0530, Kaushal M wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On Tue, Jul 26, 2016 at 12:28 PM, Prashanth Pai <a class="moz-txt-link-rfc2396E" href="mailto:ppai@redhat.com">&lt;ppai@redhat.com&gt;</a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">+1 to option (2) which similar to echoing into /proc/sys/vm/drop_caches

 -Prashanth Pai

----- Original Message -----
</pre>
          <blockquote type="cite">
            <pre wrap="">From: "Mohammed Rafi K C" <a class="moz-txt-link-rfc2396E" href="mailto:rkavunga@redhat.com">&lt;rkavunga@redhat.com&gt;</a>
To: "gluster-users" <a class="moz-txt-link-rfc2396E" href="mailto:gluster-users@gluster.org">&lt;gluster-users@gluster.org&gt;</a>, "Gluster Devel" <a class="moz-txt-link-rfc2396E" href="mailto:gluster-devel@gluster.org">&lt;gluster-devel@gluster.org&gt;</a>
Sent: Tuesday, 26 July, 2016 10:44:15 AM
Subject: [Gluster-devel] Need a way to display and flush gluster cache ?

Hi,

Gluster stack has it's own caching mechanism , mostly on client side.
But there is no concrete method to see how much memory are consuming by
gluster for caching and if needed there is no way to flush the cache memory.

So my first question is, Do we require to implement this two features
for gluster cache?


If so I would like to discuss some of our thoughts towards it.

(If you are not interested in implementation discussion, you can skip
this part :)

1) Implement a virtual xattr on root, and on doing setxattr, flush all
the cache, and for getxattr we can print the aggregated cache size.

2) Currently in gluster native client support .meta virtual directory to
get meta data information as analogues to proc. we can implement a
virtual file inside the .meta directory to read  the cache size. Also we
can flush the cache using a special write into the file, (similar to
echoing into proc file) . This approach may be difficult to implement in
other clients.
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">
+1 for making use of the meta-xlator. We should be making more use of it.
</pre>
      </blockquote>
      <pre wrap="">
Indeed, this would be nice. Maybe this can also expose the memory
allocations like /proc/slabinfo.

The io-stats xlator can dump some statistics to
/var/log/glusterfs/samples/ and /var/lib/glusterd/stats/ . That seems to
be acceptible too, and allows to get statistics from server-side
processes without involving any clients.

HTH,
Niels


</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">
3) A cli command to display and flush the data with ip and port as an
argument. GlusterD need to send the op to client from the connected
client list. But this approach would be difficult to implement for
libgfapi based clients. For me, it doesn't seems to be a good option.

Your suggestions and comments are most welcome.

Thanks to Talur and Poornima for their suggestions.

Regards

Rafi KC

_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a>

</pre>
          </blockquote>
          <pre wrap="">_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a>
</pre>
        </blockquote>
        <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a>
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a></pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>