OverthinkerDave (Customer) asked a question.
I have a feeling the manuals have not been updated when it comes to SWAP space (and talking about real SWAP part of a system, not TMP)
Which components are using/need a swap partition/file?
Let's brake it down what the manual says for each component:
ACM (software bundle):
"Installation script checks for swap space to be at least 16 GB"
- To begin with: That script doesn't make that check (to begin with)
- Secondly: I tried using 20GB, 24GB: So far ACM (or the 4 components in Wildfly) always uses around 2.3GB of SWAP
Now remember: When Wildfly already have started with its xmx-settings (etc...) it will not be able to use more RAM, hence it "should" not need more SWAP.
But why ACM is even using SWAP is for me a mystery. The manual says 16GB is enough, hence it should not use SWAP, or?
Or maybe for ACM I should rephrase the question:
- When does ACM stop using SWAP?
- (maybe an off topic question, but if there is a value that makes SWAP go a away, then it is on-topic)
AFX (remote installation)
When using "remote provisioning service" (AFX) things have changed dramatically in 8.0.0 (compared to earlier versions)
Now the RAM requirements are 32GB of RAM (and I will not start a discussion about how incorrect that probably is)
But the manual still says:
- memory < 2GB : SWA=3GB
- memory 2 GB - 16 GB : SWAP=Memory Size
- memory > 16GB : SWAP= 16GB
So due the new requirement of 32GB I recon SWAP should always be 16GB
But in reality: I have never seen ANY swap being used on a remote AFX machine having 32GB or 16GB, or even 8GB
Reason? -> The start scripts for AFX locks AFX java to never use more then around 5GB of RAM
(a fix is said to be released, but still in 8.0.0 P04 the "cap" is still there.
So the question is valid: How much SWAP should AFX have?
Maven need a lot of RAM you say?
No, not true.
If I restart my 16GB AFX with at least 20+ connectors, all connectors are being rebuilt, and still not more than 5GB of RAM is being used.
And most importantly: No SWAP is being used (due to java being capped to low numbers)
Load you say?
Well: in when we used AFX in 7.5, then 8GB of RAM was more than enough to handle the 20+ connectors, still no SWAP was used.
Agents (remote installation)
Using "Remote collection agents" (Agents)
Well we can end the discussion here.
Agents hardly use ANY memory, neither RAM or SWAP.
But still: What are the RAM and SWAP requirements?
(Using a RHEL8 it seems the OS and agent never use more than 5GB of RAM, ever. So 6GB should be enough not to trigger SWAP usage, or?)
good question and great analysis...
Some OS factors that could be contributing to the swappiness issue if Redhat 8.x is used:
Change in swap behavior between RHEL 7 and RHEL 8 kernels - Red Hat Customer Portal
RHSA-2023:0496 - Security Advisory - Red Hat Customer Portal