dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git

oomtop (208B)


      1 #!/bin/sh
      2 # oomtop - lists processes by oom score
      3 
      4 for f in /proc/[0-9]*; do
      5 	s=$(cat "$f/oom_score")
      6 	[ "$s" -eq 0 ] && continue
      7 	printf "%8d  %s %d\n" "$s" "$(cat "$f/comm")" "${f#*/proc/}"
      8 done | sort -nr