WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] VCPU hotplug problem

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] VCPU hotplug problem
From: "Gabriel Southern" <gsouther@xxxxxxx>
Date: Mon, 11 Feb 2008 22:26:21 -0500
Delivery-date: Mon, 11 Feb 2008 19:26:42 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=PvyEfqC8Y+vIr9MECOl6cW1uMXy17cm1NuhYXFTVivk=; b=QSJSQPoVCx3fJfbxKyCYOAgTyGJz1bGS0uKS/4cjtKZl+F4T9yCmGNCpOXdpzzk9ZsiYIKGD4ATYAWHbsGjWYez6WHz28GKr5HE6ohJ49b+twN3p3oEdVacmtOSsTf+sEhHA3YZqiV4cnN5OavTYrJczwIsjnoA2TB4iHHumsIE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=IIvlPHT8EC2GhTYewof7LTJc0LkPj18QT7pfpT4Il0DgEdOUuEY+IS8+rxlMe0P6ztvTCNifCLaScm4M7w5+frnY+2NLlpA19KIeRbgvlLwKTNXZKq5XLbzt7lNSWYwl/I66jvXgkVBaN8QUIIOZ/T1eVNOp1EFvfVEfjHSOafw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

Thanks,

-Gabriel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>