Clearer error message when LMDB has oom error (fix #517) #519
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#519
Loading…
Reference in a new issue
No description provided.
Delete branch "lmdb-oom-message"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think that error is still not sufficient. It should tell the user how much is the minium it has to allocate for it to function properly.
If it's not known how much it needs, there is no way to actually make proper limits that would allow it.
If that virtual memory is not enough, then it would probably need optimization.
That's not how it works. LMDB needs to be able to map in RAM the entire file of the biggest possible database we want to support; concievably someone will someday use Garage with a metadata db bigger than 67GB. Currently the limit is set to 1TB (on 64-bit systems), we might raise it if needed but definitely not make it smaller. On 32-bit systems Garage tries to use a 1GB map size but it's wanky and LMDB should better be avoided on 32-bit systems.