All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Hugh Dickins <hugh@veritas.com>
Cc: Andrea Arcangeli <andrea@suse.de>, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: Re: smp race fix between invalidate_inode_pages* and do_no_page
Date: Fri, 13 Jan 2006 18:35:16 +1100	[thread overview]
Message-ID: <43C75834.3040007@yahoo.com.au> (raw)
In-Reply-To: <Pine.LNX.4.61.0601111949070.6448@goblin.wat.veritas.com>

Hugh Dickins wrote:
> On Wed, 11 Jan 2006, Andrea Arcangeli wrote:
> 
>>On Wed, Jan 11, 2006 at 01:06:38AM -0800, Andrew Morton wrote:
>>
>>>Confused.  do_no_page() doesn't have a page to lock until it has called
>>>->nopage.
>>
>>yes, I mean doing lock_page after ->nopage returned it here:
>>
>>	lock_page(page);
>>	if (mapping && !page->mapping)
>>		goto bail_out;
>>	page_table = pte_offset_map_lock(mm, pmd, address, &ptl);
>>[..]
>>			page_add_file_rmap()
>>			unlock_page()
> 
> 
> I've rather chosen this mail at random from the thread, and can't
> come up with better than a few random remarks on it all, sorry.
> 
> Though using lock_page may solve more than one problem, without seeing
> a full implementation I'm less sure than the rest of you that it will
> really do the job.
> 
> And less confident than you and Nick that adding a sleeping lock here
> in nopage won't present a scalability issue.  Though it gives me a
> special thrill to see Nick arguing in favour of extra locking ;)
> 

I argue in favour of extra locking simply because the concept doesn't
fundamentally harm scalability ie. because it is very short held and
there are other unavoidable cacheline conflicts already there.

Having it a sleeping lock rather than spinning is another thing though.
However unless you imagine it running into other long held page lockers
(I guess reclaim might be one, but quite rare -- any other significant
lock_page users that we might hit?), then I don't think it would impact
scalability much on workloads that don't already hurt.

-- 
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com 

  parent reply	other threads:[~2006-01-13  7:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 19:37 smp race fix between invalidate_inode_pages* and do_no_page Andrea Arcangeli
2005-12-13 21:02 ` Andrew Morton
2005-12-13 21:14   ` Andrea Arcangeli
2005-12-16 13:51     ` Andrea Arcangeli
2006-01-10  6:24       ` Andrea Arcangeli
2006-01-10  6:48         ` Andrea Arcangeli
2006-01-11  4:08         ` Nick Piggin
2006-01-11  8:23           ` Andrea Arcangeli
2006-01-11  8:51             ` Andrew Morton
2006-01-11  9:02               ` Andrea Arcangeli
2006-01-11  9:06                 ` Andrew Morton
2006-01-11  9:13                   ` Andrea Arcangeli
2006-01-11 20:49                     ` Hugh Dickins
2006-01-11 21:05                       ` Andrew Morton
2006-01-13  7:35                       ` Nick Piggin [this message]
2006-01-13  7:47                         ` Andrew Morton
2006-01-13 10:37                           ` Nick Piggin
2006-03-31 12:36                             ` Andrea Arcangeli
2006-04-02  5:17                               ` Nick Piggin
2006-04-02  5:21                               ` Andrew Morton
2006-04-07 19:18                                 ` Hugh Dickins
2006-01-11  9:39                 ` Nick Piggin
2006-01-11  9:34             ` Nick Piggin

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=43C75834.3040007@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=andrea@suse.de \
    --cc=hugh@veritas.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.