Determining CPU features / cache organization from userland

Andrew Gallatin gallatin at cs.duke.edu
Fri Oct 10 12:09:55 PDT 2003


Bruce M Simpson writes:
 > 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...

If you do this,  it may make sense to use the same names as MacOSX.

Eg: 

g51% sysctl hw | grep cache
hw.cachelinesize: 128
hw.l1icachesize: 65536
hw.l1dcachesize: 32768
hw.l2cachesize: 524288


Drew


More information about the freebsd-hackers mailing list