[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] sysconf() problem on Dom0


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
  • Date: Mon, 26 Jun 2006 20:07:13 +0900 (JST)
  • Delivery-date: Mon, 26 Jun 2006 04:07:57 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi all,

I think patches/linux-2.6.16.13/xen-hotplug.patch does not work
correctly.

When I got a # of online CPUs by sysconf(_SC_NPROCESSORS_ONLN), this
function returns a # of all online and offline CPUs.

xen-hotplug.patch shows all CPUs including offline, but sysconf also
reads /proc/stat and counts online CPUs.

We should modify TOP command to use sysconf().

Thanks,
KAZ


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.