From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 15:20:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3A5B16A46C for ; Tue, 3 Jul 2007 15:20:21 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (chylonia.3miasto.net [83.12.228.78]) by mx1.freebsd.org (Postfix) with ESMTP id 24F1F13C44B for ; Tue, 3 Jul 2007 15:20:20 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id l63FKGQX018562; Tue, 3 Jul 2007 17:20:16 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id l63FKGlh018559; Tue, 3 Jul 2007 17:20:16 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 3 Jul 2007 17:20:16 +0200 (CEST) From: Wojciech Puchar To: Chuck Swiger In-Reply-To: <46885761.9050302@mac.com> Message-ID: <20070703171849.R18529@wojtek.tensor.gdynia.pl> References: <20070701203720.X64116@wojtek.tensor.gdynia.pl> <46885761.9050302@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: large pages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 15:20:21 -0000 how can i check in program that the region is mapped using huge pages? i use mmap with address padded to 4M and mlock. On Sun, 1 Jul 2007, Chuck Swiger wrote: > Wojciech Puchar wrote: >> does FreeBSD {can,will,patch exist} supports using huge pages? i mean 2M >> pages on AMD64 and 2/4M pages on i386 > > I believe so, yes-- isn't this what the PAE kernel option does? > >> i need freebsd just for running one program needing about 1280 megs of data >> space (+1-2 meg of code stacks etc. can be normally mapped). everything >> else is just using less than 1% of power. >> >> with 1536MB AMD64 machine it would be nice for FreeBSD to boot seeing 256 >> megs for itself and allowing 1280 megs to be mapped&locked to just one >> program. > > Hmm. Doesn't FreeBSD's default VM behavior do just fine dealing with one > large active process without any unusual tuning? > > -- > -Chuck > >