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

Reducing RAM usage - split package size into erase page size and write page size #4

Closed
dragonnn opened this issue Dec 15, 2023 · 1 comment

Comments

@dragonnn
Copy link

dragonnn commented Dec 15, 2023

Ekv works great but with 4096 page size it does allocate 8kB of RAM on the stack with can be pretty huge on a 96kb RAM chip.
My flash does have 4096 erase page size but the write can be done in 256 pages (with any offset), maybe splinting up page size into two settings could make it use a 2x256 buffer size?
Or maybe ekv could use free flash sectors as a buffer?

@Dirbaio
Copy link
Member

Dirbaio commented Apr 24, 2024

#7 does this. You can now set max-chunk-size low, to reduce the buffer memory requirements.

@Dirbaio Dirbaio closed this as completed Apr 24, 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

No branches or pull requests

2 participants