Repository navigation
Professional README; fix the systemd model folder and a slow client eviction - #2
Merged
Merged
Conversation
- The default model folder (/var/lib/jevban/models for root) was chosen by $USER, which systemd does not set for a root service: under systemd jevban would have downloaded the model again into another folder. It is now chosen by the process's uid. - With the client table full (a flood of new addresses), every new client scanned the whole table to drop the oldest one. The oldest tenth is now dropped in one pass: a 50,000-line flood of new addresses went from 32 s to 6 s (1,100 to ~7,600 lines/s); typical traffic is unchanged at ~16,000/s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJFY41846T15QqxmGW2
The README now explains what jevban is and does for someone arriving at the repository: why, how the triage works, a quick start for Linux and Windows, the deciders and providers, what it catches, how to roll it out safely (--test, --shadow, --eval), the main settings, the command line, firewall actions, requirements with measured speed and memory, security notes, building, layout, and licences. jevban.service pointed at /usr/local/bin/jevban, but the binary looks for the llama.cpp libraries and badpaths.txt next to itself; it now runs /opt/jevban/jevban, where the quick start puts the release folder. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJFY41846T15QqxmGW2
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.
Summary
A README written for someone arriving at the repository, plus three problems found while checking it against the code.
README
The README is rewritten from design notes into a project page:
/opt/jevban, config,--test,--dry-run, systemd) and for Windows (Apache Lounge,netsh, an elevated prompt).--test,--shadowand--eval, with the labelled-set results;Every number in it was measured or comes from a cited source.
Fixes found while checking the README
systemd would download the model a second time. The default model folder (
/var/lib/jevban/modelsfor root) was chosen by$USER, and systemd doesn't set$USERfor a root service, so jevban would have downloaded 5.6 GB again into a different folder. It now checks the process's uid instead.The service pointed at the wrong binary path.
jevban.serviceran/usr/local/bin/jevban, but the binary finds the llama.cpp libraries andbadpaths.txtnext to itself. It now runs/opt/jevban/jevban, where the quick start puts the release folder.Slow under a flood of new addresses. With the client table full, every new client scanned the whole table to drop the oldest one. The oldest tenth is now dropped in one pass.
Typical traffic is unchanged at about 16,000 lines per second on one core.
Testing
make test: 118 checks pass.--test --mode ruleson generated logs: 200,000 typical lines, and 50,000 and 200,000 lines where every line is a new address.Generated by Claude Code