🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gmane.linux.kernel
1 messages
1 total messages Started by Andrea Arcangeli Sun, 18 Sep 2005 20:24
oom_score script
#307849
Author: Andrea Arcangeli
Date: Sun, 18 Sep 2005 20:24
12 lines
394 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads