Repository navigation
[30.x] Backports - #35232
[30.x] Backports#35232
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35232. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste LLM Linter (✨ experimental)Possible places where named args for integral literals may be used (e.g.
2026-06-02 08:26:43 |
Github-Pull: bitcoin#34228 Rebased-From: 9f7a229
d98cd2c to
64115f1
Compare
The FreeBSD, NetBSD, and OpenBSD build guides state that ZMQ support is compiled in when the package is installed. Since WITH_ZMQ defaults to OFF, update the wording to mention the required CMake option. Github-Pull: bitcoin#35283 Rebased-From: ca93ab8
64115f1 to
6de9e2f
Compare
`CalculateMaximumSignedInputSize()` is passed the outpoint being sized, but that context was not used when estimating the signed input size. Pass the outpoint through so externally selected inputs are not underestimated. Co-authored-by: Antoine Poinsot <[email protected]> Github-Pull: bitcoin#35228 Rebased-From: cd8d3bd
6de9e2f to
6ad2e56
Compare
6ad2e56 to
2e4f087
Compare
2e4f087 to
91a8fee
Compare
91a8fee to
3ca4d94
Compare
willcl-ark
left a comment
There was a problem hiding this comment.
Just one miss in test-each-commit that I can see. Everythign else looks ok.
leveldb is missing the usual Github-Pull or Rebased-From, but that's because it was a cherry-pick. the content appears correct
3ca4d94 to
cdd7c79
Compare
willcl-ark
left a comment
There was a problem hiding this comment.
ACK cdd7c79225965e68f7a5764dd0599f5f68a89094
Failing lint is expected here from a subtree cherry-pick (and not entire pull)
andrewtoth
left a comment
There was a problem hiding this comment.
ACK cdd7c79225965e68f7a5764dd0599f5f68a89094
leveldb is missing the usual Github-Pull or Rebased-From, but that's because it was a cherry-pick. the content appears correct
This could still be added even if it's a cherry-pick though right?
Seek compaction is causing a cascade effect in the chainstate DB, causing large parts of the database to be rewritten every ~hour. Every periodic flush writes around 2 MiB. Since this is roughly the `write_buffer_size`, these writes regularly cause the memtable to rotate into a small L0 file. This file has a small seek budget, and with the random UTXO reads done during validation, it can get scheduled for seek compaction quickly. That seek compaction pushes the small file down to L1. Since most UTXOs are already lower down in L4/L5, many reads that consult this file do not find the key there and continue downward. The bloom filter makes those misses cheap, but LevelDB still decrements the file's seek budget. The file then gets scheduled for another seek compaction, and the same pattern pushes it down through L2 and L3. The expensive part happens around L3/L4. L4 has many ~32 MiB files holding the bulk of the UTXO set. When LevelDB compacts into L3, it may split the output into many smaller L3 files to limit how much L4 "grandparent" data any one output overlaps. Each of these small L3 files then gets its own small seek budget. Because chainstate keys are hash-random, each small L3 file can still have a broad key range, so many random reads consult it and quickly drain its budget. Once seek-compacted into L4, each tiny L3 file can overlap many L4 files, so compacting a few hundred KiB from L3 can require rewriting hundreds of MiB from L4. Repeating that across many small L3 files can rewrite most of the chainstate. This is a poor fit for chainstate because UTXO keys are hash-random, the DB is large enough to have many levels, writes are relatively small and periodic, and reads are frequent. The result is that read misses trigger compactions much earlier than size pressure would, and those compactions have very high write amplification. Disabling seek compaction may leave more files in upper levels for longer, so reads could theoretically consult more files. But Bitcoin Core enables bloom filters for all its LevelDB instances, so these misses are usually cheap in-memory filter checks rather than disk reads. For the other DBs, the risk is much smaller. They also use bloom filters, and most are smaller and less read-heavy. With fewer levels and less random read pressure, disabling seek compaction should have little effect there. Co-authored-by: l0rinc <[email protected]> Github-Pull: bitcoin#35313 Rebased-From: 6bfdb6093bba4710d0f8313ed0113967a8b5176f
Github-Pull: bitcoin#35378 Rebased-From: 4bdd46a
Github-Pull: bitcoin#35408 Rebased-From: 265563b
To match the usage of -latest for the warp runners. Github-Pull: bitcoin#35408 Rebased-From: 5700a61
cdd7c79 to
f3320b3
Compare
Have added. |
marcofleon
left a comment
There was a problem hiding this comment.
ACK f3320b3
Reviewed every commit and compared with the PRs they pulled from. Everything looks good.
|
ACK f3320b3 |
d52747d doc: update manual pages for v30.3rc1 (fanquake) a1406d6 build: bump version to v30.3rc1 (fanquake) 1bdd2b1 doc: update release notes for v30.3rc1 (fanquake) e7c6d39 fuzz: Remove unused g_setup pointers (MarcoFalke) b7c7d1e coins: compact chainstate in background (Lőrinc) 992b1dd validation: randomly compact chainstate (Lőrinc) 55ead70 coins: test chainstate flush baseline (Lőrinc) d09bd0f lint: disable leveldb subtree check (fanquake) Pull request description: Backports: * #34918 * #35465 Final changes for v`30.3rc1`. Backports since `30.2`: * #34283 * #34459 * #34689 * #34754 * #34805 * #34856 * #35211 * #35232 ACKs for top commit: sedited: ACK d52747d marcofleon: ACK d52747d Tree-SHA512: 75fb64f744a0689a9bc4f5a25128bf2aaad7459d7a430f552200b995498428d89de28820f477780f95e7e8485eea9f657ad5fdeae253940df4f29bf51346b4ff
Backports:
SOURCE_DATE_EPOCHingen_idscript #34228outpointwhen estimating input size #35228