Displaying 1 result from an estimated 1 matches for "num_procs_onln".
2008 Feb 10
0
Possible VCPU hotplug bug
.../proc/stat file to count the number of cpus that are
online. However, the /proc/stat file is not being updated correctly,
which I think is a bug.
To test this I executed the following program:
---------------------------
#include <stdio.h>
#include <unistd.h>
int main()
{
int num_procs_onln = 0;
num_procs_onln = sysconf(_SC_NPROCESSORS_ONLN);
printf("Number of online processors is: %d\n",num_procs_onln);
return 0;
}
-----------------------------
This program always reported the number of vcpus that the system was
booted with rather than its current c...