Table of Contents

Test SWAP impact

Methodology

I will prepare two virtual servers with the same installation and configuration. Next I will try to compile Nagios with empty memory, we will measure with time command the compilation time. Next I will try to compile Nagios with full memory in different server, to get memory full we will use stress command. We will measure swap in and swap out with several tools.

I will mantain both virtual machines on.

Both machines will have the next configuration:

Nagios compilation compilation will be:

time make all

Prepare environment

useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
yum install epel-release httpd php php-cli gcc unzip wget glibc glibc-common gd gd-devel net-snmp
yum install stress
cd /root
wget https://github.com/NagiosEnterprises/nagioscore/releases/download/nagios-4.4.5/nagios-4.4.5.tar.gz
tar -zxvf nagios-4.4.5.tar.gz

References