Hi Pranith,
Not entirely sure (this isn't my area of expertise). I'll run your
answer by some other people who are more familiar with this.
I am also uncertain about how to interpret the results when we also
add the dd tests writing to the /home area (no gluster, still on the
same machine)
- dd test without oflag=sync (rough average of multiple tests)
- gluster w/ fuse mount : 570 Mb/s
- gluster w/ nfs mount: 390 Mb/s
- nfs (no gluster): 1.2 Gb/s
- dd test with oflag=sync (rough average of multiple tests)
- gluster w/ fuse mount: 5 Mb/s
- gluster w/ nfs mount: 200 Mb/s
- nfs (no gluster): 20 Mb/s
Given that the non-gluster area is a RAID-6 of 4 disks while each
brick of the gluster area is a RAID-6 of 32 disks, I would naively
expect the writes to the gluster area to be roughly 8x faster than
to the non-gluster.
I still think we have a speed issue, I can't tell if fuse vs nfs is
part of the problem. Was there anything useful in the profiles?
Pat
On 05/10/2017 12:15 PM, Pranith Kumar
Karampuri wrote:
Okay good. At least this validates my doubts. Handling
O_SYNC in gluster NFS and fuse is a bit different.
When application opens a file with O_SYNC on fuse mount then
each write syscall has to be written to disk as part of the
syscall where as in case of NFS, there is no concept of open.
NFS performs write though a handle saying it needs to be a
synchronous write, so write() syscall is performed first then
it performs fsync(). so an write on an fd with O_SYNC becomes
write+fsync. I am suspecting that when multiple threads do
this write+fsync() operation on the same file, multiple writes
are batched together to be written do disk so the throughput
on the disk is increasing is my guess.
Does it answer your doubts?
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Pat Haley Email: phaley@xxxxxxx
Center for Ocean Engineering Phone: (617) 253-6824
Dept. of Mechanical Engineering Fax: (617) 253-8125
MIT, Room 5-213 http://web.mit.edu/phaley/www/
77 Massachusetts Avenue
Cambridge, MA 02139-4301
|
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users