<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It is loaded on the fuse mount process, so client side.<br>
<br>
Pranith<br>
<div class="moz-cite-prefix">On 08/22/2014 01:37 AM, Juan José
Pavlik Salles wrote:<br>
</div>
<blockquote
cite="mid:CAKCETkencG=7W5shKZugg-3+AUcfoh-mb=pZsGjSsVDiWp4ydA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi guys, I've been reading a bit about caching in
gluster volumes, but I still don't get a few things. I set up a
gluster replica 2 volume like this:
<div><br>
</div>
<div>
<div>[root@gluster-test-1 ~]# gluster vol info vol_rep</div>
<div>Volume Name: vol_rep</div>
<div>Type: Replicate</div>
<div>Volume ID: b77db06d-2686-46c7-951f-e43bde21d8ec</div>
<div>Status: Started</div>
<div>Number of Bricks: 1 x 2 = 2</div>
<div>Transport-type: tcp</div>
<div>Bricks:</div>
<div>Brick1: gluster-test-1:/ladrillos/l1/l</div>
<div>Brick2: gluster-test-2:/ladrillos/l1/l</div>
<div>Options Reconfigured:</div>
<div>performance.cache-min-file-size: 90MB</div>
<div>performance.cache-max-file-size: 256MB</div>
<div>performance.cache-refresh-timeout: 60</div>
<div>performance.cache-size: 256MB</div>
<div>[root@gluster-test-1 ~]# <br>
</div>
<div><br>
</div>
<div>Then I mounted the volume with gluster client on another
machine. I created an 80Mbytes file called 80, and here you
have the reading test:</div>
<div><br>
</div>
<div>
<div>[root@gluster-client-1 gluster_vol]# dd
if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div>
<div>80+0 records in</div>
<div>80+0 records out</div>
<div>83886080 bytes (84 MB) copied, 1,34145 s, 62,5 MB/s</div>
<div>[root@gluster-client-1 gluster_vol]# dd
if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div>
<div>80+0 records in</div>
<div>80+0 records out</div>
<div>83886080 bytes (84 MB) copied, 0,0246918 s, 3,4 GB/s</div>
<div>[root@gluster-client-1 gluster_vol]# dd
if=/mnt/gluster_vol/80 of=/dev/null bs=1M</div>
<div>80+0 records in</div>
<div>80+0 records out</div>
<div>83886080 bytes (84 MB) copied, 0,0195678 s, 4,3 GB/s</div>
<div>[root@gluster-client-1 gluster_vol]# </div>
</div>
<div><br>
</div>
<div>Cache is working flawlessly, (even though that 80 Mbytes
is smaller than the min-file-size value, but I don't care
about it right now) what I don't get is where cache is being
stored. Is it stored on the client side or on the server
side? According to documentation, the io-cache translator
could be loaded on both sides (client and server), how can I
know where it is being loeaded? It looks like as it was
being stored locally because of the speed, but I'd like to
be sure.</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
-- <br>
<div dir="ltr">Pavlik Salles Juan José
<div>Blog - <a moz-do-not-send="true"
href="http://viviendolared.blogspot.com" target="_blank">http://viviendolared.blogspot.com</a></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</body>
</html>