Skip to content

New feat: Committed Memory Reporting #65

@AndrewJackson2020

Description

@AndrewJackson2020

It would be very nice if system stats reported memory allocation/commit information (systemwide and per process). Currently, it seems like all memory reporting is around used memory and not committed memory. Quick explanation of why this reporting would be nice, for postgres in particular, below.

Per the postgres documentation [0], on linux it is recommended to set vm.overcommit_ratio to 2. This disables memory overcommit and makes it so that when postgres attempts to alloc any memory over a certain threshold, the client is returned with an error code instead of risking the OOM killer being invoked when that memory gets used.

[0] https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT

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