Repository navigation
perf(server): give an idle model's memory back after 10 minutes instead of an hour - #402
Merged
Merged
Conversation
…ad of an hour An idle job Worker kept its model loaded for an hour after its last job. That spans a run of jobs as well as 10 minutes does, and holds 2.5 GB or more of Qwen for the rest of the hour on a box that does other work. - `server.model_idle_minutes` now defaults to 10 (was 60); the name, the range and 0 are unchanged, so existing config files keep validating. - docs/server.md says the model stays loaded for 10 minutes after its last job. - Test: closing the service while the idle timer is pending stops llama-server and the timer never fires, with a positive control that the same pending timer fires while the service is open. Red with the clearTimeout in JobService.close removed.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
GeiserX
added a commit
that referenced
this pull request
Oct 14, 2026
… line comes in about a second (#410) I want to see my Mac's old recordings and transcripts from my iPhone, the way the desktop app shows them, with what each key may see set by its permissions. 1.1.0 could not do that: a key reached only its own file jobs and the desktop app listened on 127.0.0.1 alone. 1.2.0 is the release that carries #409, so the phone app can read the Mac over the tailnet with a `read` key, and the six post-1.1.0 merges that were already owed a release. ## What 1.2.0 carries - #409: the `read` key scope, the opt-in network listener (`network.enabled`, `network.bind`, `network.port`, tailnet by default with a 30 s look until Tailscale is up), and `a0`/`a1` audio offsets on transcript lines. - #406: a default call's first line in 1.3 s instead of 6 to 8 s, `asr.warmAtStart` off by default. - #405: no invented subtitles on silence and noise, on every preset (T4.37). - #404: the dictation key says why it does nothing without Accessibility (T4.36). - #403: `akou events --mention`, `agent.summary_every_minutes`, `akou config get`. - #402: an idle model's memory back after 10 minutes. - #401: one recognizer cache and one audio cache shared by the three OSes. ## The release itself - `bun scripts/stamp-version.ts --set 1.2.0`: every version declaration says 1.2.0 (package.json, app-info.ts, both skills, the plugin, the OpenAPI file, the compose example, both Cargo.toml and Cargo.lock). The docs' image tags and the Mac server clone tag say 1.2.0. - The CHANGELOG's Unreleased section becomes the 1.2.0 section, with the six other merges written in. - docs/providers.md: the vendor terms were read again on 2026-10-13, as CI-28 requires after the 1.1.0 tag of 2026-10-12. Nothing changed in the terms. One thing the earlier readings had missed is recorded: OpenAI documents "ChatGPT plan usage for open-source and locally hosted apps" through Sign in with ChatGPT, where the app holds its own OAuth token. It says nothing about akou's route, `codex exec` on Codex's saved login, so the open question stays open with that alternative beside it. No default changes. ## Checks - `bun scripts/stamp-version.ts --check`: 11 places say 1.2.0. `bun scripts/openapi.ts --check` is clean. - `bun test tests/release-evidence.test.ts`: 10 pass. The terms check was shown red with the new row redated to 2026-10-12 and green with 2026-10-13. - The 8-hour soak of the release checklist ran on the reference Mac (MacMini-2) from 23:40Z to 07:40Z on 2026-10-13/14 at real time, with a burner on every core and the release's own `akou-capture` 1.2.0 in file mode: 0 holes, heap growth 0.17 MB, RSS growth -2.3 MB, event loop late by at most 227 ms, 0 unreadable log lines, 9 of 9 checks ok. The JSON is committed as docs/gates/soak-1.2.0.json. Trap found on the way: on that box `CARGO_TARGET_DIR` sends the helper to /Volumes/Data/cargo-targets, so the checklist's `native/akou-capture/target/release/akou-capture` path was a stale 1.0.0 binary; the first start was killed after two minutes and the soak restarted with the binary cargo reports. - After the merge: tag `v1.2.0` on the merge commit, then release.yml builds the signed app, the images and the update feed.
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.
A server kept an idle model loaded for an hour after its last job. A run of jobs reuses one load just as well with 10 minutes, and an hour holds 2.5 GB or more of Qwen on a box that does other work. The owner chose 10 minutes as the default.
The idle unload itself already exists (#270): an idle Worker keeps its model for
server.model_idle_minutes, a queued job on that model keeps it, a timer closes it afterwards, andJobService.closeclears the timer. This change only moves the default and covers the close path.server.model_idle_minutesdefaults to 10 (was 60). The name, the range (0 to a week) and 0 are unchanged, so existing config files keep validating.docs/configuration.mdis regenerated.Tests:
tests/warm-model.e2e.test.ts: the existing idle test now checks the model is still loaded at 9 minutes and gone at 11, with the "unloaded after 10 min" line.clearTimeoutinJobService.closeremoved.tests/models-on-demand.e2e.test.ts: the SV-M4 check moves from 61 to 11 minutes.