Skip to content

Professional README; fix the systemd model folder and a slow client eviction - #2

Merged
FMXExpress merged 2 commits into
mainfrom
readme
Oct 31, 2026
Merged

FMXExpress merged 2 commits into
mainfrom
readme

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

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:

  • Overview: what jevban is and why it exists, an excerpt of real output, and the triage pipeline as a diagram.
  • Getting started: a quick start for Linux (release folder in /opt/jevban, config, --test, --dry-run, systemd) and for Windows (Apache Lounge, netsh, an elevated prompt).
  • Deciders: local models with size, RAM and model-card accuracy; the hosted provider presets with prices; your own server.
  • Reference:
    • what jevban catches, by category and weight;
    • rolling it out safely with --test, --shadow and --eval, with the labelled-set results;
    • the main settings and the command line;
    • firewall actions;
    • requirements with measured speed and memory;
    • security notes, building from source, the project layout, licences and credits.

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/models for root) was chosen by $USER, and systemd doesn't set $USER for 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.service ran /usr/local/bin/jevban, but the binary finds the llama.cpp libraries and badpaths.txt next 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.

    50,000-line flood, every line a new address Before After
    Time 32 s 6 s
    Lines per second ~1,100 ~7,600

    Typical traffic is unchanged at about 16,000 lines per second on one core.

Testing

  • make test: 118 checks pass.
  • Speed measured with --test --mode rules on generated logs: 200,000 typical lines, and 50,000 and 200,000 lines where every line is a new address.
  • Peak memory in rules mode is 27 MB on 200,000 lines.

Generated by Claude Code

- 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
@FMXExpress
FMXExpress merged commit 680d559 into main Oct 31, 2026
2 checks passed
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.

2 participants