Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262101AbUCLMmd (ORCPT ); Fri, 12 Mar 2004 07:42:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262090AbUCLMma (ORCPT ); Fri, 12 Mar 2004 07:42:30 -0500 Received: from ppp-217-133-42-200.cust-adsl.tiscali.it ([217.133.42.200]:12045 "EHLO dualathlon.random") by vger.kernel.org with ESMTP id S262079AbUCLMlm (ORCPT ); Fri, 12 Mar 2004 07:41:42 -0500 Date: Fri, 12 Mar 2004 13:42:24 +0100 From: Andrea Arcangeli To: Rik van Riel Cc: Hugh Dickins , Ingo Molnar , Andrew Morton , torvalds@osdl.org, linux-kernel@vger.kernel.org, William Lee Irwin III Subject: Re: anon_vma RFC2 Message-ID: <20040312124224.GR30940@dualathlon.random> References: <20040311135608.GI30940@dualathlon.random> <20040312122127.GQ30940@dualathlon.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312122127.GQ30940@dualathlon.random> User-Agent: Mutt/1.4.1i X-GPG-Key: 1024D/68B9CB43 13D9 8355 295F 4823 7C49 C012 DFA1 686E 68B9 CB43 X-PGP-Key: 1024R/CB4660B9 CC A0 71 81 F4 A0 63 AC C0 4B 81 1D 8C 15 C8 E5 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1665 Lines: 31 On Fri, Mar 12, 2004 at 01:21:27PM +0100, Andrea Arcangeli wrote: > Rajesh's code has nothing to do with the mremap breakage, Rajesh's code > can only boost the search of the interesting vmas in an anonmm, it > doesn't solve mremap. btw, one more detail, Rajesh's code will fall apart while dealing with the dynamic metadata attached to vmas relocated by mremap: his code is usable out of the box only on top of anon_vma (where vm_pgoff/vm_start/vm_end retains the same semantics as the file mappings in the i_mmap list), not on top of anonmm where you'll have to stack some other dynamic structure (like the pte_chains today in anobjrmap-5). Not sure how well his code could be modified to take into account the dynamic data structure generated by mremap. Also don't forget Rajesh's code doesn't come free, it also adds overhead to the vma, so if you need the tree in the anonmm too (not only in the inode), you'll grow the vma size too (I grow it of 12 bytes with anon_vma but then I don't need complex metadata dynamic allocated later in mremap and I don't need the rbtree search either since it's finegrined well enough). I also expect you'll still have significant problems merging two vmas, one touched by mremap, the other not, since then the dynamic objects would need to be "partial" for only a part of the vma, complicating even further the "tree search" with ranges in the sub-metadata attached to the vma. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/