<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 16, 2017 at 2:52 AM, Tahereh Fattahi <span dir="ltr"><<a href="mailto:t28.fattahi@gmail.com" target="_blank">t28.fattahi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I want to create a performance test with a special workload:</div><div>1. create a file in a directory</div><div>2. setxattr on the directory of the previous file</div><div>I could not merge this two in glister code and could not find a framework that generate this workload for me.</div><div>I read the code of smallfile (a framework for performance testing the gluster document introduced), maybe there is a way to change the code of this software to do a setxattr on directory after create a file. </div><div>Which one is better to spend time? change the gluster code for merge or the smallfile code? Can anyone help me?</div></div>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">What performance metrics are you interested in measuring?</div><div class="gmail_extra"><br></div><div class="gmail_extra">If you are interested in measuring time, a small bash script like:</div><div class="gmail_extra"><br></div><div class="gmail_extra">time for i in 1..N</div><div class="gmail_extra">do </div><div class="gmail_extra"> touch /mnt/glusterfs/foo/file.$i</div><div class="gmail_extra"> setfattr -n <name> -v <value> /mnt/glusterfs/foo</div><div class="gmail_extra">done</div><div class="gmail_extra"><br></div><div class="gmail_extra">would be simpler than either approach. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Vijay </div></div>