aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-20 12:50:55 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-21 15:33:16 +0000
commitc75c319ea2b818cad25061ba6b77b55db28ab869 (patch)
treebd1d6665b6c163fa746bea3339b578f4e03a54de /cmd
parentb4bc7b8828f560627d080ed6e383cb12f9f7f5b3 (diff)
downloadpodman-c75c319ea2b818cad25061ba6b77b55db28ab869.tar.gz
podman-c75c319ea2b818cad25061ba6b77b55db28ab869.tar.bz2
podman-c75c319ea2b818cad25061ba6b77b55db28ab869.zip
Add support for oom functions
Add tests for oom-kill-disable and oom-kill-adj Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #52 Approved by: TomSweeneyRedHat
Diffstat (limited to 'cmd')
-rw-r--r--cmd/kpod/spec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go
index 69e81d0e5..1ae050d25 100644
--- a/cmd/kpod/spec.go
+++ b/cmd/kpod/spec.go
@@ -96,6 +96,7 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) {
g.SetLinuxResourcesMemorySwappiness(config.resources.memorySwapiness)
}
g.SetLinuxResourcesMemoryDisableOOMKiller(config.resources.disableOomKiller)
+ g.SetProcessOOMScoreAdj(config.resources.oomScoreAdj)
// RESOURCES - CPU
@@ -176,7 +177,6 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) {
}
/*
- OOMScoreAdj: &config.resources.oomScoreAdj,
Hooks: &configSpec.Hooks{},
//Annotations
Resources: &configSpec.LinuxResources{