Re: [Gluster-devel] regarding write-behind default values for o-direct & flush behind
- Original Message - > From: "Pranith Kumar Karampuri" > To: "Gluster Devel" , "Raghavendra Gowdappa" > > Cc: "Krutika Dhananjay" > Sent: Wednesday, March 16, 2016 4:16:15 PM > Subject: regarding write-behind default values for o-direct & flush behind > > hi Raghavendra, > Krutika showed me this code in write-behind about not honoring > O_DIRECT. 1) Is there any reason why we do flush-behind by default and > 2) Not honor O_DIRECT in write-behind by default (strict-O_DIRECT option)? I think both are for performance gains. If someone wants consistency with performance trade-offs, they should explicitly choose it. Also, please note that irrespective of flush-behind values, write-behind waits till all the previous writes are complete before unwinding flush call. > > Pranith > ___ Gluster-devel mailing list Gluster-devel@gluster.org http://www.gluster.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] regarding write-behind default values for o-direct & flush behind
flush-behind default is probably fine as without fsync there is no guarantee of file contents syncing to disk. Pranith On 03/16/2016 04:16 PM, Pranith Kumar Karampuri wrote: hi Raghavendra, Krutika showed me this code in write-behind about not honoring O_DIRECT. 1) Is there any reason why we do flush-behind by default and 2) Not honor O_DIRECT in write-behind by default (strict-O_DIRECT option)? Pranith ___ Gluster-devel mailing list Gluster-devel@gluster.org http://www.gluster.org/mailman/listinfo/gluster-devel ___ Gluster-devel mailing list Gluster-devel@gluster.org http://www.gluster.org/mailman/listinfo/gluster-devel
[Gluster-devel] regarding write-behind default values for o-direct & flush behind
hi Raghavendra, Krutika showed me this code in write-behind about not honoring O_DIRECT. 1) Is there any reason why we do flush-behind by default and 2) Not honor O_DIRECT in write-behind by default (strict-O_DIRECT option)? Pranith ___ Gluster-devel mailing list Gluster-devel@gluster.org http://www.gluster.org/mailman/listinfo/gluster-devel