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

[Xen-devel] [PATCH] Enlarge default NR_CPUS to 64 for x86_64


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Wei, Gang" <gang.wei@xxxxxxxxx>
  • Date: Fri, 7 Aug 2009 17:37:16 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Fri, 07 Aug 2009 02:40:12 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcoXQqZx2bBl8fi0SSC1Vq+dYQPArA==
  • Thread-topic: [PATCH] Enlarge default NR_CPUS to 64 for x86_64

By far a lot of systems are with more sockets (>=4), more cores (>=8), 
meanwhile with HyperThread, so enlarge the default NR_CPUS would easier the 
build for more threads systems.

Jimmy

-------------------------------------------------------------
Enlarge default NR_CPUS to 64 for x86_64.

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

diff -r b9cdcf502aa3 xen/include/asm-x86/config.h
--- a/xen/include/asm-x86/config.h      Thu Aug 06 11:14:48 2009 +0100
+++ b/xen/include/asm-x86/config.h      Fri Aug 07 14:54:06 2009 +0800
@@ -49,7 +49,11 @@
 #ifdef MAX_PHYS_CPUS
 #define NR_CPUS MAX_PHYS_CPUS
 #else
+#ifdef __i386__
 #define NR_CPUS 32
+#else
+#define NR_CPUS 64
+#endif
 #endif
 
 #ifdef __i386__

Attachment: nr_cpus-64.patch
Description: nr_cpus-64.patch

_______________________________________________
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®.