From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 21 14:44:12 2005 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 25B0616A4D0 for ; Mon, 21 Feb 2005 14:44:12 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE57E43D1F for ; Mon, 21 Feb 2005 14:44:11 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j1LEidWl042397; Mon, 21 Feb 2005 07:44:40 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4219F349.8010106@samsco.org> Date: Mon, 21 Feb 2005 07:42:17 -0700 From: Scott User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Petri Helenius References: <4219EC1D.7020401@he.iki.fi> In-Reply-To: <4219EC1D.7020401@he.iki.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-hackers@freebsd.org Subject: Re: 4M page size 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: Mon, 21 Feb 2005 14:44:12 -0000 Petri Helenius wrote: > > Is there a way currently to utilize 4M page size with FreeBSD for large > data set programs (to optimize TLB misses)? > > Pete > FreeBSD/i386 uses 4MB pages to hold the kernel text and data, but there is no way (to my knowledge) to ask the pmap layer for a 4MB page after that either from the kernel or from userland. However, it's also my understanding that most non-Xeon CPUs only have a 4kb TLB, and 4MB pages are just broken down into 4kb chunks for it. Scott