Skip to content

Conversation

@simonmar
Copy link
Collaborator

@simonmar simonmar commented Jan 13, 2026

The new config flag db_lmdb_restore_unpack (default true) controls unpacking of the DB when it is restored. If this flag is set to false, then the DB will not be unpacked by restore, instead we just keep the squashfs file and attempt to mount it when the DB is opened. This allows storing compressed DBs and decompressing on the fly. The DB is unmounted when closed, so we're only keeping mounts for the subset of DBs that are being actively used. Mounting/unmounting are very fast, so this shouldn't impact open/close latency.

The overhead for Glass to access a compressed DB this way seems to be about 10% the first time, and 0% after the uncompressed pages are cached. This was using the current default compression algorithm of zstd level 8.

Currently using squashfuse_ll to mount which is supposed to be a little faster than squashfuse and not quite as fast as a native mount -t squashfs, but the latter requires the server to be running as root.

@netlify
Copy link

netlify bot commented Jan 13, 2026

Deploy Preview for fb-oss-glean canceled.

Name Link
🔨 Latest commit 8880a1d
🔍 Latest deploy log https://app.netlify.com/projects/fb-oss-glean/deploys/69728873ccf7f70008857c6b

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 13, 2026
@simonmar simonmar force-pushed the lmdb-7 branch 2 times, most recently from 4e6d2dc to a27f81f Compare January 17, 2026 11:13
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 22, 2026

@iamirzhan has imported this pull request. If you are a Meta employee, you can view this in D91223898.

@simonmar simonmar force-pushed the lmdb-7 branch 3 times, most recently from 7700b9a to 6afa6aa Compare January 22, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant