On 08/24/2015 11:24 PM, Ivica Siladic wrote:> Hi,
>
> I'm doing a lot of small writes to distributed/replicated Gluster
volume. The performance I'm getting is not acceptable. Interestingly,
I'm getting doubled speed boost if I use libgfsapi instead of kernel volume
mount.
>
> My guess is that I could get significant boost if I could reduce RPC
roundtrips somehow. So, instead of open->write->close sequence I'd
like to use single write(filename, ...) call.
>
> Can someone point me to the relevant places in Gluster source code and
briefly explain how to acomplish that? I really need just some rough ideas.
>
This can be done using anonymous fd write. There are APIs exported by
libgfapi to do anonymous write (glfs_h_anonymous_write). Please refer to
'tests/basic/gfapi/anonymous_fd_read_write.c' regarding its usage.
Thanks,
Soumya
> Ivica
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>