Set oom_score_adj to 900 in gruntmaster-exec
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 17:38:38 +0000 (19:38 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 17:38:38 +0000 (19:38 +0200)
gruntmaster-exec

index b1bcd61..5235e8e 100755 (executable)
@@ -88,6 +88,9 @@ if ($ret) {
        setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit;
        setrlimit RLIMIT_FSIZE, $olimit, $olimit or die $! if $olimit;
        setrlimit RLIMIT_NPROC, $nproc, $nproc or die $! if $sudo;
+       open my $adj, '>', '/proc/self/oom_score_adj';
+       print $adj 900;
+       close $adj;
        unshift @ARGV, @sudo;
        say STDERR "Executing: ", join ' ', map { "'$_'" } @ARGV if $debug;
        exec @ARGV;
This page took 0.022241 seconds and 4 git commands to generate.