Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Set map_size for LMDB #206

@lukeyeager

Description

@lukeyeager

@crohkohl, @danst18, I'm breaking the discussion in #203 out into a new issue.

Here's the situation as I understand it. Please correct me if any of this is wrong.

map_size Linux OSX & Windows
lower than size of dataset LMDB runs out of memory ?
higher than system memory No problem LMDB can't allocate enough memory

On Linux, you can just set it as high as you like and never see a problem. But that strategy blows up on other platforms.

Should [map_size] be made configurable?
#203 (comment)

This is a sufficient but lazy solution. I would like to understand whether this can be avoided programmatically somehow before making a decision. My googling skills are failing me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions