<div dir="ltr">With the tests conducted, I could not find any evidence of a performance regression in quick-read.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 30, 2017 at 11:01 AM, Raghavendra G <span dir="ltr"><<a href="mailto:raghavendra.hg@gmail.com" target="_blank">raghavendra.hg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think this caused regression in quick-read. On going through code, I realized Quick-read doesn't fetch content of a file pointed by dentry in readdirplus. Since, the patch in question prevents any lookup from resolver, reads on the file till the duration of "entry-timeout" (a cmdline option to fuse mount, whose default value is 1 sec) after the entry was discovered in readdirplus will not be served by quick-read even though the size of file is eligible to be cached. This may cause perf regression in read heavy workloads on smallfiles. We'll be doing more testing to identify this.<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Sep 12, 2017 at 11:31 AM, Raghavendra G <span dir="ltr"><<a href="mailto:raghavendra.hg@gmail.com" target="_blank">raghavendra.hg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Update. Two more days to go for the deadline. Till now, there are no open issues identified against this patch.<br></div><div class="gmail_extra"><div><div class="m_723269619931310581h5"><br><div class="gmail_quote">On Fri, Sep 8, 2017 at 6:54 AM, Raghavendra Gowdappa <span dir="ltr"><<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
----- Original Message -----<br>
> From: "FNU Raghavendra Manjunath" <<a href="mailto:rabhat@redhat.com" target="_blank">rabhat@redhat.com</a>><br>
> To: "Raghavendra Gowdappa" <<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>><br>
> Cc: "Raghavendra G" <<a href="mailto:raghavendra.hg@gmail.com" target="_blank">raghavendra.hg@gmail.com</a>>, "Nithya Balachandran" <<a href="mailto:nbalacha@redhat.com" target="_blank">nbalacha@redhat.com</a>>, <a href="mailto:anoopcs@redhat.com" target="_blank">anoopcs@redhat.com</a>,<br>
> "Gluster Devel" <<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>>, "Raghavendra Bhat" <<a href="mailto:raghavendra@redhat.com" target="_blank">raghavendra@redhat.com</a>><br>
> Sent: Thursday, September 7, 2017 6:44:51 PM<br>
> Subject: Re: [Gluster-devel] Need inputs on patch #17985<br>
><br>
</span><span>> From snapview client perspective one important thing to note. For building<br>
> the context for the entry point (by default ".snaps") a explicit lookup has<br>
> to be done on it. The dentry for ".snaps" is not returned when readdir is<br>
> done on its parent directory (Not even when ls -a is done). So for building<br>
> the context of .snaps (in the context snapview client saves the information<br>
> about whether it is a real inode or virtual inode) we need a lookup.<br>
<br>
</span>Since the dentry corresponding to ".snaps" is not returned, there won't be an inode for this directory linked in itable. Also, glusterfs wouldn't have given nodeid corresponding to ".snaps" during readdir response (as dentry itself is not returned). So, kernel would do an explicit lookup before doing any operation on ".snaps" (unlike for those dentries which contain nodeid kernel can choose to skip a lookup) and we are safe. So, #17985 is safe in its current form.<br>
<span><br>
><br>
> From snapview server perspective as well a lookup might be needed. In<br>
> snapview server a glfs handle is established between the snapview server<br>
> and the snapshot brick. So a inode in snapview server process contains the<br>
> glfs handle for the object being accessed from snapshot. In snapview<br>
> server readdirp does not build the inode context (which contains the glfs<br>
> handle etc) because glfs handle is returned only in lookup.<br>
<br>
</span>Same argument I've given holds good for this case too. Important point to note is that "there is no dentry and hence no nodeid corresponding to .snaps is passed to kernel and kernel is forced to do an explicit lookup".<br>
<div class="m_723269619931310581m_1623044859594949402HOEnZb"><div class="m_723269619931310581m_1623044859594949402h5"><br>
><br>
> Regards,<br>
> Raghavendra<br>
><br>
><br>
> On Tue, Aug 29, 2017 at 12:53 AM, Raghavendra Gowdappa <<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>><br>
> wrote:<br>
><br>
> ><br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Raghavendra G" <<a href="mailto:raghavendra.hg@gmail.com" target="_blank">raghavendra.hg@gmail.com</a>><br>
> > > To: "Nithya Balachandran" <<a href="mailto:nbalacha@redhat.com" target="_blank">nbalacha@redhat.com</a>><br>
> > > Cc: "Raghavendra Gowdappa" <<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>>, <a href="mailto:anoopcs@redhat.com" target="_blank">anoopcs@redhat.com</a>,<br>
> > "Gluster Devel" <<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>>,<br>
> > > <a href="mailto:raghavendra@redhat.com" target="_blank">raghavendra@redhat.com</a><br>
> > > Sent: Tuesday, August 29, 2017 8:52:28 AM<br>
> > > Subject: Re: [Gluster-devel] Need inputs on patch #17985<br>
> > ><br>
> > > On Thu, Aug 24, 2017 at 2:53 PM, Nithya Balachandran <<br>
> > <a href="mailto:nbalacha@redhat.com" target="_blank">nbalacha@redhat.com</a>><br>
> > > wrote:<br>
> > ><br>
> > > > It has been a while but iirc snapview client (loaded abt dht/tier etc)<br>
> > had<br>
> > > > some issues when we ran tiering tests. Rafi might have more info on<br>
> > this -<br>
> > > > basically it was expecting to find the inode_ctx populated but it was<br>
> > not.<br>
> > > ><br>
> > ><br>
> > > Thanks Nithya. @Rafi, @Raghavendra Bhat, is it possible to take the<br>
> > > ownership of,<br>
> > ><br>
> > > * Identifying whether the patch in question causes the issue?<br>
> ><br>
> > gf_svc_readdirp_cbk is setting relevant state in inode [1]. I quickly<br>
> > checked whether its the same state stored by gf_svc_lookup_cbk and it looks<br>
> > like the same state. So, I guess readdirp is handled correctly by<br>
> > snapview-client and an explicit lookup is not required. But, will wait for<br>
> > inputs from rabhat and rafi.<br>
> ><br>
> > [1] <a href="https://github.com/gluster/glusterfs/blob/master/xlators/" rel="noreferrer" target="_blank">https://github.com/gluster/glu<wbr>sterfs/blob/master/xlators/</a><br>
> > features/snapview-client/src/s<wbr>napview-client.c#L1962<br>
> ><br>
> > > * Send a fix or at least evaluate whether a fix is possible.<br>
> > ><br>
> > > @Others,<br>
> > ><br>
> > > With the motivation of getting some traction on this, Is it ok if we:<br>
> > > * Set a deadline of around 15 days to complete the review (or testing<br>
> > with<br>
> > > the patch in question) of respective components and to come up with<br>
> > issues<br>
> > > (if any).<br>
> > > * Post the deadline, if there are no open issues, go ahead and merge the<br>
> > > patch?<br>
> > ><br>
> > > If time is not enough, let us know and we can come up with a reasonable<br>
> > > time.<br>
> > ><br>
> > > regards,<br>
> > > Raghavendra<br>
> > ><br>
> > ><br>
> > > > On 24 August 2017 at 10:13, Raghavendra G <<a href="mailto:raghavendra.hg@gmail.com" target="_blank">raghavendra.hg@gmail.com</a>><br>
> > > > wrote:<br>
> > > ><br>
> > > >> Note that we need to consider xlators on brick stack too. I've added<br>
> > > >> maintainers/peers of xlators on brick stack. Please explicitly<br>
> > ack/nack<br>
> > > >> whether this patch affects your component.<br>
> > > >><br>
> > > >> For reference, following are the xlators loaded in brick stack<br>
> > > >><br>
> > > >> storage/posix<br>
> > > >> features/trash<br>
> > > >> features/changetimerecorder<br>
> > > >> features/changelog<br>
> > > >> features/bitrot-stub<br>
> > > >> features/access-control<br>
> > > >> features/locks<br>
> > > >> features/worm<br>
> > > >> features/read-only<br>
> > > >> features/leases<br>
> > > >> features/upcall<br>
> > > >> performance/io-threads<br>
> > > >> features/selinux<br>
> > > >> features/marker<br>
> > > >> features/barrier<br>
> > > >> features/index<br>
> > > >> features/quota<br>
> > > >> debug/io-stats<br>
> > > >> performance/decompounder<br>
> > > >> protocol/server<br>
> > > >><br>
> > > >><br>
> > > >> For those not following this thread, the question we need to answer<br>
> > is,<br>
> > > >> "whether the xlator you are associated with works fine if a non-lookup<br>
> > > >> fop (like open, setattr, stat etc) hits it without a lookup ever being<br>
> > > >> done<br>
> > > >> on that inode"<br>
> > > >><br>
> > > >> regards,<br>
> > > >> Raghavendra<br>
> > > >><br>
> > > >> On Wed, Aug 23, 2017 at 11:56 AM, Raghavendra Gowdappa <<br>
> > > >> <a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>> wrote:<br>
> > > >><br>
> > > >>> Thanks Pranith and Ashish for your inputs.<br>
> > > >>><br>
> > > >>> ----- Original Message -----<br>
> > > >>> > From: "Pranith Kumar Karampuri" <<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>><br>
> > > >>> > To: "Ashish Pandey" <<a href="mailto:aspandey@redhat.com" target="_blank">aspandey@redhat.com</a>><br>
> > > >>> > Cc: "Raghavendra Gowdappa" <<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>>, "Xavier<br>
> > Hernandez" <<br>
> > > >>> <a href="mailto:xhernandez@datalab.es" target="_blank">xhernandez@datalab.es</a>>, "Gluster Devel"<br>
> > > >>> > <<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>><br>
> > > >>> > Sent: Wednesday, August 23, 2017 11:55:19 AM<br>
> > > >>> > Subject: Re: Need inputs on patch #17985<br>
> > > >>> ><br>
> > > >>> > Raghavendra,<br>
> > > >>> > As Ashish mentioned, there aren't any known problems if upper<br>
> > > >>> xlators<br>
> > > >>> > don't send lookups in EC at the moment.<br>
> > > >>> ><br>
> > > >>> > On Wed, Aug 23, 2017 at 9:07 AM, Ashish Pandey <<br>
> > <a href="mailto:aspandey@redhat.com" target="_blank">aspandey@redhat.com</a>><br>
> > > >>> wrote:<br>
> > > >>> ><br>
> > > >>> > > Raghvendra,<br>
> > > >>> > ><br>
> > > >>> > > I have provided my comment on this patch.<br>
> > > >>> > > I think EC will not have any issue with this approach.<br>
> > > >>> > > However, I would welcome comments from Xavi and Pranith too for<br>
> > any<br>
> > > >>> side<br>
> > > >>> > > effects which I may not be able to foresee.<br>
> > > >>> > ><br>
> > > >>> > > Ashish<br>
> > > >>> > ><br>
> > > >>> > > ------------------------------<br>
> > > >>> > > *From: *"Raghavendra Gowdappa" <<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>><br>
> > > >>> > > *To: *"Ashish Pandey" <<a href="mailto:aspandey@redhat.com" target="_blank">aspandey@redhat.com</a>><br>
> > > >>> > > *Cc: *"Pranith Kumar Karampuri" <<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>>, "Xavier<br>
> > > >>> Hernandez"<br>
> > > >>> > > <<a href="mailto:xhernandez@datalab.es" target="_blank">xhernandez@datalab.es</a>>, "Gluster Devel" <<br>
> > <a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>><br>
> > > >>> > > *Sent: *Wednesday, August 23, 2017 8:29:48 AM<br>
> > > >>> > > *Subject: *Need inputs on patch #17985<br>
> > > >>> > ><br>
> > > >>> > ><br>
> > > >>> > > Hi Ashish,<br>
> > > >>> > ><br>
> > > >>> > > Following are the blockers for making a decision on whether patch<br>
> > > >>> [1] can<br>
> > > >>> > > be merged or not:<br>
> > > >>> > > * Evaluation of dentry operations (like rename etc) in dht<br>
> > > >>> > > * Whether EC works fine if a non-lookup fop (like open(dir),<br>
> > stat,<br>
> > > >>> chmod<br>
> > > >>> > > etc) hits EC without a single lookup performed on file/inode<br>
> > > >>> > ><br>
> > > >>> > > Can you please comment on the patch? I'll take care of dht part.<br>
> > > >>> > ><br>
> > > >>> > > [1] <a href="https://review.gluster.org/#/c/17985/" rel="noreferrer" target="_blank">https://review.gluster.org/#/c<wbr>/17985/</a><br>
> > > >>> > ><br>
> > > >>> > > regards,<br>
> > > >>> > > Raghavendra<br>
> > > >>> > ><br>
> > > >>> > ><br>
> > > >>> ><br>
> > > >>> ><br>
> > > >>> > --<br>
> > > >>> > Pranith<br>
> > > >>> ><br>
> > > >>> ______________________________<wbr>_________________<br>
> > > >>> Gluster-devel mailing list<br>
> > > >>> <a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
> > > >>> <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-devel</a><br>
> > > >>><br>
> > > >>> --<br>
> > > >>> Raghavendra G<br>
> > > >>><br>
> > > >>> <<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/mail<wbr>man/listinfo/gluster-devel</a>><br>
> > > >>><br>
> > > >><br>
> > > >> ______________________________<wbr>_________________<br>
> > > >> Gluster-devel mailing list<br>
> > > >> <a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
> > > >> <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-devel</a><br>
> > > >><br>
> > > ><br>
> > > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Raghavendra G<br>
> > ><br>
> ><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="m_723269619931310581HOEnZb"><font color="#888888">-- <br><div class="m_723269619931310581m_1623044859594949402gmail_signature" data-smartmail="gmail_signature">Raghavendra G<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_723269619931310581gmail_signature" data-smartmail="gmail_signature">Raghavendra G<br></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Milind<br><br></div></div></div></div>
</div>