What does docker mean when it says Memory limited without swap
Docker daemon relies on the following virtual files to implement memory and swap limits:
/sys/fs/cgroup/memory/memory.limit_in_bytes
/sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
If your kernel does not support swap memory limit, the second file won't be there, and docker run
won't impose any limitations on the use of the swap space. That way the container is even allowed to use more swap than the -m, --memory
setting, as if --memory-swap
had been set to -1
. Obviously, the container can't use more swap space than you have configured on your system.
However, the warning message is also trying to say that option -m, --memory
will still take effect, and the maximum amount of user memory (including file cache) will be set as intended.
The mentioned cgroup mount point may differ, consult /proc/self/mounts
.
Cgroup swap accounting
I've contacted google and said that it's a problem with the Ubuntu image, which is not fully supported yet by GCE
Related Topics
How to Enable Hocr Font Info in Tesseract 4
How to Add More Algorithm in Cryptoapi in Linux
Sqlite Data File on Linux and Os X Incompatible
Cmakelist File to Generate Llvm Bitcode File from C Source File
How to Get The Output of at Command in Current or Another Terminal Window
How to Distinguish Between Different Operating System Distros in Node.Js
Getting "Permission Denied" on Dirname and Basename
How to Attach Domain Name to My Server
I Need a Binary Comparison Tool for Win/Linux
How to Use Sysfs Inside Kernel Module
Sending Snmp2 Trap Message from Linux Command Lne
How to Create a File in Assembly with a Dynamically Specified File Path
"Nothing to Commit (Working Directory Clean)" When a Folder Has Been Added
How to Have Postgresql Not Collapse Punctuation and Spaces When Collating Using a Language
How to Selectively Create Symbolic Links to Specific Files in Another Directory in Linux