Commit ae259748 authored by apeeyush's avatar apeeyush

Fix incorrect OOM score description in kubelet/qos

The multiplication factor is 10 and not 100 as clear from some other comments in the same file. Also mentioned at https://lwn.net/Articles/391222/.
parent 0ee52eb0
...@@ -44,7 +44,7 @@ func isMemoryGuaranteed(container *api.Container) bool { ...@@ -44,7 +44,7 @@ func isMemoryGuaranteed(container *api.Container) bool {
// GetContainerOOMAdjust returns the amount by which the OOM score of all processes in the // GetContainerOOMAdjust returns the amount by which the OOM score of all processes in the
// container should be adjusted. The OOM score of a process is the percentage of memory it consumes // container should be adjusted. The OOM score of a process is the percentage of memory it consumes
// multiplied by 100 (barring exceptional cases) + a configurable quantity which is between -1000 // multiplied by 10 (barring exceptional cases) + a configurable quantity which is between -1000
// and 1000. Containers with higher OOM scores are killed if the system runs out of memory. // and 1000. Containers with higher OOM scores are killed if the system runs out of memory.
// See https://lwn.net/Articles/391222/ for more information. // See https://lwn.net/Articles/391222/ for more information.
func GetContainerOOMScoreAdjust(container *api.Container, memoryCapacity int64) int { func GetContainerOOMScoreAdjust(container *api.Container, memoryCapacity int64) int {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment