projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dbd5d64
)
Set oom_score_adj to 900 in gruntmaster-exec
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 8 Mar 2015 17:38:38 +0000
(19:38 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 8 Mar 2015 17:38:38 +0000
(19:38 +0200)
gruntmaster-exec
patch
|
blob
|
blame
|
history
diff --git
a/gruntmaster-exec
b/gruntmaster-exec
index b1bcd61bf86fab3496a6b05aa2a0c7a5f249bc22..5235e8e5ed3430fa06b37a73a8bc5304c78d54ae 100755
(executable)
--- a/
gruntmaster-exec
+++ b/
gruntmaster-exec
@@
-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.010484 seconds
and
4
git commands to generate.