Add option to disable allow_fallocate for RocksDB #1462
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#1462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
In RocksDB, it is recommended to disable
allow_fallocatewhen using BTRFS. (See here)On my server, this had caused Continuwuity to consume gigabytes of disk space.
allow_fallocateis not supported byrust-rocksdb(see: rust-rocksdb/rust-rocksdb#260), so this may not be possible. You may be able to achieve something similar by settingrocksdb::Options::set_manifest_preallocation_sizeto 0, but that feels hacky, and it'd have to be tested to confirm viability.we do use the zaidoon1 soft fork, not sure what settings that adds
I mean to be honest I woudn't recommend running a database on btrfs (or a CoW fs) to begin with, xfs and ext4 are better suited to that task.
@Jade wrote in #1462 (comment):
Sadly, the situation for
allow_fallocateis still missing there. It seems more likely to get a PR in on the fork, though.Currently the temporary fix i'm using is to compile RocksDB without the
WITH_FALLOCATEflag.Blocked on zaidoon1/rust-rocksdb#204.
@Jade wrote in #1462 (comment):
some folks (including me) do run on CoW filesystems / BTRFS though, and having a separate partition just for continuwuity's database seems very overkill to me. that being said, apart from fallocate, running on btrfs seems fine to me (i've not had any issues so far)