• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved Warning: The swap usage status is critical!

Azurel

Silver Pleskian
I received this plesk email today:
The swap usage status is critica!
The current value is 3.6 GiB.
My server have 128 GB RAM
unknown.png

Then why does he use "swap" so much?

#free -m
unknown.png


CentOS Linux 8.4.2105

EDIT:
I used
# swapoff -a && swapon -a
and now its 0K/4G
If anyone wants to do this as well, it may take time. With me almost 1 hour. In a second console window you can watch the swap as it decreases.
 
Last edited:
I would not call it "normal". Swap is hard disk and it should not read almost 4GB of data from hard disk, instead it should be in RAM. ;)
If there is RAM available, why does it use swap?
 
There is RAM available, but there is very little RAM free because it's all used for buffers and cache. So the kernel swaps out stuff that has not been used for a while in favor of having more buffer/cache. You will only see zero swap usage if you have more RAM than the size of your file data set.

Check with vmstat. You will see that si and so are zero, swap usage is quasi-static.
 
Back
Top