Swapfile utilization

we have a greylog on a Linux VM with 8 GB RAM , VM consumed is an average of 2,5 GB, but our system monitoring ( Zabbix) say that swapfile is less of 50%


First question : why is it using swap if it has 5,5 GB RAM free ?


It depends on setting of linux sysctl parameter swappines, not graylog at all. If you use default setting 60, after aproximately 60% of used memory, system will start placing data from ram to disk.
sysctl vm.swappiness

Change to value 1, so linux will start swapping after 99% percenf of ram usage.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.