From: William Lee Irwin III <wli@holomorphy.com>
To: Dave McCracken <dmccr@us.ibm.com>
Cc: Linux Memory Management <linux-mm@kvack.org>
Subject: Re: Rough cut at shared page tables
Date: Fri, 6 Sep 2002 10:44:05 -0700 [thread overview]
Message-ID: <20020906174405.GU18800@holomorphy.com> (raw)
In-Reply-To: <61920000.1031332808@baldur.austin.ibm.com>
On Fri, Sep 06, 2002 at 12:20:08PM -0500, Dave McCracken wrote:
> Here's my initial coding of shared page tables. It sets the pmd read-only,
> so it forks really fast, then unshares it as necessary. I've tried to keep
> the sharing semantics clean so if/when we add pte sharing for shared files
> the existing code should handle it just fine.
Hmm, do non-i386 arches need to be taught about read-only pmd's?
On Fri, Sep 06, 2002 at 12:20:08PM -0500, Dave McCracken wrote:
> The few feeble attempts I've made at putting in locks are clearly wrong, so
> it only works on UP.
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.
On Fri, Sep 06, 2002 at 12:20:08PM -0500, Dave McCracken wrote:
> I don't see any reason why swap won't work, but I haven't tested it.
> This is also against 2.5.29. I'm gonna work to merge it forward, but there
> are significant changes since then so I figured I'd toss this out for
> people to get an early look at it.
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.
Cheers,
Bill
--
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/
next prev parent reply other threads:[~2002-09-06 17:44 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 [this message]
2002-09-06 17:54 ` Dave McCracken
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=20020906174405.GU18800@holomorphy.com \
--to=wli@holomorphy.com \
--cc=dmccr@us.ibm.com \
--cc=linux-mm@kvack.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