From owner-freebsd-current@FreeBSD.ORG Mon Jun 7 19:28:45 2004 Return-Path: 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 DEAD616A4CE for ; Mon, 7 Jun 2004 19:28:45 +0000 (GMT) Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 780C043D2D for ; Mon, 7 Jun 2004 19:28:45 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd04.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1BXPnY-0003O3-00; Mon, 07 Jun 2004 21:28:44 +0200 Received: from Andro-Beta.Leidinger.net (G-6SC2ZZreLlKDB4RptbHpPu+fuGRRwDmPPedvhxwjEj29AV0ocf0S@[84.128.197.114]) by fmrl04.sul.t-online.com with esmtp id 1BXPnF-0cjyCm0; Mon, 7 Jun 2004 21:28:25 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i57JSPTX070577; Mon, 7 Jun 2004 21:28:25 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Mon, 7 Jun 2004 21:29:49 +0200 From: Alexander Leidinger To: Alan Cox Message-Id: <20040607212949.2f7997d9@Magellan.Leidinger.net> In-Reply-To: <20040607174933.GK24461@cs.rice.edu> References: <20040606142446.2900a97e@Magellan.Leidinger.net> <20040606201249.GH24461@cs.rice.edu> <20040607130430.0ebbbb8e@Magellan.Leidinger.net> <20040607174933.GK24461@cs.rice.edu> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: G-6SC2ZZreLlKDB4RptbHpPu+fuGRRwDmPPedvhxwjEj29AV0ocf0S@t-dialin.net cc: current@freebsd.org Subject: Re: comments in the page coloring options in /sys/conf/NOTES X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 07 Jun 2004 19:28:46 -0000 On Mon, 7 Jun 2004 12:49:33 -0500 Alan Cox wrote: > > vm_page.h contains: > > ---snip--- > > #if PQ_CACHESIZE >= 1024 > > #define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ > > #define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ > > #define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ > > ---snip--- > > > > The three defines seem to be the tunables for the page coloring, but > > neither of them seem to be near cache_size/page_size. So even for the > > direct mapped case this doesn't seem to fit your explanation. > > Actually, it does. Divide 1MB (the cache size) by 4KB (the page size) Ooops... I had a different number for the page size in my mind... > > ... Is it as > > easy as using appropriate values for those defines at boot time or is > > there more work involved for auto-tuning version? > > At boot time. That was not my the question...: Do we need to change only places where those defines are used or are other changes required too? Bye, Alexander. -- I'm available to get hired (preferred in .lu). http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7