always filling SWAP upto 100%

Issues related to applications and software problems
Post Reply
Posts: 1
Joined: 2020/01/26 00:41:30

always filling SWAP upto 100%

Post by SeventhSon » 2020/01/26 00:50:40

There is a 6.10 (actually CloudLinux Server release 6.10 (Vladimir Lyakhov)
6GB memory is free, but swap partition 100% full.
I tried swapoff, than swapon, but after swapon OS fill SWAP partition immediately

Code: Select all

swapon -s
Filename				Type		Size	Used	Priority
/dev/sdg1                               partition	4294244	4294244	-1
I think this behavior is wrong. Why OS use swap if

Code: Select all

free -m
shows 6GB of free memory?
Other similar servers are fine. Checked settings-all looks the same.
Any ideas?

User avatar
Forum Moderator
Posts: 30191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: always filling SWAP upto 100%

Post by TrevorH » 2020/01/26 17:14:56

What is the output from sysctl vm.vfs_cache_pressure vm.swappiness ? Also show the output from free -m and from uname -a
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - Software Support”