Repository navigation
benchmark: sweep SESSIONS and sample the gateway's CPU and memory - #478
Merged
franciscojavierarceo merged 1 commit intoOct 26, 2026
Merged
Conversation
The response_provider README answers "How does concurrency affect capacity?" with "repeat a workload at increasing SESSIONS", and vllm-project#367 asks for CPU and memory next to latency. The runner script now does both: - SESSIONS may be a comma-separated list. Each level runs as its own batch, in order, under sessions-NNNNN/ with its own summary.md, and sessions_summary.md lists the levels with their exit status. A single level keeps today's layout. - GATEWAY_PID names a local Agentic API server (Linux). During each batch the script reads its CPU time (utime + stime) and resident memory from /proc once a second, and once more when the batch ends, into gateway-usage.csv; sessions_summary.md gives each level's gateway CPU seconds, mean cores in use and peak RSS. All levels run even if one fails; the script exits with the first failing level's status, as the depth batches do. Signed-off-by: Chuyue Wang <[email protected]>
StevenWang-CY
requested review from
bbrowning,
franciscojavierarceo,
haoshan98,
jiahuei,
leseb,
maralbahari,
noobHappylife,
qandrew and
tjtanaa
as code owners
October 23, 2026 04:54
Contributor
Author
|
@franciscojavierarceo whenever you get a chance, would you mind taking a look? This covers the concurrent-load part of #367: one run sweeps the session levels and records the gateway's own CPU and memory next to the latencies. Happy to rework it if you had a different shape in mind. |
franciscojavierarceo
approved these changes
Oct 26, 2026
franciscojavierarceo
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the benchmark sweep and gateway CPU/RSS sampling. The change stays in the measurement tooling, the documented scenarios cover the new paths, and the required checks pass.
haoshan98
added a commit
to EmbeddedLLM/agentic-api
that referenced
this pull request
Oct 27, 2026
Brings in vllm-project#480 (ARCHITECTURE.md request admission and rate limiting), vllm-project#481 (PostgreSQL conversation upsert), vllm-project#467 (prompt cache breakpoints on inlined text files), vllm-project#478 (benchmark session sweep) and vllm-project#487 (test alignment with typed Responses validation). Merged without conflicts. Signed-off-by: haoshan98 <[email protected]>
StevenWang-CY
added a commit
to StevenWang-CY/flatshare
that referenced
this pull request
Nov 2, 2026
29 records' READMEs take the newest records' form: a title with its date, an opening, findings with bold lead phrases, and How it ran and Files as tables; the sweep's table.py prints its empty cells as em dashes. Their present-tense statements are dated or corrected: vllm-project/agentic-api#478 merged on 2026-10-26, vLLM 0.33.0 came out and make-room was ported to it, vLLM #64165 is still open as of 2026-11-02, the 512-token step cap was the box's at the time. Every measured number, range, count and finding is as it was: each changed README's numbers were compared against the previous commit's. Signed-off-by: Chuyue Wang <[email protected]>
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.
Part of #367: its concurrent-load item, and CPU and memory beside latency.
What
scripts/run-response-provider-benchmark.sh:SESSIONS.SESSIONSmay be a comma-separated list, such as1,5,10,25,50. Each level runs as its own batch, in order, undersessions-NNNNN/with its ownsummary.md, andsessions_summary.mdlists the levels. A single level keeps today's layout and output.GATEWAY_PIDset to a local Agentic API server's process ID (Linux), the script reads that process's CPU time (utime + stime) and resident memory from/proconce a second during each batch, and once more when the batch ends. The samples go to the batch'sgateway-usage.csv.sessions_summary.mdgives each level's gateway CPU seconds, mean cores in use and peak RSS.The README's "How does concurrency affect capacity?" row and its execution-model section describe both.
Why
The README answers "How does concurrency affect capacity?" with "repeat a workload at increasing
SESSIONS". #367 asks to measure "TTFT, end-to-end and tail latency, CPU, memory, queue occupancy" under concurrent load. Running the levels from one invocation keeps them comparable (same seed, same server process, one results tree). Sampling the server shows the gateway's own cost as load grows, which client-side latency does not.Example
On one host, with each process on its own physical cores:
WORKLOAD=transport PROVIDER=all SESSIONS=1,5,10,25,50 REQUESTS_PER_SESSION=5 TRANSPORT_ROUNDS=4 \ MODEL=Qwen/Qwen3-4B-Instruct-2507-FP8 GATEWAY_PID="$(pgrep -nx agentic-server)" \ ./scripts/run-response-provider-benchmark.shsessions_summary.md:Read together with each level's
summary.md:run.json. The script itself does not divide, since what counts as a request depends on the workload.Testing
cargothat writes asummary.mdand takes 3 s:GATEWAY_PIDkept today's layout andcommand.sh.