* oom_score script
@ 2005-09-18 18:24 Andrea Arcangeli
0 siblings, 0 replies; only message in thread
From: Andrea Arcangeli @ 2005-09-18 18:24 UTC (permalink / raw)
To: linux-kernel
Hello,
I sometime use this script to tune the oom_adj on some server, so I
thought it would be good idea to share it. First column is the pid,
second is the oom_score, third is the executable name.
Thanks.
#!/bin/sh
# (C) SUSE, GPL'd
ls /proc/*/oom_score| grep -v self | sed 's/\(.*\)\/\(.*\)/echo -n "\1 "; echo -n "`cat \1\/\2 2>\/dev\/null` "; readlink \1\/exe || echo/'|sh |sort -nr +1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-18 18:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-18 18:24 oom_score script Andrea Arcangeli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.