... Playbook #4

Swap Space filling Up

A Linux swap space issue occurs when swap usage becomes inefficient, indicating performance concerns. While swap handles memory demands, excessive use suggests underlying issues. The playbook aids in analyzing swap usage and fine-tuning system settings for improved performance.

echo "Check swap usage on the affected host"
                              
free -m echo "Check Swap in/out" sudo vmstat 1 5 sudo swapon -s
                              
                            
echo "Check which processes are using swap space on the affected host"
                              
find /var/crash/ -type f -name 'vmcore-dmesg.txt' -exec grep -H 'Kernel panic' {} \\;
                              
                            
Check system logs for any indications of swap space issues
                              
df -h
                              
                            
Check if any processes are consuming high CPU or memory resources
                              
top | head -20