From: Matthew Wilcox <willy@debian.org>
To: linux-ia64@vger.kernel.org
Subject: Re: should ia64_spinlock_contention do backoff?
Date: Sun, 28 Mar 2004 19:23:57 +0000 [thread overview]
Message-ID: <20040328192357.GC26179@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <200403251941.i2PJfrTH026392@napali.hpl.hp.com>
On Fri, Mar 26, 2004 at 04:14:13PM -0800, Chen, Kenneth W wrote:
> This question is a bit too broad, lock contention highly depends on workload.
Surely.
> For example, I'm doing direct I/O on bunch of block devices, and the dev nodes
> sit on reiserfs, this contention shows up:
>
> 79.7% 91.2% 18us(1415us) 449us( 760ms)(57.9%) 2970234 8.8% 91.2% 0% kernel_flag
> 0.00% 92.3% 5.8us( 35us) 689us( 58ms)(0.01%) 298 7.7% 92.3% 0% __break_lease+0x80
I'm not familiar with this output; I'm assuming this means __break_lease()
is a major contributor to the amount that kernel_flag (ie the BKL)
is locked? That's interesting; I assume you're using Samba as part of
your workload since it's the only major user of leases that I'm aware of.
Hmm.. seems to me we should move time_out_leases() down 5 lines to minimise
the amount of time we spend with the BKL held if there's a non-lease lock
held on the file.
I wish we'd managed to get the file locking code BKL-free during 2.5 but
it just didn't happen ;-(
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
prev parent reply other threads:[~2004-03-28 19:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 19:41 should ia64_spinlock_contention do backoff? David Mosberger
2004-03-25 20:06 ` John Hawkes
2004-03-25 22:13 ` Keith Owens
2004-03-25 22:28 ` David Mosberger
2004-03-26 17:16 ` markw
2004-03-26 23:41 ` Chris Wedgwood
2004-03-26 23:44 ` David Mosberger
2004-03-27 0:14 ` Chen, Kenneth W
2004-03-28 2:37 ` John Hawkes
2004-03-28 19:23 ` Matthew Wilcox [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=20040328192357.GC26179@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox