Skip to content

allow disabling dirty page purging via an API, and consider disabling it by default #18236

Closed
@thestinger

Description

@thestinger

Ratio-based dirty page purging reduces memory usage, but results in a significant performance hit. It is already possible to disable it by exporting an environment variable, but it should be possible to toggle it or alter the ratio at runtime. It may make sense to have it disabled by default because it's not desirable in short-lived applications or those with consistent memory allocation patterns.

It's primarily desirable in large, long-lived applications with varying memory usage patterns where opting into a feature is not a big deal. The defaults should likely be optimized for programming in the small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-allocatorsArea: Custom and system allocatorsE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions