Determining CPU features / cache organization from userland
Bruce M Simpson
bms at spc.org
Fri Oct 10 06:44:08 PDT 2003
On Fri, Oct 10, 2003 at 03:36:40AM -0700, Joseph Koshy wrote:
> I'm looking for ways that a userland program can determine the CPU
> features available on an SMP machine -- processor model, stepping
> numbers, supported features, cache organization etc.
"What Silby said" and have a look at the sysutils/x86info port.
I've been thinking we should definitely make the cache organization
info available via sysctl. I am thinking we should do this to make
the UMA_ALIGN_CACHE definition mean something...
I will probably throw diffs Jeff's way soon for this but I'm recovering
from a bit of a nasty cold right now.
BMS
More information about the freebsd-hackers
mailing list