FS#39698 - [linux] Please enable CONFIG_MEMCG_SWAP_ENABLED in the default kernel.
Attached to Project:
Arch Linux
Opened by Ahmed W. (OneOfOne) - Monday, 31 March 2014, 16:31 GMT
Last edited by Thomas Bächler (brain0) - Monday, 31 March 2014, 23:06 GMT
Opened by Ahmed W. (OneOfOne) - Monday, 31 March 2014, 16:31 GMT
Last edited by Thomas Bächler (brain0) - Monday, 31 March 2014, 23:06 GMT
|
Details
Description:
Docker uses CONFIG_MEMCG_SWAP_ENABLED for swap limitation on containers, which is needed in a lot of cases. Steps to reproduce: sudo systemctl start docker sudo docker run -m=$((512 * 1024)) -i -t base/arch bash Results : WARNING: Your kernel does not support swap limit capabilities. Limitation discarded. |
This task depends upon
Closed by Thomas Bächler (brain0)
Monday, 31 March 2014, 23:06 GMT
Reason for closing: Won't implement
Monday, 31 March 2014, 23:06 GMT
Reason for closing: Won't implement
Comment by
Dave Reisner (falconindy) - Monday,
31 March 2014, 16:41 GMT
You can just add swapaccount=1 to your kernel commandline. We
should not enable this by default. The requisite MEMCG_SWAP option
is already in our config.