From owner-freebsd-current@FreeBSD.ORG Fri Sep 15 13:13:00 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6C1A16A415 for ; Fri, 15 Sep 2006 13:13:00 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from aaron.protected-networks.net (aaron.protected-networks.net [202.12.127.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 282B743D4C for ; Fri, 15 Sep 2006 13:12:59 +0000 (GMT) (envelope-from imb@protected-networks.net) Received: from localhost (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id 911C3C494 for ; Fri, 15 Sep 2006 09:12:58 -0400 (EDT) Received: from aaron.protected-networks.net (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id 0E510C3B4 for ; Fri, 15 Sep 2006 09:12:54 -0400 (EDT) Authentication-Results: aaron.protected-networks.net from=imb@protected-networks.net; domainkey=pass Received: from aaron.protected-networks.net (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id 941F3C2CE for ; Fri, 15 Sep 2006 09:12:53 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=200509; d=protected-networks.net; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:X-Enigmail-Version:OpenPGP:Content-Type:Content-Transfer-Encoding; b=NdsfcZ2fVnUYktTGJKGNgwB+zSMmOKgQgybmHOR7V/uZ0La+J3DaMH8RtG6PQs7yUTC2ybXiMHspBt1DP88Ak+VbWNnxX/VPba6zLVrLbw5b1dEWL3/tMZqBuP5pJ6sK; Received: from [192.168.1.10] (socker.hsd1.ma.comcast.net [24.218.145.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb@protected-networks.net) by aaron.protected-networks.net (Postfix) with ESMTP id 451F0C1CF for ; Fri, 15 Sep 2006 09:12:53 -0400 (EDT) Message-ID: <450AA6D4.3050009@protected-networks.net> Date: Fri, 15 Sep 2006 09:12:52 -0400 From: Michael Butler User-Agent: Thunderbird 1.5.0.7 (X11/20060914) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: PQ_CACHESIZE now too small? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2006 13:13:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I note in /sys/vm/vm_page.h we have .. /* Backward compatibility for existing PQ_*CACHE config options. */ #if !defined(PQ_CACHESIZE) #if defined(PQ_HUGECACHE) #define PQ_CACHESIZE 1024 #elif defined(PQ_LARGECACHE) #define PQ_CACHESIZE 512 #elif defined(PQ_MEDIUMCACHE) #define PQ_CACHESIZE 256 #elif defined(PQ_NORMALCACHE) #define PQ_CACHESIZE 64 #elif defined(PQ_NOOPT) #define PQ_CACHESIZE 0 #else #define PQ_CACHESIZE 128 #endif #endif /* !defined(PQ_CACHESIZE) */ #if PQ_CACHESIZE >= 1024 #define PQ_PRIME1 31 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_PRIME2 23 /* Prime number somewhat less than PQ_L2_SIZE */ #define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ #elif PQ_CACHESIZE >= 512 [ .. snip .. ] .. given the ever-increasing availability of L2 cache (even my core duo laptop has 2MB of unified cache between two cores), are these numbers now too small? Alternatively, are these parameters subject to the laws of diminishing returns? Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFCqbUQv9rrgRC1JIRArorAJ9bWRe/qfKZlQ+LvWk8JrRYMP1xGACgxUEy QNnjFa+Iv6B3Lxosjq4OaG4= =EWMf -----END PGP SIGNATURE-----