Skip to content

Release v0.2.15 - #1295

Merged
merrymercy merged 2 commits into
mainfrom
release
Sep 2, 2024
Merged

merrymercy merged 2 commits into
mainfrom
release

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy
merrymercy merged commit 9999442 into main Sep 2, 2024
@merrymercy
merrymercy deleted the release branch September 2, 2024 05:22
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant