From: Dave Hansen <haveblue@us.ibm.com>
To: Hanna Linder <hannal@us.ibm.com>
Cc: akpm@digeo.com, linux-kernel@vger.kernel.org
Subject: Re: [Lockmeter 2.5] BKL with 51ms hold time, prove me wrong
Date: Thu, 10 Apr 2003 19:08:46 -0700 [thread overview]
Message-ID: <3E9623AE.6050509@us.ibm.com> (raw)
In-Reply-To: 46950000.1050023701@w-hlinder
Hanna Linder wrote:
> My original purpose was to verify my lockmeter port is producing
> valid data so I was comparing to readprofile results. However, I saw
> these high hold times and wanted to show them to you. Here is the
> whole lockmeter output file:
> http://prdownloads.sourceforge.net/lse/lockmeter.rmapm
>
> Below is a snippet of lockmeter data from running Andrew Morton's
> rmap-test -m -i 10 -n 50 -s 600 -t 100 foo
> on a 2-way PIII 256MB RAM 500MHz System
>
> If my port of the lockmeter tool is correct then this high hold
> time is a bad thing. If the lockmeter tool is incorrect please let
> me know. Here is the link to a lockmeter patch (originally written
> by John Hawkes, I simply ported it):
> http://prdownloads.sourceforge.net/lse/lockmeter1.5-2.5.64-1.diff
This isn't much of a surprise, nor is is likely a problem in your
lockmeter port. The offender is ext3_delete_inode. The BKL was only
taken here twice out of the 126172 lock_kernel() which were profiled.
The 51ms happened once and the other time, the lock was released much
more quickly.
SPINLOCKS HOLD WAIT
UTIL CON MEAN( MAX ) MEAN( MAX)(% CPU) TOTAL NOWAIT SPIN RJECT
0.02% 0% 26ms( 51ms) 0us 2 100% 0% 0%
The odds are that the 22ms wait in ext3_writepage and the 20ms wait in
schedule were due to this single hold. Actually, the schedule one could
very well be caused by the reacquisiton after ext3_delete_inode() hit
something that made it sleep with the BKL held.
I've thought that it would be helpful to have lockmeter special-case the
reacquire_kernel() in schedule, to properly attribute the time to the
original offender.
--
Dave Hansen
haveblue@us.ibm.com
prev parent reply other threads:[~2003-04-11 1:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 1:15 [Lockmeter 2.5] BKL with 51ms hold time, prove me wrong Hanna Linder
2003-04-11 1:50 ` Andrew Morton
2003-04-11 18:15 ` Hanna Linder
2003-04-11 21:49 ` Andrew Morton
2003-04-11 2:08 ` Dave Hansen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E9623AE.6050509@us.ibm.com \
--to=haveblue@us.ibm.com \
--cc=akpm@digeo.com \
--cc=hannal@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.