Revert "Fixing deprecation warnings"
This reverts commit 82b9b59522928863ddadeacfec819e287303ef20. Change-Id: I746d7ae57802dc76618db9024a0cf94c43774c02
This commit is contained in:
parent
3bd235bfcc
commit
1c02305f7d
@ -1,7 +1,7 @@
|
|||||||
<% if @operatingsystem == "Fedora" then
|
<% if operatingsystem == "Fedora" then
|
||||||
# Fedora auto-mounts subsystems under /sys/fs/cgroup/ already, so no
|
# Fedora auto-mounts subsystems under /sys/fs/cgroup/ already, so no
|
||||||
# mount section is needed. %>
|
# mount section is needed. %>
|
||||||
<% elsif @osfamily == "RedHat" then %>
|
<% elsif osfamily == "RedHat" then %>
|
||||||
|
|
||||||
mount {
|
mount {
|
||||||
cpuset = /cgroup/cpuset;
|
cpuset = /cgroup/cpuset;
|
||||||
@ -14,7 +14,7 @@ mount {
|
|||||||
blkio = /cgroup/blkio;
|
blkio = /cgroup/blkio;
|
||||||
}
|
}
|
||||||
|
|
||||||
<% elsif ( @operatingsystemrelease < '12.10' ) or ( @operatingsystem != 'Ubuntu' ) then %>
|
<% elsif ( operatingsystemrelease < '12.10' ) or ( operatingsystem != 'Ubuntu' ) then %>
|
||||||
mount {
|
mount {
|
||||||
cpu = /sys/fs/cgroup/cpu;
|
cpu = /sys/fs/cgroup/cpu;
|
||||||
cpuacct = /sys/fs/cgroup/cpuacct;
|
cpuacct = /sys/fs/cgroup/cpuacct;
|
||||||
@ -49,13 +49,13 @@ group jenkins/children {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
memory {
|
memory {
|
||||||
memory.soft_limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.75).to_i %>;
|
memory.soft_limit_in_bytes = <%= (memorytotalbytes.to_f * 0.75).to_i %>;
|
||||||
memory.limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.9).to_i %>;
|
memory.limit_in_bytes = <%= (memorytotalbytes.to_f * 0.9).to_i %>;
|
||||||
<% if (@operatingsystem == "Fedora") and (@operatingsystemrelease == "18") then
|
<% if (operatingsystem == "Fedora") and (operatingsystemrelease == "18") then
|
||||||
# Because of Red Hat bug 918951, swap management doesn't
|
# Because of Red Hat bug 918951, swap management doesn't
|
||||||
# work in Fedora 18 but should be fixed in 19. %>
|
# work in Fedora 18 but should be fixed in 19. %>
|
||||||
<% else %>
|
<% else %>
|
||||||
memory.memsw.limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.9).to_i %>;
|
memory.memsw.limit_in_bytes = <%= (memorytotalbytes.to_f * 0.9).to_i %>;
|
||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user