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

Explore rasterio COG generation memory usage #158

Open
sgoodm opened this issue Jan 31, 2023 · 3 comments
Open

Explore rasterio COG generation memory usage #158

sgoodm opened this issue Jan 31, 2023 · 3 comments

Comments

@sgoodm
Copy link
Member

sgoodm commented Jan 31, 2023

No description provided.

@sgoodm
Copy link
Member Author

sgoodm commented Jan 31, 2023

COG generation seems to use significantly more memory than a traditional GeoTIFF when using Rasterio. I suspect this is either tied to the overlay creation, or the fact that we are often restructuring the raster blocks and have to read / write larger chunks than the final COG blocks (usually 512x512)

@jacobwhall
Copy link
Member

I noticed significant memory usage (8Gb+) when processing a single VIIRS raster this morning. This will limit the number of concurrent COG exports we can run, even on the HPC.

@jacobwhall
Copy link
Member

Just ran a more formal test and observed a VIIRS average mask COG exports using 12+ gigabytes of RAM. Similar result with and without LZW compression explicitly enabled in the **meta kwargs.

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

2 participants