From: Dave McCracken <dmccr@us.ibm.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Linux Memory Management <linux-mm@kvack.org>
Subject: Re: Rough cut at shared page tables
Date: Fri, 06 Sep 2002 12:54:46 -0500 [thread overview]
Message-ID: <68690000.1031334886@baldur.austin.ibm.com> (raw)
In-Reply-To: <20020906174405.GU18800@holomorphy.com>
--On Friday, September 06, 2002 10:44:05 AM -0700 William Lee Irwin III
<wli@holomorphy.com> wrote:
> Hmm, do non-i386 arches need to be taught about read-only pmd's?
Way back when this idea first surfaced, ISTR it was stated that most
architectures support it in the same way as x86.
> AFAICT one significant source of trouble is that pmd's, once
> instantiated, are considered immutable until the process is torn down.
> Numerous VM codepaths drop all locks but a readlock on the mm->mmap_sem
> while holding a reference to a pmd and expect it to remain valid.
>
> The same issue arises during pagetable reclaim and pmd-based large page
> manipulations.
Yeah, I think I've seen most of them, but I need to come up with a decent
locking strategy for it all, and haven't yet.
> The swap strategy is interesting. I had originally imagined that a
> reference object would be required. But I'm not sure quite how RSS
> accounting for processes affected by a swap operation happens here.
I think rss accounting is probably the main issue, and I have some ideas
around that, including keeping an rss count in the struct page of the pte
page. It's something kicking around in my head I plan to put in code soon.
Dave
======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
prev parent reply other threads:[~2002-09-06 17:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-06 17:20 Dave McCracken
2002-09-06 17:44 ` William Lee Irwin III
2002-09-06 17:54 ` Dave McCracken [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=68690000.1031334886@baldur.austin.ibm.com \
--to=dmccr@us.ibm.com \
--cc=linux-mm@kvack.org \
--cc=wli@holomorphy.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox