Skip to content

perf(roadmap): measure the intake model call on an idle GPU #4499

Open

Description

@devops-cli-service

Split from #4404.

Problem The issue asks whether the local triage model is slow because other agents use the same GPU, or the call is slow by itself. The five measured runs put the triage call at 23.4 s median on a host with a load average of 67 to 85. The answer is open. ## Why it is deferred Only a person with access to the CLI host and an idle GPU can run the measurement. No file in the repository and no web page holds the answer. The rest of the issue needs none of it. ## Acceptance criteria - A person runs five intakes on the CLI host with no other agent on the GPU, and records the triage model call of each. - The issue holds the median of the five calls beside the 23.4 s baseline of the shared host. - The issue states whether another agent on the GPU makes the call slower, and by how much.

Proposed design

Problem statement

The five measured runs put the local triage model call at 23.4 s median on a shared host with a load average of 67 to 85. The cause is open: another agent on the GPU or the call itself. A person must run five intakes on the CLI host with an idle GPU and record the durations, median and comparison on issue #4499.

Acceptance criteria

Requirement: Pending a person after the merge

The owner SHALL run five intakes on the CLI host while no other agent uses the GPU, and record the five triage model call durations and the GPU reading on issue #4499.

Scenario: Five intakes with an idle GPU

  • WHEN The owner runs five intakes on the CLI host and nvidia-smi --query-compute-apps=pid,process_name,used_memory lists no process of another agent before each intake.
  • THEN The comment on issue perf(roadmap): measure the intake model call on an idle GPU #4499 lists five triage model call durations in seconds from devops_cli_ai_chat_duration_seconds, one for each intake, and the nvidia-smi reading that showed no other agent process.

Requirement: Median beside the shared-host baseline

The measurement comment SHALL state the median of the five idle-GPU durations beside the 23.4 s median of the shared host.

Scenario: Two medians in one table

  • WHEN The five idle-GPU durations are in the comment.
  • THEN One table shows the idle-GPU median and the 23.4 s shared-host median.

Requirement: Cause and difference stated

The measurement comment MUST state whether another agent on the GPU makes the call slower and give the difference in seconds.

Scenario: Answer with a difference

  • WHEN Both medians are in the comment.
  • THEN The comment gives a yes or no answer and the difference between the two medians in seconds.

Requirement: Host load before each intake

The measurement comment SHALL state the load average of the CLI host before each of the five intakes.

Scenario: Load average per intake

  • WHEN The owner records each of the five intakes.
  • THEN The comment gives the load average of the CLI host before that intake, and no run was discarded for its load.

Existing Tool Considered

No alternatives check has run. This perf item is a skip class for the alternatives check (CONTEXT.md). No open tool covers the full need. The maintained NVIDIA nvidia-smi tool covers the GPU reading. The existing devops_cli_ai_chat_duration_seconds histogram covers the call time. They lack a combined runner that ties each duration to its GPU reading. A person does that step. The item builds no code, so no build cost applies.

Key questions

  • Which existing tool shows whether another agent uses the GPU during the five intakes?: Use nvidia-smi on the CLI host. The command nvidia-smi --query-compute-apps=pid,process_name,used_memory lists the compute processes. The command nvidia-smi --query-gpu=utilization.gpu,memory.used --format=csv gives the utilization and the memory. The project already calls nvidia-smi to read GPUs. The DCGM exporter gives the same signals for cluster GPU nodes only, and the CLI host is not a cluster node. (best practice) [sources: src/devops_cli/ai/gateway_tune.py, k8s/monitoring/dcgm-exporter-values.yaml:75, k8s/monitoring/dcgm-exporter-values.yaml:85, src/devops_cli/ai/pool_load.py]
    • Chosen: nvidia-smi on the CLI host. It reports the utilization, the memory and the compute processes of the host GPU. It needs no code to build.
    • Rejected: DCGM exporter. It publishes the same signals for the cluster GPU nodes only. The CLI host is not a cluster node.
    • Rejected: A new benchmark command in the CLI. It adds code to build, keep and fix for one measurement.
  • Which metric gives the triage model call duration?: devops_cli_ai_chat_duration_seconds records the wall time of each chat call in seconds, by provider and model. The person reads the five values for the five intakes. [sources: src/devops_cli/telemetry/instruments.py, docs/TELEMETRY.md:117]
  • Which model does the intake use?: The intake task names local/qwen3.8:27b in the example ConfigMap. The gateway routes devops-triage to ollama_chat/qwen3.8:27b on the 64 GiB standard tier. The CLI example sets ai.provider: ollama. [sources: k8s/devops/configmap.example.yaml, k8s/llm/gateway/config.yaml, config.example.yaml]
  • Does another agent share the GPU with the triage call?: On the CLI host, any other agent that calls the configured local Ollama model shares the GPU. The repository cannot show which agents run on that host. The five intakes and their GPU readings settle that host. In the cluster, devops-triage runs on the 64 GiB standard tier. [sources: config.example.yaml, src/devops_cli/config/settings.py, k8s/llm/gateway/config.yaml, k8s/devops/configmap.example.yaml]

Fit

Fits in one pull request.

Suspected block

A person with access to the CLI host and an idle GPU must run five intakes while no other agent uses the GPU.

Dependencies

None.

Activity

  1. added
    source/agent
    type/infra
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/infra. The perf prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The result guides triage performance work, but the item blocks no other work and needs a rare idle GPU.
    • Value: Medium. The result shows if GPU contention slows triage, but it changes no behaviour for users.
    • Effort: Low. One person runs five intakes on an idle GPU and records the times.
    • Related: chore(ci): measure the local check on an idle host and rank the fixes #4427, which asks for a different change. Both items measure a slow step on an idle host, but 4427 measures the local CI check and ranks fixes, and this item measures the intake model call.
  3. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at c3f62a9 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who runs the five intakes on the idle CLI host? (a person decides)
  4. dan-petty commented on Nov 15, 2026

    @dan-petty
    Owner

    Returned: the item needs an idle GPU on the CLI host and five intake runs on it, then the median and the comparison on the issue. This workstation is not the CLI host, holds no GPU, and runs other work, so it cannot produce the measurement. A person must run it.

  5. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: Who runs the five intakes on the idle CLI host? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  7. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions