Find out what is being used in swap

Helpful Linux memory commands

Find what process is being used in swap:

				
					
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less

				
			

Check top and order by memory:

				
					top -o %MEM
				
			

More To Explore