diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-11-20 12:50:55 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-21 15:33:16 +0000 |
commit | c75c319ea2b818cad25061ba6b77b55db28ab869 (patch) | |
tree | bd1d6665b6c163fa746bea3339b578f4e03a54de /cmd | |
parent | b4bc7b8828f560627d080ed6e383cb12f9f7f5b3 (diff) | |
download | podman-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.go | 2 |
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{ |