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

cosima-cookbook can't load 3D variables in conda-env:analysis3-24.04 and later #398

Open
taimoorsohail opened this issue Jul 1, 2024 · 5 comments
Labels
🐞 bug Something isn't working ❓ question Further information is requested

Comments

@taimoorsohail
Copy link
Collaborator

taimoorsohail commented Jul 1, 2024

Hello,

I hit a Memory Error if I try to load a 3D variable (e.g., temperature) using cosima cookbook for analysis3-24.04 and greater.

I have isolated an example code that demonstrates the issue:

from dask.distributed import Client

client = Client() # n_workers=4
client

session = cc.database.create_session()
# Define experiment in database
expt = '01deg_jra55v13_ryf9091'

start_time, end_time = '2170-01-01', '2180-12-31'

temp = cc.querying.getvar(expt, 'temp', session, start_time=start_time, end_time=end_time,  frequency='1 monthly')

The error is:

MemoryError: Task 'getattr-d071745a-50f5-49b1-bda9-f8a50aeb807d' has 197.16 GiB worth of input dependencies, but worker tcp://127.0.0.1:37893 has memory_limit set to 35.88 GiB.

@angus-g??

@navidcy
Copy link
Collaborator

navidcy commented Jul 1, 2024

cc'ing @dougiesquire here as well

@navidcy navidcy added the ❓ question Further information is requested label Jul 1, 2024
@navidcy
Copy link
Collaborator

navidcy commented Jul 1, 2024

so this is not an issue if you use conda envs 24.01 or earlier?

@angus-g
Copy link
Contributor

angus-g commented Jul 1, 2024

This is discussed on the Hive: https://forum.access-hive.org.au/t/xarray-warnings-while-loading-data-using-cosima-cookbook/2169/14

@taimoorsohail
Copy link
Collaborator Author

so this is not an issue if you use conda envs 24.01 or earlier?

Correct

@navidcy
Copy link
Collaborator

navidcy commented Jul 19, 2024

@taimoorsohail does the threads_per_worker=1 kwarg in the dask Client solve this issue?

@navidcy navidcy changed the title Cosima-cookbook doesn't load 3d variables for conda-env:analysis3-24.04 and greater cosima-cookbook can't load 3D variables in conda-env:analysis3-24.04 and later Jul 19, 2024
@navidcy navidcy added the 🐞 bug Something isn't working label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working ❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants