Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/allow_concurrent_database_reads.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix_slow_sector_pruning_scan.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix_stored_sectors_table_bloat.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/index_unreferenced_sectors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/remove_sector_cache.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/reverted_back_to_encodingjson_from_sonic.md

This file was deleted.

27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## 2.11.0 (2026-09-11)

### Features

#### Index unreferenced sectors for pruning

Sectors now track how many contract and temp storage references they have, and
a location holds a lock while a sector is being written to it. The prune sweep
reads unreferenced sectors from an index instead of scanning every stored
sector, which on a 100 TiB host held the database for about six seconds every
five minutes. The last access timestamp is removed. The upgrade computes the
counts for existing sectors and rewrites the sector table, which takes about a
minute at that size.

### Fixes

- Allow concurrent database reads
- Fix high CPU usage during sector pruning
- Removed the in-memory sector cache, the sectorCacheSize setting is now ignored
- Reverted back to encoding/json from sonic.

#### Fix the merkle cache bloating the stored sectors table

The cache kept 32 KiB of subtree roots inline on every sector row, which slowed
sector reads, pruning and contract root lookups. Cached roots are discarded on
upgrade and rebuilt on the next read.

## 2.10.3 (2026-09-01)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module go.sia.tech/hostd/v2 // v2.10.3
module go.sia.tech/hostd/v2 // v2.11.0

go 1.26.0

Expand Down