Refreshes: the journal taken per check of a copy known to copy nothing (VICTORY_JOURNAL_SHORT=1) #372

Closed
github-bot wants to merge 0 commits from github-bot/gh-372 into main AGit
Owner

@⁠yagizakkaya01 on GitHub · 2026-12-01 19:36 UTC · original
yagizakkaya01:pr/journal → main · +26 −8 · 2 files · 72 commits · closed without merging

Requested by yağız akkaya · project thread

For #361.

The checks of copies known to copy nothing held the write watch journal's read lock for a whole batch: 32 checks on a helper, up to 256 on the submitting thread. std's RwLock lets no new reader in while a writer waits, so whenever a landing or a refresh that asked the kernel wanted to note pages, every other reader queued behind it. In a diagnostics timeline the refresh helpers and the submitting thread stood 2.5–4.8 ms at once on JOURNAL. With VICTORY_JOURNAL_SHORT=1 each check takes the lock on its own. Off by default.

Machine 1 (as in PR 1; switches otherwise the launcher's, WIDE_THREADS=8). Measured together with PRIORITY_TIERS=2,1,0 (PR 4), not alone:

  • preparing per frame: 66 → 54 ms
  • refreshes: 22.2 → 17.2 ms, asking the write watch: 10.6 → 7.8 ms

Machine 2 (as in PR 1, all four changes together): refreshes 10.7 → 6.9 ms, asking the write watch 7.0 → 5.7 ms.

A run with this switch alone is still to come.

🤖 Generated with Claude Code

**@⁠yagizakkaya01** on GitHub · 2026-12-01 19:36 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/372) `yagizakkaya01:pr/journal` → `main` · +26 −8 · 2 files · 72 commits · closed without merging <!-- claude-projects-attribution: {"github_login":"yagizakkaya01"} --> _Requested by **yağız akkaya** · [project thread](https://claude.ai/code/project/chan_01NXDwzZjZwLk73ttN9aPba7?thread=cmsg_01NXDwzZjZwLk73ttN9aPba7JV4k53Ls6GvVA5PUvye88n)_ For #361. The checks of copies known to copy nothing held the write watch journal's read lock for a whole batch: 32 checks on a helper, up to 256 on the submitting thread. std's RwLock lets no new reader in while a writer waits, so whenever a landing or a refresh that asked the kernel wanted to note pages, every other reader queued behind it. In a diagnostics timeline the refresh helpers and the submitting thread stood 2.5–4.8 ms at once on `JOURNAL`. With `VICTORY_JOURNAL_SHORT=1` each check takes the lock on its own. Off by default. **Machine 1** (as in PR 1; switches otherwise the launcher's, `WIDE_THREADS=8`). Measured together with `PRIORITY_TIERS=2,1,0` (PR 4), not alone: - `preparing per frame`: 66 → 54 ms - refreshes: 22.2 → 17.2 ms, asking the write watch: 10.6 → 7.8 ms **Machine 2** (as in PR 1, all four changes together): refreshes 10.7 → 6.9 ms, asking the write watch 7.0 → 5.7 ms. A run with this switch alone is still to come. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 19:37:40 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 21:09 UTC · original

Thank you. Taken behind its switch (VICTORY_JOURNAL_SHORT, off by default) and being measured. We'll report the results here.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 21:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/372#issuecomment-7325824818) Thank you. Taken behind its switch (`VICTORY_JOURNAL_SHORT`, off by default) and being measured. We'll report the results here.
github-bot closed this pull request 2026-12-02 07:54:33 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.