wooden-dusk-90720
02/23/2023, 7:19 PMvictorious-lawyer-58417
02/23/2023, 7:22 PMwooden-dusk-90720
02/23/2023, 7:33 PMmax_swap in the @batch decoratorfresh-laptop-72652
02/23/2023, 9:14 PMulimit for the maximum amount of open files/processes per-container is 1024/4096, and each instance defaults to 65536. Typically not a problem for people, but it can surface in unexpected ways.
• If you created your Batch compute environment using the Amazon Linux 1 AMI, the devicemapper storage driver will be used to preallocate 10GB of per-container storage from the host EC2 instance’s EBS volume that are isolated from each other. In the Amazon Linux 2 AMI, the Docker overlay2 storage driver is used which exposes all unused space on the root EBS volume to all running containers on the node as a shared filesystem. Even though the Linux 1 AMI was supposed to be deprecated in 2020, Batch kept using it as the default well past then 😬wooden-dusk-90720
02/23/2023, 9:17 PMfresh-laptop-72652
02/23/2023, 9:25 PMwooden-dusk-90720
02/23/2023, 9:27 PMmkswap etc?fresh-laptop-72652
02/23/2023, 10:48 PM/dev/xvda or /dev/sda1fresh-laptop-72652
02/23/2023, 10:50 PMpsutil or similar to inspect available swap memory
e.g. in a step you could add
import psutil
psutil.swap_memory()
and see what's reported