]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
extindex|v2: defrag SQLite and Xapian DBs on btrfs
authorEric Wong <e@80x24.org>
Tue, 26 Aug 2025 19:50:41 +0000 (19:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Aug 2025 18:48:13 +0000 (18:48 +0000)
commite16ffc2bee661cbc12b7837a2d03c50aa87ac08b
tree234600da61875492bb3ee6ffa5ea8afc8682a055
parent7d4c3d8220df78434c3fc38754a403b12a1aa916
extindex|v2: defrag SQLite and Xapian DBs on btrfs

Doing periodic defrags ought to improve performance and perhaps
allow CoW to be usable with btrfs.  The autodefrag mount option
of btrfs(5) doesn't seem recommended by btrfs developers since
it's too aggressive, defragments too often, and wears out devices.
Performing defrag on our end should allow users to tune a more
ideal defrag interval to maintain performance while avoiding
excessive device wear.
devel/sysdefs-list
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/Syscall.pm
lib/PublicInbox/V2Writable.pm
script/public-inbox-extindex
script/public-inbox-index