[Gluster-devel] performance test and a spacial workload

Vijay Bellur vbellur at redhat.com
Sun Apr 16 14:14:08 UTC 2017


On Sun, Apr 16, 2017 at 2:52 AM, Tahereh Fattahi <t28.fattahi at gmail.com>
wrote:

> Hi
> I want to create a performance test with a special workload:
> 1. create a file in a directory
> 2. setxattr on the directory of the previous file
> I could not merge this two in glister code and could not find a framework
> that generate this workload for me.
> 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.
> Which one is better to spend time? change the gluster code for merge or
> the smallfile code? Can anyone help me?
>


What performance metrics are you interested in measuring?

If you are interested in measuring time, a small bash script like:

time for i in 1..N
do
   touch /mnt/glusterfs/foo/file.$i
    setfattr -n <name> -v <value> /mnt/glusterfs/foo
done

would be simpler than either approach.

Regards,
Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170416/26e7ec92/attachment.html>


More information about the Gluster-devel mailing list