From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 18 21:21:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31E5E16A4CE; Fri, 18 Jun 2004 21:21:59 +0000 (GMT) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A54B43D48; Fri, 18 Jun 2004 21:21:59 +0000 (GMT) (envelope-from alc@cs.rice.edu) Received: from localhost (calypso.cs.rice.edu [128.42.1.127]) by cs.rice.edu (Postfix) with ESMTP id B4E454AA35; Fri, 18 Jun 2004 16:21:27 -0500 (CDT) Received: from cs.rice.edu ([128.42.1.30]) by localhost (calypso.cs.rice.edu [128.42.1.127]) (amavisd-new, port 10024) with LMTP id 13820-01-47; Fri, 18 Jun 2004 16:21:27 -0500 (CDT) Received: by cs.rice.edu (Postfix, from userid 19572) id 5AA524AA4E; Fri, 18 Jun 2004 16:21:27 -0500 (CDT) Date: Fri, 18 Jun 2004 16:21:27 -0500 From: Alan Cox To: Brian Fundakowski Feldman Message-ID: <20040618212127.GS6753@cs.rice.edu> References: <20040615195709.GE1016@green.homeunix.org> <20040618205115.GA27588@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040618205115.GA27588@green.homeunix.org> User-Agent: Mutt/1.4.2i X-Virus-Scanned: by amavis-20030616-p7 at cs.rice.edu cc: alc@FreeBSD.org cc: dillon@backplane.com cc: hackers@FreeBSD.org cc: peter@FreeBSD.org Subject: Re: contigmalloc(9) rewrite X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 21:21:59 -0000 On Fri, Jun 18, 2004 at 04:51:15PM -0400, Brian Fundakowski Feldman wrote: > On Tue, Jun 15, 2004 at 03:57:09PM -0400, Brian Fundakowski Feldman wrote: > > The patch, which applies to 5-CURRENT, can be found here: > > > > The default is to use the old contigmalloc(). You can set the > > sysctl or loader tunable "vm.old_contigmalloc" to 0 to enable it. > > > > For anyone that normally runs into failed allocations hot-plugging > > hardware, please try this and see if it helps out. > > By the way, I have updated it further to split apart contigmalloc() > into a separate vm_page_alloc_contig() and mapping function as per > feedback from Alan Cox and Hiten Pandya. The operation is still the > same except for now being able to see memory allocated with it > in your vmstat(8) -m output. The patch is still at the same location, > and requires sysctl vm.old_contigmalloc=0 to enable. > Why don't you commit the part that makes allocation of physical memory start from high addresses? Alan