File nmon-incrase-cpumax-to-support-2048-cpus.patch of Package nmon
From: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Subject: [PATCH] lmon16q.c: increase CPUMAX to support up to 2048 CPUs
nmon currently fails on systems with high CPU counts due to a low CPUMAX setting.
This patch increases the CPUMAX value to support systems with up to 2048 CPUs.
--- a/lmon16q.c 2025-07-03 16:48:03.567956477 +0530
+++ b/lmon16q.c 2025-07-03 16:53:33.641940838 +0530
@@ -1443,7 +1443,7 @@
/* Supports up to 780, but not POWER6 595 follow-up with POWER7 */
/* XXXX needs rework to cope to with fairly rare but interesting higher numbers of CPU machines */
-#define CPUMAX (192 * 8) /* MAGIC COOKIE WARNING */
+#define CPUMAX (256 * 8) /* MAGIC COOKIE WARNING */
struct data {
struct dsk_stat *dk;