On 12/2/11 2:01 PM, Jerry James wrote:
$ strings /lib64/libc.so.6 | grep -F cpu/online
/sys/devices/system/cpu/online
Drilling down a bit more, it's opened from __get_nprocs, which is called
by (among much else) the malloc arena setup code. So that's going to be
pretty much every application.
The implementation of __get_nprocs hints that there might be a syscall
for finding the number of online CPUs in the future.
- ajax