From: seb Date: Thu, 20 Dec 2012 20:44:48 +0000 (+0100) Subject: Increased NR_CPUS and NR_IRQS values. X-Git-Tag: v10.1.3~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c658fb186dbb6482db6d11c9a350803f17a3f04c;p=sysstat Increased NR_CPUS and NR_IRQS values. Increased NR_CPUS to a minimum value of 2048, and NR_IRQS to 1024. Mail from Peter Schiffer 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. --- diff --git a/CHANGES b/CHANGES index b05f701..ef94d68 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,7 @@ xxxx/xx/xx: Version 10.1.3 - Sebastien Godard (sysstat 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 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 orange.fr) * New field added to sar -u and mpstat: %gnice (time spent diff --git a/common.h b/common.h index 4bad2c0..533d5f1 100644 --- a/common.h +++ b/common.h @@ -28,14 +28,14 @@ #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