Re: getting processor numbers

Eric Dumazet
2007-04-03T20:32:47Z

Ulrich Drepper a écrit :
> Siddha, Suresh B wrote:
>> No. Logical cpu hotplug uses these interfaces to make a cpu go offline
>> and online.
>
> You missed my sarcasms, email is bad for conveying it. The point is
> nobody really cares about that hotplug nonsense to have noticed the bug.
> And still does this nonsense prevent real problems from being addressed.
>

Please dont focus on /sys being your holy gral.

1) AFAIK /sys/devices/system/cpu was not designed to meet glibc needs.

2) Many production machines dont mount /sys at all

$ uname -r
2.6.20
$ ls -al /sys/devices/system/cpu
ls: /sys/devices/system/cpu: No such file or directory
$ grep processor /proc/cpuinfo
processor : 0
processor : 1