From owner-cvs-sys Mon Oct 7 13:28:19 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA26087 for cvs-sys-outgoing; Mon, 7 Oct 1996 13:28:19 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA26078; Mon, 7 Oct 1996 13:28:13 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id PAA02845; Mon, 7 Oct 1996 15:28:02 -0500 (EST) From: John Dyson Message-Id: <199610072028.PAA02845@dyson.iquest.net> Subject: Re: cvs commit: src/sys/vm vm_page.h To: guido@gvr.win.tue.nl (Guido van Rooij) Date: Mon, 7 Oct 1996 15:28:02 -0500 (EST) Cc: dyson@freebsd.org, dyson@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org In-Reply-To: <199610072008.WAA14802@gvr.win.tue.nl> from "Guido van Rooij" at Oct 7, 96 10:08:36 pm Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-sys@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > John Dyson wrote: > > > > > PQ_L2_SIZE is the size in pages... PQ_L2_SIZE * PAGE_SIZE = 256k. > > IMO, It is kind-of bogus to "hard-code" the value, and I am thinking about > > a good solution for that problem. The value is controllable from the > > config file, but my naming conventions leave something to be desired, > > so I haven't documented them (yet.) If you have any ideas, let me know!!! > > > > Perhaps we could introduce a new word in the kernel config file. > Something like > cache > where is the amount of L2 cache. The L1 cache is processor specific > and thus can be obtained via the cpu directive. The rest can then be > doen with macros. > Actually, the L1 cache will be changing on P5 class machines soon. > Btw: Isn't it possible to somehow get the amount of cache at boottime? > It is possible (I think) on a pci-chipset specific basis. We could also estimate it like 'lat_mem_rd', but that would be going too far, probably. John