Skip to content

Clarification: activeCpuUsageMs exceeds duration for a one-vCPU session #356

Open

Description

@Cumberj

Using @vercel/sandbox 3.5.0, a stopped nonpersistent session configured for one vCPU and 2048 MiB returned:

  • currentSession().activeCpuUsageMs: 3610
  • currentSession().duration: 3131

The installed SDK describes duration as wall-clock milliseconds and passes both values through without a unit conversion.

Can active CPU legitimately exceed wall-clock duration multiplied by allocated vCPUs? Do these fields use different measurement intervals (for example, startup or shutdown)? Which documented value or bound should prepaid accounting use? Can authoritative final usage be recovered after sandbox deletion?

This is an observed result, not a reproducible SDK defect claim. We have retained the charge as unknown rather than clamp either measurement or manufacture a settlement.

Activity

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