Date: Tue, 8 Oct 1996 10:26:47 +0900 (JST) From: Michael Hancock <michaelh@cet.co.jp> To: FreeBSD Hackers <Hackers@FreeBSD.ORG> Subject: Determining L2 cache size Message-ID: <Pine.SV4.3.93.961008101431.19738A-100000@parkplace.cet.co.jp>
next in thread | raw e-mail | index | archive | help
Being able to probe for cache size would be a good thing for things like
page coloring, etc.
I've been looking around to see if it's being done elsewhere.
I noticed UnixWare has a /system/processor fs which stores characteristics
of the CPU. It has a field for cachesize.
I'm not sure if it's being used for the Intel architecture, I'll have to
probe a little bit...
typedef struct procfile {
int status;
int chip;
int clockspeed; /* in MHz */
int cachesize; /* in Kbytes */
int fpu;
int bdrivers;
timestruc_t modtime;
} procfile_t;
Regards,
Mike Hancock
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.93.961008101431.19738A-100000>
