Swap limit doesn't have to be bigger than memory limit
MODIFY
repo2docker/buildpacks/base.py
repo2docker/buildpacks/base.py
@@ -535,7 +535,7 @@ class BuildPack:
# a memory limit
limits = {
'memory': memory_limit,
- 'memswap': memory_limit + 1
+ 'memswap': memory_limit
}
build_kwargs = dict(

MODIFY
repo2docker/buildpacks/docker.py
repo2docker/buildpacks/docker.py
@@ -33,7 +33,7 @@ class DockerBuildPack(BuildPack):
# a memory limit
limits = {
'memory': memory_limit,
- 'memswap': memory_limit + 1
+ 'memswap': memory_limit,
}
build_kwargs = dict(

Swap limit doesn't have to be bigger than memory limit