From owner-cvs-sys Mon Oct 7 13:08:54 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA23559 for cvs-sys-outgoing; Mon, 7 Oct 1996 13:08:54 -0700 (PDT) Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA23536; Mon, 7 Oct 1996 13:08:45 -0700 (PDT) Received: by gvr.win.tue.nl (8.6.13/1.53) id WAA14802; Mon, 7 Oct 1996 22:08:37 +0200 From: guido@gvr.win.tue.nl (Guido van Rooij) Message-Id: <199610072008.WAA14802@gvr.win.tue.nl> Subject: Re: cvs commit: src/sys/vm vm_page.h To: dyson@freebsd.org Date: Mon, 7 Oct 1996 22:08:36 +0200 (MET DST) Cc: dyson@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org In-Reply-To: <199610071944.OAA02756@dyson.iquest.net> from John Dyson at "Oct 7, 96 02:44:22 pm" X-Mailer: ELM [version 2.4ME+ PL17 (25)] 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. Btw: Isn't it possible to somehow get the amount of cache at boottime? -Guido