From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger-Tang Date: Sat, 17 Sep 2005 01:08:45 +0000 Subject: Re: Attribute spinlock contention ticks to caller. Message-Id: List-Id: References: <20050914222644.GA5036@lnx-holt.americas.sgi.com> In-Reply-To: <20050914222644.GA5036@lnx-holt.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org On 9/16/05, Robin Holt wrote: > Can you site one instance where it is more helpful to know that _ANY_ > lock in the system is hitting ia64_spinlock_contention as opposed to > the function which has the spin_lock() code? I can recall times when > network traffic was contending on locks and causing my application to > appear to have a contended lock. With this change, at least we know > the degradation is do to something external. Not sure if I can help siting it, but I can cite one recent example: I was looking at a profile of a test which wasn't supposed to have any contention. Yet, ia64_spinlock_contention unexpectedly showed up fairly high in the profile. Turns out it was due to some left-over debug code. Of course, I was using q-syscollect so it was easy to see who was calling the spinlock contention routine a lot... --david -- Mosberger Consulting LLC, voice/fax: 510-744-9372, http://www.mosberger-consulting.com/ 35706 Runckel Lane, Fremont, CA 94536