Re: [Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-03 Thread Pranith Kumar Karampuri
On 07/03/2014 02:24 PM, Xavier Hernandez wrote: On Thursday 03 July 2014 07:40:45 Pranith Kumar Karampuri wrote: On 07/01/2014 04:52 PM, Xavier Hernandez wrote: Hi, current implementation of ec xlator uses inodelk/entrylk before each operation to guarantee exclusive access to the inode. This

Re: [Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-03 Thread Xavier Hernandez
On Thursday 03 July 2014 07:40:45 Pranith Kumar Karampuri wrote: > On 07/01/2014 04:52 PM, Xavier Hernandez wrote: > > Hi, > > > > current implementation of ec xlator uses inodelk/entrylk before each > > operation to guarantee exclusive access to the inode. This implementation > > blocks any other

Re: [Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-02 Thread Pranith Kumar Karampuri
On 07/01/2014 04:52 PM, Xavier Hernandez wrote: Hi, current implementation of ec xlator uses inodelk/entrylk before each operation to guarantee exclusive access to the inode. This implementation blocks any other request to the same inode/entry until the previous operation has completed and unlo

Re: [Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-01 Thread Xavier Hernandez
On Tuesday 01 July 2014 21:37:57 haiwei.xie-soulinfo wrote: > hi Xavi, > >Writev inodelk lock whole file, so write speed is bad. If > inodelk(offset,len), IDA_KEY_SIZE xattr will be not consistent crossing > bricks from unorder writev. > >So how about just use IDA_KEY_VERSION and bricks i

Re: [Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-01 Thread haiwei.xie-soulinfo
hi Xavi, Writev inodelk lock whole file, so write speed is bad. If inodelk(offset,len), IDA_KEY_SIZE xattr will be not consistent crossing bricks from unorder writev. So how about just use IDA_KEY_VERSION and bricks ia_size to check data crash? Drop IDA_KEY_SIZE, and lookup lock whole fi

[Gluster-devel] Reduce number of inodelk/entrylk calls on ec xlator

2014-07-01 Thread Xavier Hernandez
Hi, current implementation of ec xlator uses inodelk/entrylk before each operation to guarantee exclusive access to the inode. This implementation blocks any other request to the same inode/entry until the previous operation has completed and unlocked it. This adds a lot of latency to each ope