Date: Sun, 5 Aug 2001 10:50:38 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: hackers@freebsd.org Cc: msmith@freebsd.org Subject: Re: Page Coloring Message-ID: <200108051750.f75Hoce34726@vashon.polstra.com> In-Reply-To: <200108030347.f733lIC01436@mass.dis.org> References: <200108030347.f733lIC01436@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <200108030347.f733lIC01436@mass.dis.org>, Mike Smith <msmith@FreeBSD.ORG> wrote: > > It looks about right, but page colouring is pointless unless and until we > can determine the processor cache characteristics at runtime. > > Which we can't. Why can't we do this at least on the i386 with the CPUID instruction, initial %eax == 2? It returns cache size, associativity, and line size for both the L1 and L2 caches. As far as I can tell, it works for the Pentium Pro and subsequent processors. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108051750.f75Hoce34726>