Tests on using swapfile for conda solves #2511
Replies: 3 comments
-
I did the same with the following env and it took 8m4s on high cpu but it took 6m4s on high mem instance (33% longer)
|
Beta Was this translation helpful? Give feedback.
-
The disks used in this exercise were balanced persistent disks (https://cloud.google.com/compute/docs/disks#disk-types). I used miniconda to run the install. |
Beta Was this translation helpful? Give feedback.
-
B/c docker containers rely on the host kernel for memory management, a docker container can't use swap unless there is already swap provisioned on the host or unless it is running as privileged and creates some on the host. In a quick search, it seems that Swap on Linux moved from alpha to beta on k8s with k8s version 1.28, but it doesn't seem to be supported on EKS though it is coming soon or GKE, but seems like it is possible on AKS. See Azure/AKS#1824 for more info. |
Beta Was this translation helpful? Give feedback.
-
sudo dd if=/dev/zero of=/swapfile bs=1MB count=11264
I ran on n1 instances a high cpu and a high mem instance. Both had 2vcpu, 1 core, and 1.8 and 13GiB of RAM respectively.
I gave the high cpu instance an additional 11 GiB of RAM via swap to make both the memory usage about 13 GiB.
I ran
time conda env create -f environement.yaml -y
and it took 2m47s on highcpu and it took 2m27s on highmem (14% longer).Beta Was this translation helpful? Give feedback.
All reactions