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

imgproc_cache: Limit cache size to 90% of filesystem size #810

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wmanley
Copy link
Contributor

@wmanley wmanley commented Sep 29, 2023

I'm attempting to debug an issue where we get SIGBUS during _cache_put. SIGBUS can happen when attempting to fault in a page when there is insufficient space on the backing store to allocate one. This should help prevent that situation, and we should get a MapFullError instead.

Instead of just warning we now just delete the cache if it's full to resolve any issues like this. It's safe to do so while the database is open, and the database will just be re-created when the next test-run starts.

I'm attempting to debug an issue where we get SIGBUS during `_cache_put`.
SIGBUS can happen when attempting to fault in a page when there is
insufficient space on the backing store to allocate one.  This should help
prevent that situation, and we should get a `MapFullError` instead.

Instead of just warning we now just delete the cache if it's full to
resolve any issues like this.  It's safe to do so while the database is
open, and the database will just be re-created when the next test-run
starts.
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.

None yet

1 participant