Is there a way to easily find exactly which processes are currently "swapped out" (i.e. currently taking up my swap space).
I know that processes are dynamically swapped in and out as needed, but I'm interested in the current state they are in.
I am talking about FreeBSD here but would also be interested in a general answer for other OSs.
In FreeBSD you can run
top
and it will say<swapped>
in the "command" field of an processes that are fully swapped out. This is rare however, as it's usually just some of the memory pages for the process, not the whole process.with
pstree -clap
your swapped processes are between brackets