[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] VCPU hotplug problem
Gabriel Southern wrote: > Hello, > > I am working on a project using the VCPU hotplug feature in Xen, and I > think that there is a problem with how Linux is processing CPU hotplug > events. The problem I have seen is that the /proc/stat file does not > change the number of CPU entries in response to the: xm vcpu-set > <domain> <num> command. However, the /proc/cpuinfo file is updated > correctly. > > The reason this is important is that some applications use the > sysconf(_SC_NPROCESSORS_ONLN) to determine how many threads to run. > In Linux this function parses the /proc/stat file to determine how > many processors are available. However, the /proc/stat file is not > being updated correctly in response to the xm vcpu-set command. > > It would be a big help for me if anyone else could test to see if they > experience the same problem. I'm not sure if this would qualify as a > problem with Linux or with Xen; however, any ideas for fixing it are > appreciated as well. Hm, it would be helpful if you told us what version of Xen you are running and which kernel you are running. For what it is worth, running a RHEL-5.1 PV guest on a RHEL-5.1 dom0 (both x86_64) seems to do the right thing for me; xm vcpu-set <dom> 1 updates both /proc/cpuinfo and /proc/stat, and xm vcpu-set <dom> 2 updates both again. Chris Lalancette _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |