The Reliability Whisperer

The Reliability Whisperer

Share this post

The Reliability Whisperer
The Reliability Whisperer
Tweaking Stack Size of Linux Processes to Reduce Swapping

Tweaking Stack Size of Linux Processes to Reduce Swapping

The Reliability Whisperer's avatar
The Reliability Whisperer
Feb 22, 2025
∙ Paid

Share this post

The Reliability Whisperer
The Reliability Whisperer
Tweaking Stack Size of Linux Processes to Reduce Swapping
Share

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:

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 The Reliability Whisperer
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share