You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notably, Docker resource limits are only available by cgroups. The worker's reliance of psutil apparently gives the same/similar results as running free -m would, rather than the Docker-configured memory limits, if they exist.
It should be possible to incorporate some shell calls into the docker entrypoint.sh to dump/store the system memory statistics and use those values instead.
The text was updated successfully, but these errors were encountered:
Unfortunately the system (free -m) reports memory usage inside of docker that includes processes outside the current container. I verified it by using ps (which will only list processes inside the same container) and summing the memory usage.
# ps aux --sort=-%mem | awk '{sum += $6} END {print sum / 1024 " MB"}' && echo "" && free -m
85884.6 MB
total used free shared buff/cache available
Mem: 128722 94672 1079 318 32970 32512
Swap: 0 0 0
Notably, Docker resource limits are only available by cgroups. The worker's reliance of psutil apparently gives the same/similar results as running
free -m
would, rather than the Docker-configured memory limits, if they exist.The text was updated successfully, but these errors were encountered: