Tweaking Stack Size of Linux Processes to Reduce Swapping
If your Linux system is experiencing excessive disk activity and performance issues due to high swap usage, tweaking the stack size of processes might help. This issue is particularly relevant for machines with limited RAM.
The computer shouldn’t swap when about half of the RAM is unused.
Symptoms of High Swap Usage
Slow system performance
Frequent hard disk activity
High swap usage even when RAM is available
To check your swap usage, run:
free -m
Example output: