Messages in this thread | | | Date | Thu, 10 Apr 2008 12:36:02 -0500 | From | Paul Jackson <> | Subject | Re: [PATCH 1/3] x86: modify show_shared_cpu_map in intel_cacheinfo v3 |
| |
Bert wrote: > I think its easier to count the commas from a cpumask file.
My user level code determines NR_CPUS and MAX_NUMNODES from 32/9 times the strlen() of the values of the Cpus_allowed and Mems_allowed fields in /proc/self/status (being careful to -include- the trailing newline in the strlen.)
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.940.382.4214
| |