From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: spinlock usage - ext2_get_block, lru_list_lock
Date: 21 Mar 2001 08:52:37 -0800 [thread overview]
Message-ID: <99am8l$8mk$1@penguin.transmeta.com> (raw)
In-Reply-To: <20010321180607.A11941@linuxcare.com>
In article <20010321180607.A11941@linuxcare.com>,
Anton Blanchard <anton@linuxcare.com.au> wrote:
>
>It was not surprising the BKL was one of the main offenders. Looking at the
>stats ext2_get_block was the bad guy (UTIL is % of time lock was busy for,
>WAIT is time spent waiting for lock):
Actually, I find the BKL fairly surprising - we've whittled down all the
major non-lowlevel-FS offenders, and I didn't realize that it's still
there in do_exit().
And the do_exit() case should be _trivial_ to fix: almost none of the
code protected by the kernel lock in the exit path actually needs the
lock. I suspect you could cut down the kernel lock there to much
smaller.
The big case seems to be ext2_get_block(), we'll fix that early in
2.5.x. I think Al already has patches for it.
As to lseek, that one should probably get the inode semaphore, not the
kernel lock.
Linus
next prev parent reply other threads:[~2001-03-21 16:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-21 7:06 spinlock usage - ext2_get_block, lru_list_lock Anton Blanchard
2001-03-21 8:46 ` Andreas Dilger
2001-03-21 9:05 ` Mitchell Blank Jr
2001-03-21 9:41 ` Andreas Dilger
2001-03-21 12:11 ` [patch] pagecache SMP-scalability patch [was: spinlock usage] Ingo Molnar
2001-03-21 12:27 ` Anton Blanchard
2001-03-21 12:54 ` Alexander Viro
2001-03-21 12:59 ` Ingo Molnar
2001-03-21 13:56 ` Alexander Viro
2001-03-21 14:01 ` Ingo Molnar
2001-03-21 16:52 ` Linus Torvalds [this message]
2001-03-21 17:16 ` spinlock usage - ext2_get_block, lru_list_lock Alexander Viro
2001-03-21 18:15 ` James Lewis Nance
2001-03-21 21:01 ` Alexander Viro
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='99am8l$8mk$1@penguin.transmeta.com' \
--to=torvalds@transmeta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox