From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 15:47:36 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 74AC316A41F for ; Tue, 3 Jul 2007 15:47:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 455B613C468 for ; Tue, 3 Jul 2007 15:47:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 616855D82; Tue, 3 Jul 2007 11:47:35 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nIh+jXQbpY6O; Tue, 3 Jul 2007 11:47:32 -0400 (EDT) Received: from [192.168.1.130] (pool-96-224-41-41.nycmny.east.verizon.net [96.224.41.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 3C9FC5D41; Tue, 3 Jul 2007 11:47:32 -0400 (EDT) Message-ID: <468A6F8E.8030808@mac.com> Date: Tue, 03 Jul 2007 11:47:26 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Wojciech Puchar References: <20070701203720.X64116@wojtek.tensor.gdynia.pl> <46885761.9050302@mac.com> <20070703171849.R18529@wojtek.tensor.gdynia.pl> In-Reply-To: <20070703171849.R18529@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:47:36 -0000 Wojciech Puchar wrote: > how can i check in program that the region is mapped using huge pages? I am not entirely sure from within userland, but I believe the kernel boot messages will indicate the status of PAE. > i use mmap with address padded to 4M and mlock. Note that there is a separate tunable for the maximum # of pages that a process or user can lock down; you'll probably need to increate that value. -- -Chuck