Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 23 Oct 2002 10:18:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 23 Oct 2002 10:18:38 -0400 Received: from [195.223.140.120] ([195.223.140.120]:1833 "EHLO penguin.e-mind.com") by vger.kernel.org with ESMTP id ; Wed, 23 Oct 2002 10:18:37 -0400 Date: Wed, 23 Oct 2002 16:23:42 +0200 From: Andrea Arcangeli To: Ingo Molnar Cc: Christoph Hellwig , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch] generic nonlinear mappings, 2.5.44-mm2-D0 Message-ID: <20021023142342.GC1912@dualathlon.random> References: <20021023115026.GB30182@dualathlon.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 40 On Wed, Oct 23, 2002 at 04:20:30PM +0200, Ingo Molnar wrote: > > On Wed, 23 Oct 2002, Andrea Arcangeli wrote: > > > it's not another vma tree, furthmore another vma tree indexed by the > > hole size wouldn't be able to defragment and it would find the best fit > > not the first fit on the left. > > what i was talking about was a hole-tree indexed by the hole start yes an hole tree. > address, not a vma tree indexed by the hole size. (the later is pretty indexed by the hole start address? then it's still O(N), then your quick cache for the first hole would not be much different. I above meant hole size, then it would be O(log(N)), but it wouldn't defragment anymore. > pointless.) And even this solution still has to search the tree linearly > for a matching hole. exactly, it's still O(N). The final solution needed isn't a plain tree, it needs modifications to the rbtree code to make the data structure more powerful, that will provide that info in O(log(N)) without an additional tree and starting from the left (i.e. it won't alter the retval of get_unmapped_area, just its speed). the design is just finished for some time, what's left is to implement it and it isn't trivial ;). Anyways this O(log(N)) complexity improvement is needed anyways, old applications will be still around in particular when they will find they don't need special API to work fast. Andrea - 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/