All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 23 second kernel compile / pagemap_lru_lock improvement
Date: Wed, 13 Mar 2002 14:40:02 -0800	[thread overview]
Message-ID: <5740000.1016059202@flay> (raw)
In-Reply-To: <Pine.LNX.4.21.0203132126480.1636-100000@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.21.0203132126480.1636-100000@localhost.localdomain>

>> >>>> Linus:
>> >>>> 
>> >>>> Anyway, some obvious LRU lock improvements are clearly available: 
>> >>>> activate_page_nolock() shouldn't even need to take the lru lock if the 
>> >>>> page is already active. 
>> 
>> Your suggestion seems to improve the pagemap_lru_lock contention a little:
>> (make bzImage , 16 way NUMA-Q, 5 runs each)
> 
> I'm surprised it made any difference at all, I think the patch mainly

There's quite a bit of variablility between runs, so it's a little hard to pin
down. The number of locks taken doesn't seem to be affected much, and
that's probably the best indicator of whether this is really working.

> adds more tests: activate_page is only called from mark_page_accessed
> (after testing !PageActive) and from fail_writepage (where usually
> !PageActive).  I don't think many !PageLRU pages can get there.
> Or is activate_page being called from other places in your tree?

No, I don't think I'm doing other stranger things to activate_page.

It does seem distinctly odd that we take the lock, *then* test whether
we actually need to do anything. Is the test just a sanity check that
should never fail?

M.


  reply	other threads:[~2002-03-13 22:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.33.0203111526160.17864-100000@penguin.transmeta.com>
     [not found] ` <128210000.1015892845@flay>
2002-03-12 21:22   ` 23 second kernel compile / pagemap_lru_lock improvement Martin J. Bligh
2002-03-13 21:40     ` Hugh Dickins
2002-03-13 22:40       ` Martin J. Bligh [this message]
2002-03-14  8:24         ` Hugh Dickins

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=5740000.1016059202@flay \
    --to=martin.bligh@us.ibm.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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.