Tag: swap

Chasing Down Phantom Swap Usage: When Gunicorn Hides in Swap

A long-running app server was sitting on nearly 2 GB of swap with a swappiness of only 30. Nothing felt slow, but the number looked wrong. This is a walkthrough of how I traced it from “the swap looks full” to a concrete one-line fix in the service definition — and a reminder that resident memory only tells you half…

Read More »

Determine which processes are using swap in Linux

Some servers may have several applications, each running in their own allocated piece of RAM and SWAP.  It seems easy enough to use `top` to determine memory usage, but it wasn’t so obvious (to me) as to how to determine swap usage.  A nifty little command called smem to the rescue. So what is smem?  It is a “Report memory…

Read More »