Thanks Fabian, I knew linux doesn't use swap memory only when the total memory is full. Maybe I was wrong to set the question, that is I was wondering how mail is the only node of the three that uses this swap, since the others are configured like this. Thanks comunqiue for your replyHi,
Linux doesn't only use swap when the RAM is full, see here for a short how and why.
Yes the value is equal or 60.Maybe simply because of differences in the workload on the nodes (even if they are relatively similar I wouldn't exclude the possibility). Is thecat /proc/sys/vm/swappiness
value the same on all nodes?
Hi everyone, in the cluster I have a way that uses an exaggerated swap although the available memory is enough. I have checked with various tools such as htop etc but everything seems fine.
View attachment 26263
Hi frankz.Hi everyone, in the cluster I have a way that uses an exaggerated swap although the available memory is enough. I have checked with various tools such as htop etc but everything seems fine.
View attachment 26263
Hi frankz.
Thank you for asking the question, because I have exactly the same behavior.
Hi I wanted to confirm that suspending the LXC machine in another node the problem is the same. Furthermore, Zabbix, which I use to monitor the nodes as well, signals me a low-space alert, due to the swap consumption. I think this needs to be reviewed for good, as the backup of the LXC VM also fails.Thank you for asking the question, because I have exactly the same behavior.
First of all thanks for posting. Considering what was written above, I purposely wanted to move the VM (LXC) to another node and the swap of the nod increases in volume. Technically I assume from the parameters of the VM that the swap declared in the properties is not virtualized but shared with the node, so if it were, it is clear that the node itself is involved in the available space. assuming you have several lxcs that make use of a minimum of 1024 Gb of memory and 2048 Gb of swap, the node would be saturated. Not true for all VM machines, but I use zoneminder in LXC and it eats up a lot of memory .... other lxc like centos 8, ubuntu 21 or other are moderate.Not sure if this is the case here, but: when one Linux system does more I/O than another Linux system, it more often makes a choice between not using additional memory for cache and swapping out memory than has not been used for some time. Swap is only reduced when the memory on disk is actually requested by software and moved back into RAM. Therefore, swap keeps growing when the swapped-out memory is not actively used. Maybe that's the difference between your two systems.
If a system is constantly reading from swap (and writing other parts of memory to swap), I would consider it a problem because the additional disk I/O when using memory will slow down the system a lot. However, if swap is filled up over time and almost never ever read/reduced, I would not call this a problem. Apparently some software allocated memory that is hardly ever actually used and it is a good thing that it is not taking up high-speed RAM.
As I said, I'm not sure this it the case for your particular setup, but a monitor that complains about swap being full, while there is no actual (heavy) swap I/O going on, does not understand how Linux uses swap. [EDIT: Some typos an a bit of clarification.]