Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 031ccfb27f | |||
| f8da1c01f6 | |||
| 4e8f804869 | |||
| 8b08333277 |
17
nmon-incrase-cpumax-to-support-2048-cpus.patch
Normal file
17
nmon-incrase-cpumax-to-support-2048-cpus.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 12:24:55 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add nmon-incrase-cpumax-to-support-2048-cpus.patch (bsc#1247368)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 8 21:10:01 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package nmon
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2011-2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -25,6 +25,7 @@ License: GPL-3.0-only
|
||||
URL: https://nmon.sourceforge.io/pmwiki.php
|
||||
Source0: https://sourceforge.net/projects/nmon/files/lmon%{version}.c
|
||||
Source1: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
Patch1: nmon-incrase-cpumax-to-support-2048-cpus.patch
|
||||
BuildRequires: ncurses-devel
|
||||
Provides: lmon = %{version}
|
||||
|
||||
@@ -53,6 +54,8 @@ important performance information in one go. It can output the data in two ways
|
||||
|
||||
%prep
|
||||
%setup -q -T -c %{name}-%{version}
|
||||
install -m 644 %{SOURCE0} lmon%{version}.c
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} \
|
||||
@@ -64,7 +67,7 @@ export CFLAGS="%{optflags} \
|
||||
%if !0%{?is_opensuse}
|
||||
-D SLES12 \
|
||||
%endif
|
||||
%{SOURCE0}"
|
||||
lmon%{version}.c"
|
||||
export LDFLAGS="-o nmon \
|
||||
-lncurses \
|
||||
-lm \
|
||||
|
||||
Reference in New Issue
Block a user