From owner-freebsd-arch Fri Feb 7 20:20:26 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB5DE37B401 for ; Fri, 7 Feb 2003 20:20:24 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84D7143F85 for ; Fri, 7 Feb 2003 20:20:24 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 4DF71AE28A; Fri, 7 Feb 2003 20:20:24 -0800 (PST) Date: Fri, 7 Feb 2003 20:20:24 -0800 From: Alfred Perlstein To: Jeff Roberson Cc: Gary Thorpe , Julian Elischer , Peter Wemm , Dag-Erling Smorgrav , arch@FreeBSD.ORG Subject: Re: New kernel allocation API Message-ID: <20030208042024.GD88781@elvis.mu.org> References: <20030208022722.GB88781@elvis.mu.org> <20030207221623.V72073-100000@mail.chesapeake.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030207221623.V72073-100000@mail.chesapeake.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Jeff Roberson [030207 19:17] wrote: > On Fri, 7 Feb 2003, Alfred Perlstein wrote: > > > *snip* > > > > It seems that you've missed reading the original allocator or something, > > there's a cheap way to do this that doesn't require too much overhead. > > It seems that you've missed reading my email. > > "The old code used a large fixed size array that represented all of > kmem_map. This no longer works because the allocator can return pages > that are outside of kmem map. It does this on alpha, ia64, and sparc64 to > use direct mapped regions of address space for kernel memory." Another point, even if it doesn't make sense to do the kmem_map thing anymore, it might make sense to use a hash function based on the real virtual address and chain the structures off of that. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message