I have a question about the swapped_warn event. It would appear the only way to clear this message is to reboot the node or do a swapoff/swapon If I try an mmhealth event resolve swapped_warn I get a message to say swapped_warn is not manually resolvable. Looking at one of the nodes showing this event, there is 1.2GB of swap being used which is not usual on a Linux server. There is however 160GB of free RAM, the server is not actually "swapping" at the moment and the event is not resolving. It does not appear to be a configurable threshold either. So given that a Linux server is likely to "use" swap even if it has *never* actually ran out of RAM and swapped since it was booted. What's the purpose of this event and can I do something about it? JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
It seems like someone thinks that linux servers should never use any swap. This swapped_warn triggers if you've used more than 50 MB of swap space. I find this silly.. You can tune it using something like "mmchconfig mmhealth-gpfs-swap_alert_threshold_kb=2000000 --force", but I wouldn't want to pollute my config with such settings.. Maybe just disable it using "mmhealth event hide swapped_warn". -jf On Sun, Feb 15, 2026 at 11:33 PM Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> wrote:
I have a question about the swapped_warn event. It would appear the only way to clear this message is to reboot the node or do a swapoff/swapon
If I try an mmhealth event resolve swapped_warn I get a message to say swapped_warn is not manually resolvable.
Looking at one of the nodes showing this event, there is 1.2GB of swap being used which is not usual on a Linux server. There is however 160GB of free RAM, the server is not actually "swapping" at the moment and the event is not resolving.
It does not appear to be a configurable threshold either.
So given that a Linux server is likely to "use" swap even if it has *never* actually ran out of RAM and swapped since it was booted. What's the purpose of this event and can I do something about it?
JAB.
-- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
On 16/02/2026 11:43, Jan-Frode Myklebust wrote:
It seems like someone thinks that linux servers should never use any swap. This swapped_warn triggers if you've used more than 50 MB of swap space. I find this silly..
That's a polite way of putting it. Anecdotally, if memory starts to get tight Linux will preventatively push pages to swap "just in case", and might never actually use it. Consequently having a warning if more than 50MB of swap space is used is as useful as a chocolate teapot. If you are going to warn about swap being used, then it needs to be because the kernel was actually shuffling memory between disk and RAM not because it pushed some pages to disk just in case. On an HPC system where the compute nodes are frequently near maximum RAM usage all I unsurprisingly have a load of spurious warnings.
You can tune it using something like "mmchconfig mmhealth-gpfs-swap_alert_threshold_kb=2000000 --force", but I wouldn't want to pollute my config with such settings.. Maybe just disable it using "mmhealth event hide swapped_warn".
I am debating having a script automatically run "swapoff -a ; swapon -a" on the nodes if these warnings are seen :-) JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Not sure if this is too trivial for this group… but as a performance person on AIX I generally look to see how often is the sweeping hand coming by and how much RAM is it actually collecting… On Linux you want to watch with something like this: watch -n1 'grep -E "pgfree|pgsteal|pgscan|nr_free_pages" /proc/vmstat' To find out how much pressure your server is under you want to look to see how many page scans are being performed (is counter incrementing quickly)… that means the system WANTS memory, versus how large are the page steals how much memory did it get… Typically, you’d divide the steals by the scans to come up with a pressure ratio. If your server is using ALL of its RAM say for cache hits etc, that can be efficient, so long as the ratio is low to how much RAM it demands and how often is it trying to get free memory. If memory is just lazily being occupied the inactive page count will be high, and as soon as a scan demands memory it will free a TON of memory. But if the memory is marked active, and the scan demands memory it won’t be able to free memory, so you’ll end up with many scans and much smaller freed memory. Hope that helps. From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> On Behalf Of Jonathan Buzzard Sent: Monday, February 16, 2026 8:35 AM To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] swapped_warn event On 16/02/2026 11:43, Jan-Frode Myklebust wrote:
It seems like someone thinks that linux servers should never use any
swap. This swapped_warn triggers if you've used more than 50 MB of
swap space. I find this silly..
That's a polite way of putting it. Anecdotally, if memory starts to get tight Linux will preventatively push pages to swap "just in case", and might never actually use it. Consequently having a warning if more than 50MB of swap space is used is as useful as a chocolate teapot. If you are going to warn about swap being used, then it needs to be because the kernel was actually shuffling memory between disk and RAM not because it pushed some pages to disk just in case. On an HPC system where the compute nodes are frequently near maximum RAM usage all I unsurprisingly have a load of spurious warnings.
You can tune it using something like "mmchconfig
mmhealth-gpfs-swap_alert_threshold_kb=2000000 --force", but I wouldn't
want to pollute my config with such settings.. Maybe just disable it
using "mmhealth event hide swapped_warn".
I am debating having a script automatically run "swapoff -a ; swapon -a" on the nodes if these warnings are seen :-) JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org__;!!F9svGWnIaVPGSwU!o15h3llP_t-xAwde_PAYRCF1VYCK7qhlPXsK1TCZNCjGQSiX71ae4hsr_lQQzfzDbWX_iltIVIDP05jTcSf95e2pUMfriO6pIymIMw$<https://urldefense.com/v3/__http:/gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org__;!!F9svGWnIaVPGSwU!o15h3llP_t-xAwde_PAYRCF1VYCK7qhlPXsK1TCZNCjGQSiX71ae4hsr_lQQzfzDbWX_iltIVIDP05jTcSf95e2pUMfriO6pIymIMw$>
Hi Jonathan, Thank you for your question regarding the swapped_warn event. In IBM Spectrum Scale, different categories of health events serve different purposes: State-change events (such as degraded, failed, etc.) indicate actual problems or failures. These events typically resolve automatically; only a small number require manual resolution using the mmhealth event resolve command. TIP events provide recommendations or highlight minor issues, best‑practice deviations, or configuration optimizations. These events do not indicate a failure. If desired, TIP events can be permanently hidden using mmhealth event hide, and once hidden they will not appear again. The swapped_warn event falls into the TIP event category. You are correct that a small amount of swap usage is not necessarily problematic, especially when plenty of RAM is available and the system is not actively swapping. However, we have seen multiple real-world cases where even moderate swap usage negatively impacted system responsiveness and overall Scale performance. Because of this, the TIP is intended to help users who want to extract maximum performance from their systems. If swap usage is not a concern in your environment, you can safely hide the TIP and continue operating normally. I hope this clarifies the purpose of the event and the available options. Please let me know if you need any additional information. best regards Mathias Dietz Storage Scale RAS Architect IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Wolfgang Wendt Geschäftsführung: David Faller Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294 ________________________________ From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> Sent: Sunday, February 15, 2026 11:32 PM To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Subject: [EXTERNAL] [gpfsug-discuss] swapped_warn event I have a question about the swapped_warn event. It would appear the only way to clear this message is to reboot the node or do a swapoff/swapon If I try an mmhealth event resolve swapped_warn I get a message to say swapped_warn is not manually resolvable. Looking at one of the nodes showing this event, there is 1.2GB of swap being used which is not usual on a Linux server. There is however 160GB of free RAM, the server is not actually "swapping" at the moment and the event is not resolving. It does not appear to be a configurable threshold either. So given that a Linux server is likely to "use" swap even if it has *never* actually ran out of RAM and swapped since it was booted. What's the purpose of this event and can I do something about it? JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
On 17/02/2026 08:39, Mathias Dietz wrote:
Hi Jonathan,
Thank you for your question regarding the swapped_warn event.
In IBM Spectrum Scale, different categories of health events serve different purposes:
*State-change events (such as degraded, failed, etc.)* indicate actual problems or failures. These events typically resolve automatically; only a small number require manual resolution using the mmhealth event resolve command. *TIP events* provide recommendations or highlight minor issues, best‑practice deviations, or configuration optimizations. These events do not indicate a failure. If desired, TIP events can be permanently hidden using mmhealth event hide, and once hidden they will not appear again.
The *swapped_warn *event falls into the *TIP event category*.
You are correct that a small amount of swap usage is not necessarily problematic, especially when plenty of RAM is available and the system is not actively swapping. However, we have seen multiple real-world cases where even moderate swap usage negatively impacted system responsiveness and overall Scale performance.
Because of this, the TIP is intended to help users who want to extract maximum performance from their systems. If swap usage is not a concern in your environment, you can safely hide the TIP and continue operating normally.
I agree with everything you have said, but the problem is that GPFS is warning about swap usage even though no swap usage is occurring. That there is usage of swap space is not, and has not been, for over quarter of a century now, a valid measure of whether the Linux kernel is paging memory in/out of disk. You can determine if the kernel is actually paging memory to and from disk with the vmstat command. Checking the nodes reporting the swapped_warn tip shows that they have not paged a single memory page since the last reboot, despite swap usage. As mentioned earlier, the Linux kernel will preemptively write memory pages to swap space as a precaution, so swap usage does not reflect what the GPFS developers think it does. I don't want to hide the tip because it would be useful if it actually did what it said on the tin. The problem is that, at the moment, due to faulty assumptions, the tip is as useful as a chocolate teapot. The TL;DR is that GPFS needs to switch to using a valid measure of paging. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
participants (4)
-
Effrat, Alec -
Jan-Frode Myklebust -
Jonathan Buzzard -
Mathias Dietz
