From: Kevin Anderson Date: Tue, 16 Oct 2007 09:16:19 -0500 Subject: [Cluster-devel] [GFS2] Clean up internal read function In-Reply-To: <1192547477.3323.20.camel@menhir.chygwyn.com> References: <1192535435.3323.4.camel@menhir.chygwyn.com> <1192542863.2719.11.camel@dhcp80-204.msp.redhat.com> <1192547477.3323.20.camel@menhir.chygwyn.com> Message-ID: <1192544179.2719.14.camel@dhcp80-204.msp.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, 2007-10-16 at 16:11 +0100, Steven Whitehouse wrote: > Hi, > > On Tue, 2007-10-16 at 08:54 -0500, Kevin Anderson wrote: > > Steve, > > > > What is the impact on performance due to this change? Seems to be > > messing with where locks are being grabbed and potentially the > > frequency of lock requests. The performance problems related to > > writes were possibly caused by similar "cleanups", would not like that > > same effect on our reads. What analysis has been done of the lock > > traffic and read throughput of these changes? > > > > Kevin > > > It doesn't land up grabbing locks in different places at all. We still > do locking over the whole read for the internal read case and locking on > a per-page basis for "normal" readpage which is the same as before. The > difference is that with this new code we call different readpage > functions (where one is a wrapper that grabs locks for the other which > does the actual reading off disk) according to whether we already hold > the locks or not. > > So we have the following two cases: > > 1. readpage called from VFS (doesn't happen often, mostly readpages is > our read function) > - same as before except that we don't need to test to see if the > function was called with glocks already held, as this now never happens > > 2. readpage called from our internal read function > - same as before except that we don't need to check to see if glocks > were already held, as this is always the case > > Our internal read function isn't used often at all, so that it is not > performance critical really. The only time its called for any > significant amount of data is on mount when it reads the resource index, > or possibly again if the file system is expanded. > > The reason for putting this in now (i.e. at the start of the queue for > the next merge window) is to give it maximum exposure before it gets > merged to mainline in case of any problems, > That's all nice, but have you done performance analysis of the impact of the change, ie run some benchmarks, measured the number of locks, and done a comparison? I would like to see the data before accepting upstream "cleanup" requests. Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: