Why is all my swap being used?
The output of free -m is
……………….total……..used…….free……..shared..buffers..cache
Mem:………..497……..404………92……….0……….5……….43
-/+ buffers/cache:……356………141
Swap:……….255……..247……….8
Things are going unimaginably slowly. How can I figure out what's going wrong?
4 Replies
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
deploy 6525 0.4 8.8 66168 44912 ? Sl 06:26 0:23 unicorn_rails w
deploy 6528 0.4 8.7 66220 44452 ? Sl 06:26 0:23 unicorn_rails w
deploy 6522 0.4 8.7 66216 44344 ? Sl 06:26 0:23 unicorn_rails w
deploy 6499 0.4 8.6 66180 43948 ? Sl 06:26 0:23 unicorn_rails w
deploy 6493 0.2 8.2 52000 42184 ? Sl 06:26 0:16 unicorn_rails w
deploy 6502 0.2 7.3 49480 37608 ? Sl 06:26 0:16 unicorn_rails w
deploy 7004 0.5 7.0 44644 35828 ? Sl 07:32 0:08 unicorn_rails w
deploy 6562 0.3 4.9 58176 25128 ? Sl 06:26 0:20 unicorn_rails w
deploy 6565 0.3 4.9 58124 24984 ? Sl 06:26 0:20 unicorn_rails w
deploy 6568 0.3 4.8 58092 24872 ? Sl 06:26 0:20 unicorn_rails w
deploy 6571 0.3 4.8 58088 24764 ? Sl 06:26 0:20 unicorn_rails w
deploy 7163 3.9 2.7 19116 14200 ? Rl 07:58 0:00 unicorn_rails w
postgres 6947 0.0 1.5 47624 7764 ? Ss 07:21 0:00 postgres: deplo
postgres 6927 0.0 1.4 47632 7624 ? Ss 07:17 0:00 postgres: deplo
postgres 7019 0.0 1.4 47632 7600 ? Ss 07:34 0:00 postgres: deplo
deploy 2561 0.1 0.9 10572 4808 ? Sl Aug06 1:09 unicorn_rails m
deploy 2538 0.1 0.8 10568 4356 ? Sl Aug06 1:09 unicorn_rails m
deploy 2585 0.1 0.7 10564 3644 ? Sl Aug06 1:09 unicorn_rails m
root 7137 0.0 0.5 8404 2696 ? Ss 07:57 0:00 sshd: deploy [p
postgres 6653 0.0 0.4 47496 2516 ? Ss 06:29 0:00 postgres: deplo
postgres 6652 0.0 0.4 47496 2504 ? Ss 06:29 0:00 postgres: deplo
postgres 6654 0.0 0.4 47496 2496 ? Ss 06:29 0:00 postgres: deplo
postgres 6651 0.0 0.4 47496 2476 ? Ss 06:29 0:00 postgres: deplo
postgres 6649 0.0 0.4 47568 2444 ? Ss 06:28 0:00 postgres: deplo
postgres 6648 0.0 0.4 47568 2424 ? Ss 06:28 0:00 postgres: deplo
postgres 6646 0.0 0.4 47568 2416 ? Ss 06:28 0:00 postgres: deplo
postgres 6647 0.0 0.4 47568 2364 ? Ss 06:28 0:00 postgres: deplo
I should note that in desperation I rebooted last night, and free -m now reports I'm using 157 of 255 MB swap.