Swap space, it's needed at times and can be a real pain at others. It is a necessary evil that has to be put up with however. I've recently had to monitor how much swap space various processes have been using on a Linux system and found that top
was the best and quickest option for doing so.
By default however, top
does not show swap space details...
That's easily remedied by pressing the 'F' (capital f) key followed by 'p' and then enter
This tells top to sort processes using the swap space column and at the same time this also displays the swap space usage. Neat!
Of course top will not keep those settings, but by pressing the 'W' (capital w) key it will write a settings file to ~/.toprc
so the next time you open top, it will have its output sorted by swap space.
By deleting the ~/.toprc
all of the original settings will be restored.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...