From owner-freebsd-arch Fri Feb 7 20:51:50 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 542C137B401 for ; Fri, 7 Feb 2003 20:51:49 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02E8E43FB1 for ; Fri, 7 Feb 2003 20:51:49 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 61B9FAE25C; Fri, 7 Feb 2003 20:51:45 -0800 (PST) Date: Fri, 7 Feb 2003 20:51:45 -0800 From: Alfred Perlstein To: Jake Burkholder Cc: Jeff Roberson , arch@FreeBSD.ORG Subject: Re: New kernel allocation API Message-ID: <20030208045145.GE88781@elvis.mu.org> References: <20030208022722.GB88781@elvis.mu.org> <20030207221623.V72073-100000@mail.chesapeake.net> <20030208041659.GC88781@elvis.mu.org> <20030207234049.A32864@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030207234049.A32864@locore.ca> 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 * Jake Burkholder [030207 20:38] wrote: > Apparently, On Fri, Feb 07, 2003 at 08:16:59PM -0800, > Alfred Perlstein said words to the effect of; > > > Doh, I guess I should be paying more attention, sorry for that. > > > > What advantage do you get from using direct mapped pages? Why not > > alias/map them into kmem map? I know you'd pay a penalty for the > > vm overhead, but you'd gain back the fixed array trick. I'm probably > > missing something? > > It lets you use the largest page size supported by the tlb (256 megs for > ia64 (!)), and it doesn't take a tlb shootdown to add or remove a mapping > because they never change. That makes sense, at first the idea of requiring free to take a size really seemed to suck, but it would be optional right? Other sections can still use jeff's lookup method when free is not passed a size right? This is somewhat premature as we should probably just convert over most of the fixed sized structures to use zones/slabs, but offering the "optimized" free sounds nice. If you guys have the time, go for it. :) -- -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