I have Centos 7
# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
fresh rsyslogd
# rsyslogd -version
rsyslogd 8.36.0, compiled with:
enough free memory
# free
total used free shared buff/cache available
Mem: 32741276 12244672 4931760 330064 15564844 19239180
But rsyslogd always uses about 430M of swap space, according to smem. I don't understand, why.
Can you give me some advice how to limit it's memory consumption and how to force it to use RAM instead of swap.