Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 22:08:36 +0200 (MET DST)
From:      guido@gvr.win.tue.nl (Guido van Rooij)
To:        dyson@freebsd.org
Cc:        dyson@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org
Subject:   Re: cvs commit:  src/sys/vm vm_page.h
Message-ID:  <199610072008.WAA14802@gvr.win.tue.nl>
In-Reply-To: <199610071944.OAA02756@dyson.iquest.net> from John Dyson at "Oct 7, 96 02:44:22 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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	<n>
where <n> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610072008.WAA14802>