From: SUZUKI Kazuhiro Subject: sysconf() problem on Dom0 Date: Mon, 26 Jun 2006 20:07:13 +0900 (JST) Message-ID: <20060626.200713.01425930.kaz@flab.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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