Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda memory issues on AWS #50

Open
mooreryan opened this issue Dec 11, 2024 · 2 comments
Open

Conda memory issues on AWS #50

mooreryan opened this issue Dec 11, 2024 · 2 comments

Comments

@mooreryan
Copy link
Collaborator

conda env create -f env.yml cannot complete in the AWS SageMaker JupyterLab when using ml.t3.medium (that instance has 4gb of RAM).

Not all of that 4gb is available, but generally between 2 and 3 gb are available.

Here's a graph of conda memory usage (on my laptop)

mem_usage

The red line is running conda env create on an exported env file, while the blue is the default env file as it would normally be written. So even with that, it is still pretty much hitting the limit of available ram on the small instance.

There is conda-lock...I haven't tried it but it's possible that may be more frugal with ram. However, the big spike is in the verifying transaction stage rather than in the environment solving stage, so I'm not sure if it would really make a difference.

There's a chance we could get the memory usage down even more, but I'm going to need to table this and move on for now.

@mooreryan
Copy link
Collaborator Author

Actually, I couldn't resist. Here are some more tests, this time on AWS.

The best runtime and memory is by specifying versions in the env file, as well as setting the channel priority to strict and only using conda-forge and defaults. It's nice for the runtime, but doesn't help the memory issues too much.

mem_usage

@mooreryan
Copy link
Collaborator Author

Sadly that spike that occurs in the verifying transactions stage prevents someone from using a 4gb instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant