Repository navigation
Release v0.2.15 - #1295
Merged
Merged
Release v0.2.15#1295
Conversation
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 18, 2026
…tus 2 on the sibling's page counted as the sibling's A1 (correctness): kv_durchlauf.DiskPages handed a released disk page id to the next read at once (LIFO free list). QSAPagedHostPool._s36_disk_stage keys its per-load stage by the disk page tuple, so the next single-page load with the reused id got the PREVIOUS page's QSA index on every layer (silent wrong sparse selection), and a stale host row of the released page would have loaded the new page's bytes instead of the named LOAD REFUSED. Ids are now monotonic (2**40 + d*P in int64 does not run out). A2 (S36 risk 4, sgl-project#1295 MUST_FIX 4): with the write-behind never holding still, P-PP0 and D-TP0 walk the same COMPLETE census of the shared arenas at the same time; the second writer of a page gets status 2 and committed it as its OWN -- two owners, each free to unlink the file. Now: LRUFileEvictor.owns() is asked before the reserve; a status 2 on a page this owner did not already hold is resolved by LRUFileEvictor.adopt_foreign() (counted, never unlinked here, journal A), exactly as the wake's journal apply indexes the sibling's C line. This owner's own page (indexed or reserved by a writer of this process) stays a commit. Log field foreign_done=. Tests: test_weg2_s36_kv_durchlauf_1018.py +4 (19 passed locally, 4 GiB cgroup). Mutants U1/D1/D2 added to mutants_kv_durchlauf_s36_1018.sh, all three killed.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 18, 2026
…7-s36-1018 b02f77f): disk page ids never reused + write-behind status 2 on the sibling's page counted as the sibling's, 1 step, kit rule per source commit A1: kv_durchlauf.DiskPages ids are monotonic -- a reused id made QSAPagedHostPool's per-load disk stage serve the previous page's QSA index, and a stale host row load another page's bytes instead of LOAD REFUSED. A2 (S36 risk 4, sgl-project#1295 MUST_FIX 4): a write-behind status 2 on a page this owner did not already hold (the sibling group's pass wrote it first) is LRUFileEvictor.adopt_foreign (counted, never unlinked here), not a second owner's commit; this owner's own page stays a commit (LRUFileEvictor.owns asked before the reserve). Kit: drive.py b02f77f (5 MERGED-CLEAN); translation units 0. Byte proof vs rename(b02f77f): 16 paths, 13 byte-equal, catalog.json rebuilt in the renamed tree (next port), hicache_storage / server_args with the unchanged, content-identical old residue (24 / 17 lines, as before).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.