I am using continuumio/miniconda3:latest
as the base image for my container. It looks to be debian based. I run it under Amazon Linux 2. I would like to optimally use compressed memory, perhaps zram, in the miniconda3 container in privileged mode. The container has access to 4 to 128 vCPUs and 6 GiB to 3.7 TiB of RAM, depending upon the job at hand. For what it's worth, the container doesn't seem to currently have systemd. My motivation is that the container has a large amount of unused CPU resources but insufficient memory for a big data job. Ideally I would want 2:1 or if possible 3:1 the virtual memory as the physical memory.
For what it's worth, the container has a /proc
filesystem, and it also has privileged mode access in case it's relevant. The host has a /proc
filesystem that has been mounted into the container at /host/proc
.
What is the best way for me to update my docker image and container to optimally configure compressed memory using all vCPUs, preferably without hardcoding the amount? In principle I'd like to execute an entrypoint script, perhaps to configure and enable zram.
/proc
filesystem. The real memory is about 3.7 TiB and there are 128 vCPUs available for de/compression. The problem is thatpandas
is running out of memory despite valiant attempts to minimize its memory usage. In general though, using compressed memory would be great because it would result in significant cost savings for many memory-bound jobs even when the container is not running out of memory.