Skip to content

Environment.ProcessorCount does not take into account cgroup/Docker limits #24112

@tmds

Description

@tmds

This leads to managed code over-dimensioning when running in Docker.

coreclr takes into account docker cpu limits: https://github.com/dotnet/coreclr/blob/dbfd10c94055fb5af823b4a7e30774641afcb3b2/src/classlibnative/bcltype/system.cpp#L349-L350

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions