Skip to content

CPU spikes for compute #18

Closed
Closed

Description

@aluzzardi

The way things are computed is quite expensive, for some reason. No idea what the root cause is.

As a reference, a simple from alpine; echo hello world used to take about 700ms and 30% CPU on the old runtime, whereas it's roughly 3-4 seconds and 176% CPU on dagger.

# BLR
bl-runtime apply -s main  0.10s user 0.04s system 23% cpu 0.634 total

# Dagger
DOCKER_OUTPUT=1 DEBUG=1 dagger compute .  6.57s user 0.36s system 176% cpu 3.918 total

The CPU spike seems to indicate there's heavy Cue computation involved, which might cause the slowdown. Possible reason for this is how Dagger matches specifications (e.g. #Exec), by using Fill() + Validate().

Activity

  1. aluzzardi commented on Mar 1, 2021

    @aluzzardi
    ContributorAuthor

    Duplicate of #102

  2. added a commit that references this issue on Jun 1, 2023
  3. added a commit that references this issue on Aug 24, 2023
  4. added a commit that references this issue on Aug 8, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions