Re: getting processor numbers

Ulrich Drepper
2007-04-03T18:00:39Z

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

Siddha, Suresh B wrote:
> Not all of the cpu* directories in /sys/devices/system/cpu may be
> online.

Brilliant. You people really know how to create user interfaces. So
now in any case per CPU another stat/access syscall is needed to check
the 'online' pseudo-file? With this the readdir solution is only
marginally faster than parsing /proc/cpuinfo which means, it's
unacceptably slow.

I cannot believe all these big system people are allowed to screw
everybody else up with their nonsense.

So, anybody else has a proposal? This is a pressing issue and cannot
wait until someday in the distant future NUMA topology information is
easily and speedily accessible.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]