Docker Container's Memory Swappiness value outside of documented range
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
When I do docker inspect
I read that
Ubuntu 16.04.4 LTS
Docker version 17.05.0-ce, build 89658be
# GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
"MemorySwappiness": -1,
or
Ubuntu 17.10
Docker version 17.09.0-ce, build afdb6d4
GRUB_CMDLINE_LINUX=""
"MemorySwappiness": null,
However the Documentation states that it is a value between 0 and 100.
The second example might result from Swapping being disabled on the docker host.
- Am I missing some paragraph of documentation?
- Are these undocumented values cast to 0? Or 100?
docker
add a comment |Â
up vote
1
down vote
favorite
When I do docker inspect
I read that
Ubuntu 16.04.4 LTS
Docker version 17.05.0-ce, build 89658be
# GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
"MemorySwappiness": -1,
or
Ubuntu 17.10
Docker version 17.09.0-ce, build afdb6d4
GRUB_CMDLINE_LINUX=""
"MemorySwappiness": null,
However the Documentation states that it is a value between 0 and 100.
The second example might result from Swapping being disabled on the docker host.
- Am I missing some paragraph of documentation?
- Are these undocumented values cast to 0? Or 100?
docker
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably. But how can I inherit a value of-1
if valid values rangefrom 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)
â Björn
Apr 27 at 8:30
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Sorry forgot the link
â storm
Apr 30 at 9:25
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
When I do docker inspect
I read that
Ubuntu 16.04.4 LTS
Docker version 17.05.0-ce, build 89658be
# GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
"MemorySwappiness": -1,
or
Ubuntu 17.10
Docker version 17.09.0-ce, build afdb6d4
GRUB_CMDLINE_LINUX=""
"MemorySwappiness": null,
However the Documentation states that it is a value between 0 and 100.
The second example might result from Swapping being disabled on the docker host.
- Am I missing some paragraph of documentation?
- Are these undocumented values cast to 0? Or 100?
docker
When I do docker inspect
I read that
Ubuntu 16.04.4 LTS
Docker version 17.05.0-ce, build 89658be
# GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
"MemorySwappiness": -1,
or
Ubuntu 17.10
Docker version 17.09.0-ce, build afdb6d4
GRUB_CMDLINE_LINUX=""
"MemorySwappiness": null,
However the Documentation states that it is a value between 0 and 100.
The second example might result from Swapping being disabled on the docker host.
- Am I missing some paragraph of documentation?
- Are these undocumented values cast to 0? Or 100?
docker
edited Apr 30 at 9:15
asked Apr 26 at 11:12
![](https://i.stack.imgur.com/ws0PN.jpg?s=32&g=1)
![](https://i.stack.imgur.com/ws0PN.jpg?s=32&g=1)
Björn
1066
1066
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably. But how can I inherit a value of-1
if valid values rangefrom 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)
â Björn
Apr 27 at 8:30
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Sorry forgot the link
â storm
Apr 30 at 9:25
add a comment |Â
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably. But how can I inherit a value of-1
if valid values rangefrom 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)
â Björn
Apr 27 at 8:30
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Sorry forgot the link
â storm
Apr 30 at 9:25
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably. But how can I inherit a value of
-1
if valid values range from 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)â Björn
Apr 27 at 8:30
Probably. But how can I inherit a value of
-1
if valid values range from 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)â Björn
Apr 27 at 8:30
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Sorry forgot the link
â storm
Apr 30 at 9:25
Sorry forgot the link
â storm
Apr 30 at 9:25
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
-1
is a deprecated value. As you can see in this issue 0
is the new -1
https://github.com/moby/moby/pull/33898
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
-1
is a deprecated value. As you can see in this issue 0
is the new -1
https://github.com/moby/moby/pull/33898
add a comment |Â
up vote
0
down vote
accepted
-1
is a deprecated value. As you can see in this issue 0
is the new -1
https://github.com/moby/moby/pull/33898
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
-1
is a deprecated value. As you can see in this issue 0
is the new -1
https://github.com/moby/moby/pull/33898
-1
is a deprecated value. As you can see in this issue 0
is the new -1
https://github.com/moby/moby/pull/33898
answered May 16 at 11:08
![](https://i.stack.imgur.com/ws0PN.jpg?s=32&g=1)
![](https://i.stack.imgur.com/ws0PN.jpg?s=32&g=1)
Björn
1066
1066
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028376%2fdocker-containers-memory-swappiness-value-outside-of-documented-range%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Probably because your kernel doesn't support memory swap and memory limit ("By default, if you do not set --memory-swappiness, the value is inherited from the host machine.") - docs.docker.com/config/containers/resource_constraints/â¦
â ponsfrilus
Apr 26 at 11:15
Probably. But how can I inherit a value of
-1
if valid values rangefrom 0 to 100
The value appears to be undocumented or I appear to fail at reading :-)â Björn
Apr 27 at 8:30
Apparently -1 is the default value, docker engine somehow also treats null as -1. Docker is made by human, you can open a git issue to ask them to better document this part.
â storm
Apr 30 at 9:23
Sorry forgot the link
â storm
Apr 30 at 9:25