Skip to content

proposal: runtime: mechanism for monitoring system memory #37452

@NatoBoram

Description

@NatoBoram

I want to run a program that orchestrates other programs that require a lot of memory in a constrained environment like a virtual machine or a IoT device, but can also run on a developer's machine with more sizable memory and a different OS. The problem is that I have no way to adjust the program's behaviour according to the available resources as not to bring my systems to their knees.

What did you do?

Use a lot of memory.

What did you expect to see?

Have a way to query the currently available RAM so I can adjust the program's behaviour accordingly.

What did you see instead?

runtime.MemStats to monitor the currently running program's memory usage.

Related

#21816

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions