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

Increase file IO speed #7

Closed
htmlboss opened this issue Nov 4, 2019 · 2 comments
Closed

Increase file IO speed #7

htmlboss opened this issue Nov 4, 2019 · 2 comments
Labels
enhancement New feature or request medium-priority

Comments

@htmlboss
Copy link
Contributor

htmlboss commented Nov 4, 2019

There may be an opportunity to speed up nc file reading by playing with some block size parameters:
https://www.unidata.ucar.edu/software/netcdf/docs/group__datasets.html#gaccbdb128a1640e204831256dbbc24d3e

or

https://www.unidata.ucar.edu/software/netcdf/docs/group__datasets.html#ga88d20343e6357a33e973ba735052da74

@htmlboss htmlboss added enhancement New feature or request medium-priority labels Nov 4, 2019
@htmlboss htmlboss changed the title Increase file IO Increase file IO speed Nov 7, 2019
@htmlboss
Copy link
Contributor Author

htmlboss commented Nov 7, 2019

There's also the consideration of using the netcdf-c library instead of the c++ library. The former has a much larger set of interfaces and parameters to play with than the latter.

We also need to check our netcdf files for the following attribute: _NetCDF4Coordinates. This long chain explains why: Unidata/netcdf-c#489

@htmlboss
Copy link
Contributor Author

htmlboss commented Dec 12, 2019

After examining some metrics provided by Linux (pmap, etc.), there is nothing else to be optimised in terms of memory or IO. Any slow-ness is a result of drive rotation speed; this tool has next to 0 overhead. The netcdf libraries are using chunking to load the files from disk which is keeping memory usage very low, even with large files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium-priority
Projects
None yet
Development

No branches or pull requests

1 participant