GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · clockworklabs/SpacetimeDB
Tags
v2.16.3Load database before enforcing memory budget (#6658) # Description of Changes Allow databases to finish loading when their resident memory footprint exceeds the configured limit. Suspend the hard limit throughout snapshot restoration, replay, index rebuilding, and remaining startup work, then restore enforcement and attempt eviction. Eviction errors are logged without preventing startup. Databases that remain over budget reject new ordinary allocations. Unify existing allocation exemptions under the same accounting path with scoped suspension. # API and ABI breaking changes None. # Rollback safety impact n/a # Expected complexity level and risk 3 Changes shared budget enforcement and the recovery lifecycle # Testing Included in clockworklabs/SpacetimeDBPrivate#4330. Co-authored-by: Alessandro Asoni <[email protected]> v2.16.2Bump version to 2.16.2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> v2.16.0-hotfix1Regenerate snapshots and bindings after applying #6665 and #6666 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> v2.16.1Use parking_lot's Mutex in BlobSet, so TxState is the same size on ma… …cOS (#6641) # Description of Changes `spacetimedb-datastore` fails to compile on macOS: `static_assert_size!(TxState, 144)` fails because `TxState` is 152 bytes there. The extra 8 bytes come from `BlobSet`, which #6305 added to `TxState`. Its `evictable` field was a `std::sync::Mutex<Vec<_>>`. On Linux, std's `Mutex` is a futex word plus a poison flag (8 bytes). On Apple targets it is a lazily boxed pthread mutex, a pointer plus a poison flag (16 bytes). Measured on aarch64 macOS, `BlobSet` was 96 bytes there against 88 on Linux, which put `TxState` at 152 against 144. CI didn't catch this because every PR job that compiles the datastore runs on Linux or Windows. The only macOS builds are in `package.yml`, which runs on tag pushes and manual dispatch, so the next release packaging run would probably have hit it. This PR switches `evictable` to `parking_lot::Mutex`, as suggested in review. `BlobSet` already uses `parking_lot` for its `RwLock`, and `parking_lot`'s `Mutex` has the same layout on every platform, so the existing `static_assert_size!(TxState, 144)` now holds everywhere and is unchanged. `parking_lot` doesn't poison, so the two `.lock().unwrap()` calls become `.lock()`. # API and ABI breaking changes None. `evictable` is a private field. # Rollback safety impact n/a # Expected complexity level and risk 1. One private field changes mutex type. The lock is only taken in `evict_inner` and `heap_usage`, and neither relied on poisoning. # Testing - Manual: on aarch64 macOS, `spacetimedb-datastore` now compiles with the unchanged `static_assert_size!(TxState, 144)`. Before this change it failed with `TxState` at 152 bytes. - Existing `spacetimedb-table` and `spacetimedb-datastore` tests pass on aarch64 macOS. These include the `BlobSet` eviction tests, which take the lock this PR changes. - Not tested: x86_64 macOS. `parking_lot`'s `Mutex` doesn't depend on the OS mutex, so its size should be the same there, but I haven't built it. v2.16.0Integrate tiered storage (#6305) # Description of Changes Integrates tiered storage into the rest of the codebase. This is a big change, because every call site that may access a page or blob becomes fallible due to the possibility of fault errors. Much of this is mechanical, but note that transaction commit becomes a two-step process with this patch: first, all pages and blobs affected by the transaction are faulted in if necessary, and pinned so they can't be evicted until the transaction completes. Then, the transaction is actually applied -- this remains infallible and therefore atomic. # API and ABI breaking changes Internal only. # Rollback safety impact N/A # Expected complexity level and risk 5 # Testing <!-- Describe any testing you've done, and any testing you'd like your reviewers to do, so that you're confident that all the changes work as expected! --> - [ ] <!-- maybe a test you want to do --> - [ ] <!-- maybe a test you want a reviewer to do, so they can check it off when they're satisfied. --> --------- Signed-off-by: joshua-spacetime <[email protected]> Co-authored-by: joshua-spacetime <[email protected]> docs/release/backup-2026-11-09-583384066Preserve docs/release before releasing master 81006e0 on 2026-11-09 docs/release/backup-2026-11-06-25d866ebdPreserve docs/release before releasing master 291031b on 2026-11-06 docs/release/backup-2026-10-30-2a6599e2ePreserve docs/release before releasing master 7243afc on 2026-10-30 PreviousNext
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |