-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
P3might get fixed, nice to havemight get fixed, nice to haveboltdbfeature requestRequests for new featuresRequests for new featuresperformance
Description
Background
While the database compaction works, writing data to the "temp don't use" file, the updates are written in "sync" mode. For my HDD based ZFS system, this slows down operation quite a lot (it's not worth it to add a SLOG VDEV, as only lnd is using "sync"). Manually disabling "sync" on the filesystem (which one should not do in general!) massively improves the speed of the compaction process.
I believe it's not necessary to sync during compaction, as the data is only used once the whole process completes (running sync at the end might be necessary, though).
Your environment
- 0.17.3-beta
- Linux ftp 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
- v26
Steps to reproduce
Run bbolt compaction on, for example, the watchtower.db file of a watchtower (server).
Expected behaviour
It's fast.
Actual behaviour
It's slow.
silenzara and zapomatic
Metadata
Metadata
Assignees
Labels
P3might get fixed, nice to havemight get fixed, nice to haveboltdbfeature requestRequests for new featuresRequests for new featuresperformance