]> granicus.if.org Git - sysstat/commitdiff
Increased NR_CPUS and NR_IRQS values.
authorseb <seb@kluane.home>
Thu, 20 Dec 2012 20:44:48 +0000 (21:44 +0100)
committerseb <seb@kluane.home>
Thu, 20 Dec 2012 20:44:48 +0000 (21:44 +0100)
Increased NR_CPUS to a minimum value of 2048, and NR_IRQS to 1024.
Mail from Peter Schiffer <pschiffe@redhat.com> 19/12/2012:

we hit NR_CPUS limit on system with 1280 cpus:

Cannot handle so many processors!
Invalid data format

I'm sending you proposed patch for this problem. I also increased NR_IRQS. Let me know what you think.

CHANGES
common.h

diff --git a/CHANGES b/CHANGES
index b05f701608bc027f899eead16a9c97991df64f9e..ef94d68314cfa96dd70caedfd2abba5130d903b4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,7 @@ xxxx/xx/xx: Version 10.1.3 - Sebastien Godard (sysstat <at> orange.fr)
        * [Peter Schiffer]: Added option -y to iostat. This option
          prevents iostat from displaying its first report with
          statistics since system boot.
+       * [Peter Schiffer]: Increase NR_CPUS and NR_IRQS values.
        * [John Lau]: sadc didn't collect all its activities when
          it had to overwrite an old sysstat data file with some
          unknown activity formats. This is now fixed.
@@ -27,6 +28,7 @@ xxxx/xx/xx: Version 10.1.3 - Sebastien Godard (sysstat <at> orange.fr)
          for easier reading.
        * Fixed wrong command execution syntax in configure script.
        * iostat manual page updated.
+       * CREDITS file updated.
 
 2012/10/06: Version 10.1.2 - Sebastien Godard (sysstat <at> orange.fr)
        * New field added to sar -u and mpstat: %gnice (time spent
index 4bad2c0eadde7c7a6145d5f176062cc343f7c438..533d5f1741e5256325733d7c6c2bf8f30be2fa0a 100644 (file)
--- a/common.h
+++ b/common.h
 #define SEC_PER_DAY    3600 * 24
 
 /* Maximum number of CPUs */
-#ifdef __CPU_SETSIZE
+#if defined(__CPU_SETSIZE) && __CPU_SETSIZE > 2048
 #define NR_CPUS                __CPU_SETSIZE
 #else
-#define NR_CPUS                1024
+#define NR_CPUS                2048
 #endif
 
 /* Maximum number of interrupts */
-#define NR_IRQS                        256
+#define NR_IRQS                        1024
 
 /* Size of /proc/interrupts line, CPU data excluded */
 #define INTERRUPTS_LINE        128