mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Hugh Dickins <hugh@veritas.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [andrea@suse.de: Re: 2.6.5-rc2-aa vma merging]
Date: Tue, 30 Mar 2004 17:15:18 +0200	[thread overview]
Message-ID: <20040330151518.GY3808@dualathlon.random> (raw)
In-Reply-To: <Pine.LNX.4.44.0403300613280.20766-100000@localhost.localdomain>

On Tue, Mar 30, 2004 at 06:27:18AM +0100, Hugh Dickins wrote:
> On Tue, 30 Mar 2004, Andrea Arcangeli wrote:
> > On Mon, Mar 29, 2004 at 08:44:25PM +0100, Hugh Dickins wrote:
> > 
> > > So I assume that what's there is needed, and the example below
> > > does looks plausible enough: add page, fill it, protect it, ...
> > 
> > this will work perfect, absolutely perfect. You didn't read my code well
> > enough.
> 
> Sure, and I most certainly haven't read your future code well enough.
> Your present implementation, one vma per page (in that real case where
> vmas are properly merged by mainline or anonmm), is far from perfect.
> 
> anon_vma has surprised me more than once by working smoothly just
> where I thought it must go wrong.  Please do surprise me again:
> write that code and post the patch which resolves this doubt.

I will, it just wasn't high prio enough at this time (I mean, I still
have pending some prio-tree bit to fixup with the xfs, that was higher
prio since it impacts functionality, and the mremap race may also be
higher prio).

My point is that merging in your program will work fine, this is what
matters to me, it doesn't right now because I didn't fixup the merging
code yet, but there's nothing that will prevent your program to use just
1 single vma for the whole thing (after I fixup the merging code ;). The
bonus is that after I fixup the merging, it'll use 1 vma even for the
file mappings, not just for anonymous memory, something that is not true
with anonmm (and the complexity of doing file merging or anon-vma
merging is the same, so I will do both at the same cost).

      reply	other threads:[~2004-03-30 15:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29 22:33 Andrea Arcangeli
2004-03-30  5:27 ` Hugh Dickins
2004-03-30 15:15   ` Andrea Arcangeli [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=20040330151518.GY3808@dualathlon.random \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®