future-grass-38108
01/13/2023, 5:44 AMwith S3() context to get s3 objects as mentioned here. But the problem here is as temporary files get deleted after the context is over, our program has to fetch all these images again in every epoch. This increases per epoch time significantly (almost 10-20x).victorious-lawyer-58417
01/13/2023, 6:02 AMwith), it won't delete temporary files, like here:
s3 = S3()
s3.get_many(...)victorious-lawyer-58417
01/13/2023, 6:09 AMtmproot argument in the S3 constructorvictorious-lawyer-58417
01/13/2023, 6:10 AM@batch or @kubernetes?future-grass-38108
01/13/2023, 6:11 AMregarding allocated disk space, are you using@batchor@batch?@kubernetes
victorious-lawyer-58417
01/13/2023, 6:17 AM@batch, which is a limitation on the AWS side. You have to create a custom Launch Template and a new Compute Environment like described here https://aws.amazon.com/premiumsupport/knowledge-center/batch-job-failure-disk-space/fresh-laptop-72652
01/13/2023, 7:29 PMfuture-grass-38108
01/16/2023, 5:47 AMfirstly, if you use the S3 client without a context manager (withoutOne question here: Suppose in the first epoch I have fetched all the images and now they are all stored at my tmproot directory as temporary files. In the subsequent epochs when I again fetch those same images (using s3.get(“s3_url”)) does it pick up those already saved temporary files or it again downloads those images and saves as new temporary files? I expected that former would happen but actually latter is happening. Here the S3 class I am using is S3(tmproot=“/dev/shm/“). In the docker container /dev/shm is mapped to shared_memory which we specify through @batch.), it won’t delete temporary files, like here:with
victorious-lawyer-58417
01/16/2023, 7:44 AMvictorious-lawyer-58417
01/16/2023, 7:45 AMS3.get_many for every iteration