dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 9ca97c271a5779735c0f14ee860fa4426e062441
parent 4aade0b49c3d889e9563435476022281b60ddf8c
Author: Duncaen <mail@duncano.de>
Date:   Sun,  5 Feb 2017 02:16:18 +0100

bin: add oomtop

Diffstat:
bin/oomtop | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/oomtop b/bin/oomtop @@ -0,0 +1,8 @@ +#!/bin/sh + +printf "score\tpid\tcommand\n" >&2 +for f in /proc/[0-9]*; do + s=$(cat "$f/oom_score") + [ "$s" -eq 0 ] && continue + printf "%d\t%d\t%s\n" "$s" "${f#*/proc/}" "$(cat "$f/comm")" +done | sort -nr