RE: Export cpu cache info by sysfs

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2006-02-28 06:18:34
> I think consistency with other arch is a better choice.  My vote would be
> index it from 0.

How do the applications that read this handle the levels ... I'd expect that a
well written application wouldn't care whether you indexed "C" style from 0
or "Fortran" style from 1 ... just so long as you provided some sanity that
lower numbered levels are closer to the cpu, and bigger numbers are further
away.

Are there any applications that look at /sys/devices/system/cpu/cpu*/cache*?

This like it might require some care to get right (different architectures providing
from 0 (unreported) to 3 (or more?) levels of cache ... with split/unified options
all over the map at each level.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Feb 28 06:19:11 2006

This archive was generated by hypermail 2.1.8 : 2006-02-28 06:19:19 EST