#1543·komodo

Load average is normalized by physical cores, causing false 100% critical status on EC2

Author: marcusxCreated Jul 23, 2026Updated Sep 28, 2026

Description

The server dashboard normalizes the Linux load average using the number of physical CPU cores. This produces a misleading 100% critical status on EC2 instances where AWS vCPUs are hardware threads.

For example, an AWS t3.large provides:

  • 2 vCPUs
  • 1 physical core
  • 2 threads per core

Komodo reports 1 Core and calculates a load average of 1.01 as:

1.01 / 1 physical core = 101%

The UI caps this at 100% and displays the load bar in red. At the same time, the CPU utilization graph can show approximately 50%, which makes the two dashboard indicators appear to contradict each other.

Environment

  • Komodo version: 2.2.0
  • Server: AWS EC2 t3.large
  • Available vCPUs: 2
  • Physical cores: 1
  • Threads per core: 2
  • Periphery deployment: Docker
  • Host kernel: 6.1.176-221.367.amzn2023.x86_64
  • OS reported by the Periphery container: Debian GNU/Linux 13

Steps to reproduce

  1. Run Periphery on an EC2 instance with multiple vCPUs backed by fewer physical cores, such as a t3.large.

  2. Open the server statistics page.

  3. Generate enough activity for the load average to reach approximately 1.0.

  4. Observe that the load-average bar shows 100% of 1 cores and is displayed as critical/red.

  5. Compare this with the CPU utilization graph, which may show approximately 50% utilization.

Expected behavior

The load average should be normalized using the number of logical CPUs available to the operating system, since these are the schedulable processors represented by AWS vCPUs.

For this instance, a load average of 1.0 should therefore be displayed as approximately 50% of the available logical CPU capacity, not 100%.

Alternatively, the dashboard could:

  • show physical cores and logical CPUs separately;
  • label the current value explicitly as physical cores; or
  • display the raw load average without presenting it as CPU utilization.

Actual behavior

The dashboard shows:

1.01 100% of 1 cores

The progress bar is capped at 100% and displayed in red, despite the instance having two schedulable vCPUs and the CPU utilization being approximately 50%.

Relevant implementation

Periphery obtains the core count using System::physical_core_count():

https://github.com/moghtech/komodo/blob/v2.2.0/bin/periphery/src/stats.rs

The UI calculates the percentage using:

load average / core count * 100

and treats values above 80% as critical:

https://github.com/moghtech/komodo/blob/v2.2.0/ui/src/resources/server/stats/current/load-average.tsx

Suggested change

Use the logical CPU count, such as the length of the CPU list reported by sysinfo, when normalizing load average.

The physical core count could remain available as separate system information. This would make the visualization consistent with EC2 vCPUs and other hyperthreaded or simultaneous multithreading (SMT) systems.