citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

procmem (177B)


      1 #!/usr/bin/env bash
      2 ps -eo pmem,rss,comm |
      3     grep -v '\[' |
      4     awk 'NR>2{mem[$3]+=$2*1024}END {for(k in mem) print mem[k] "\t" k};' |
      5     sort -gk 1 |
      6     column -t -s $'\t'