agentleFS
flisk-shflisk-sh/flisk-skills/skills/flisk-benchmark/SKILL.md

flisk-benchmark

Skill4 starsChanged 33 days agoMITView on GitHub

Measure how many Flisk services fit on a machine - idle memory per service from the Docker VM (not `docker stats`), parallel start-up time, real image disk use, and health - with the benchmark scripts in a flisk checkout. Use when validating the 100-services-on-16-GB goal, checking a published performance number, or answering "how many services can my laptop run". To change the Docker layers and keep only improvements, use layer-autoresearch; to fix a slow or failing stack, use flisk-starlark-perf or flisk-troubleshoot.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the scripts in flisk: bun scripts/benchmark/container-scale.ts --synthetic --tiers 5,20,100 for synthetic containers, or its default …

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Benchmark Flisk scale and footprint

Measure instead of guessing. The goal is 100 services on a 16 GB machine.

Workflow

  1. Warn the user before starting dozens of containers, and give an estimate.
  2. Use the scripts in flisk: bun scripts/benchmark/container-scale.ts --synthetic --tiers 5,20,100 for synthetic containers, or its default (Compose) mode for real generated services.
  3. Memory: read the Docker VM's own memory, not docker stats, which leaves out per-container overhead:
    docker run --rm alpine awk '/MemTotal/{t=$2}/MemAvailable/{a=$2}END{printf "%d MiB used\n",(t-a)/1024}' /proc/meminfo
    Take it before and after starting the containers; divide the difference by the count. Small counts are noisy, so repeat and report the range.
  4. Time: start containers in parallel, as Tilt does; a serial loop measures the launcher.
  5. Disk: docker system df is real use. docker images counts shared layers once per image. docker history <image> shows what fills one.
  6. Budget: (Docker VM MemTotal − about 512 MiB for infrastructure) ÷ 100 = the per-service budget.
  7. Record mem_per_service_mib, start time, image sizes and how many were healthy.

Guardrails

  • Report what was measured, what was estimated and what was not run.
  • Idle numbers are not numbers under load; say which you have.
  • Re-measure on current code before repeating a number from the website or the docs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.