Skip to content

proposal: runtime: support a percentage for GOMEMLIMIT #78912

Description

@dsnet

Proposal Details

We had a service that had GOMEMLIMIT set. Over the years, due to natural growth of users, we increased the size of the machine that the service ran on. However, it was easy to forget to increase the GOMEMLIMIT since this was populated in a different place than where infrastructure is defined. Thus, we ran into an issue where the service was massively underutilizing its newly available memory.

Instead of specifying an absolute value like 32GiB, allow users to specify a percentage like 80% to indicate that it can use up to 80% of the total system memory (or the cgroup memory limit, see #75164).

\cc @knyar @scottjab

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolPerformanceProposalcompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions