Sort Processes by Memory Usage

FreeBSD

ps aux -h | sort -rn -k 5,6
vmstat -m

*Use zfs-stats to check how much is zfs using from your memory

Linux:

ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'

Leave a Reply

Your email address will not be published. Required fields are marked *