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

Read volume vars from file #83

Closed
wants to merge 2 commits into from

Conversation

twsearle
Copy link
Collaborator

@twsearle twsearle commented Mar 18, 2024

Description

We resolved #70 by reducing the memory usage of each process. Unfortunately, we found that the program spent most of its time in IO. This change reads the entirety of a volume variable in one go to reduce the number of file reads, rather than reading and broadcasting one horizontal level at a time.

Dependencies

Impact

The second cycle of the global ocean runs in MetOffice/sith/pull/271 should hopefully complete.

Checklist

@twsearle twsearle self-assigned this Mar 18, 2024
@twsearle
Copy link
Collaborator Author

So far in my limited testing it appears this change might actually be making JOPA slower! I might withdraw this PR unless you can see anything wrong with my results. It is puzzling though, as I was pretty sure a change like this had delivered improvements in the past.

spice gl_ocn:

xc ocnd:

xc ocnd orca12:

There can be a lot of variability in runtimes on xc depending on the load of the file system I think, but still it seems that this change has either neutral impact or makes things worse.

@twsearle twsearle requested a review from s-good March 20, 2024 10:34
@s-good
Copy link
Collaborator

s-good commented Mar 20, 2024

It does seem like this change should speed things up!

This is a complete guess, but I'm wondering about the changes in src/orca-jedi/nemo_io/ReadServer.cc, where it is doing the distribution of data in memory by level previously and now all at once. Is it possible that there is some optimisation happening that makes the old version go faster? I.e. could it be fastest to read all data from file in one go and then distribute in memory by level?

@twsearle
Copy link
Collaborator Author

twsearle commented May 3, 2024

Closing this for now as we couldn't demonstrate any impact.

@twsearle twsearle closed this May 3, 2024
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

Successfully merging this pull request may close these issues.

Read orca data to a single processor under MPI
2 participants