Re: getting processor numbers

From: Ulrich Drepper
Date: Tue Apr 03 2007 - 13:31:29 EST


Andi Kleen wrote:
> Topology is dependent on the number of CPUs.

Not all of it.


> Hot plugging is a completely orthogonal problem. Even your original
> proposal wouldn't address it.

Nonsense. Reading /proc/cpuinfo or /sys/devices/system/cpu reflects the
current CPU count. The information read would (and is not) cached, it's
re-read every time. We might add very limited caching (for a few
seconds) but that's as much as we can go.

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

Attachment: signature.asc
Description: OpenPGP digital signature