Skip to content

fix(k8s): dcgm-exporter's memory request and limit fit its measured footprint #1650

Closed

Description

@dan-petty

Friction

dcgm-exporter runs on the chart's default resources, and its fixed footprint already uses 82-84% of the 512Mi memory limit by RSS and 3.3 times its 128Mi request. Anything that grows it (more GPUs per node, more DCP fields, a DCGM or exporter upgrade) gets it OOM-killed, and a crash-looping exporter silently removes that node's DCGM series, the GPU dashboard and the GpuTemperatureHigh and GpuPowerOverSiteBudget alerts; with no Alertmanager receiver (#1392) nobody would be told. The low request also hides about 0.9 GiB from the scheduler across the GPU nodes.

Evidence

Live, read-only, 2026-10-18:

  • DaemonSet monitoring/dcgm-exporter (chart dcgm-exporter-4.8.4, image 4.6.1-4.8.4-distroless, container exporter, QoS Burstable): requests cpu 100m / memory 128Mi, limits cpu 200m / memory 512Mi.
  • RSS (container_memory_rss): 419.2, 427.6 and 425.4 MiB (82-84% of the limit), flat within ±2 MiB for 15 days; working set 437.9-478.2 MiB including reclaimable page cache. CPU 13-17m.
  • container_oom_events_total rose by 0 over 15 days; the last restarts (exit 255, 2026-10-03 and 2026-10-05) were node reboots. A pod on a node since removed used about 54 MiB RSS, so the footprint follows the node's GPUs and fields.

Repo:

  • k8s/monitoring/dcgm-exporter-values.yaml (45 lines) has no resources block; chart 4.8.4 values.yaml:161-167 gives the defaults above. Both deploy paths read it: src/devops_cli/commands/k8s/stack_lifecycle.py:118-124 and k8s/argocd/apps/dcgm-exporter.yaml:16.
  • No rule in k8s/monitoring/prometheus-values.yaml watches container memory against its limit; container_memory_working_set_bytes is in the k8s-monitoring allow list (k8s/monitoring/k8s-monitoring-values.yaml:37).

Remedy

  1. Test first: pin dcgm-exporter's resources in the values test as one structural tuple.
  2. k8s/monitoring/dcgm-exporter-values.yaml: resources: {requests: {cpu: 50m, memory: 512Mi}, limits: {cpu: 200m, memory: 768Mi}}, with a comment recording the measurement ("RSS about 420-430 MiB with 2 GPUs per node, 2026-10").
  3. Optional, same PR: a ContainerMemoryNearLimit warning (container_memory_working_set_bytes over kube_pod_container_resource_limits{resource="memory"} above 0.9 for 15m; check container_memory_rss is in the allow list before using it), pinned in tests/test_k8s_monitoring_alerting.py and listed in the README Alerting table.

Priority: P3. Severity low: latent, no OOM kill yet.

Proposed design

Problem statement

The dcgm-exporter's current resource limits (512Mi memory limit and 128Mi memory request) are insufficient for its actual memory usage, causing it to be OOM-killed when the number of GPUs or DCP fields increases. This leads to silent removal of GPU metrics and alerts, and hides about 0.9 GiB from the scheduler across GPU nodes.

Acceptance criteria

  • Criterion 1: The dcgm-exporter's resources are updated to match its measured footprint with a 512Mi memory request and 768Mi memory limit.
    Verification: Verify that k8s/monitoring/dcgm-exporter-values.yaml contains resources block with requests.cpu: 50m, requests.memory: 512Mi, limits.cpu: 200m, limits.memory: 768Mi.
  • Criterion 2: The dcgm-exporter's memory request and limit are sufficient to prevent OOM kills under normal conditions.
    Verification: Confirm that the measured RSS usage (420-430 MiB) is within the new limits, and test with increased GPU count or DCP fields.
  • Criterion 3: The change includes a comment documenting the measurement for future reference.
    Verification: Check that k8s/monitoring/dcgm-exporter-values.yaml contains a comment recording the measurement: "RSS about 420-430 MiB with 2 GPUs per node, 2026-10".

Key questions

None.

Open questions

  • What are the current resource settings for dcgm-exporter? (missing verified source)
  • What is the measured RSS usage of dcgm-exporter? (missing verified source)
  • What is the current working set of dcgm-exporter? (missing verified source)
  • How does the current resource allocation affect the scheduler? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    on Oct 18, 2026
  2. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/bug. The candidate addresses a resource limitation issue that causes OOM-kills and silent failures.
    • Priority: P2-Medium. The issue is latent but has potential to cause service disruptions and data loss if not addressed.
    • Value: High. Fixing the memory limits ensures stable operation of GPU monitoring and prevents loss of critical metrics.
    • Effort: Medium. Requires updating resource definitions and potentially adding alerting rules, but the core fix is straightforward.
  3. added a commit that references this issue on Oct 25, 2026
    4776f63
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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions