always filling SWAP upto 100%

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

always filling SWAP upto 100%

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

Hi.
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
TrevorH
Forum Moderator
Posts: 28556
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 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
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”