Skip to content

Commit

Permalink
Merge pull request coreos#972 from dm0-/docker
Browse files Browse the repository at this point in the history
kola/tests/docker: Double the memory test limit to 20 megabytes
  • Loading branch information
dm0- authored Feb 10, 2019
2 parents 9f5cbc5 + c807679 commit f1c7619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kola/tests/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func dockerResources(c cluster.TestCluster) {
// ref https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources
for _, dockerCmd := range []string{
// must set memory when setting memory-swap
dCmd("--memory=10m --memory-swap=10m"),
dCmd("--memory=20m --memory-swap=20m"),
dCmd("--memory-reservation=10m"),
dCmd("--kernel-memory=10m"),
dCmd("--cpu-shares=100"),
Expand All @@ -264,7 +264,7 @@ func dockerResources(c cluster.TestCluster) {
//dCmd("--device-write-bps=/dev/vda:1kb"),
//dCmd("--device-read-iops=/dev/vda:10"),
//dCmd("--device-write-iops=/dev/vda:10"),
dCmd("--memory=10m --oom-kill-disable=true"),
dCmd("--memory=20m --oom-kill-disable=true"),
dCmd("--memory-swappiness=50"),
dCmd("--shm-size=1m"),
} {
Expand Down

0 comments on commit f1c7619

Please sign in to comment.