Skip to content

runtime: MADV_COLLAPSE causes production performance issues on Linux #63334

Closed
@mknyszek

Description

@mknyszek

A Google production service experienced a performance regression with the Go runtime's use of MADV_COLLAPSE. We've narrowed down the issue to exactly that call. We suspect the issue is that MADV_COLLAPSE can go into direct reclaim while we're holding the heap lock. We suspect this issue is more widely applicable.

For now, let's roll back uses of MADV_COLLAPSE. We can revisit this in the future, but our current policy is almost certainly too aggressive given the costs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions