hostmm

package
v0.0.0-...-522126a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package hostmm provides tools for interacting with the host Linux kernel's virtual memory management subsystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyCurrentMemcgPressureCallback

func NotifyCurrentMemcgPressureCallback(f func(), level string) (func(), error)

NotifyCurrentMemcgPressureCallback requests that f is called whenever the calling process' memory cgroup indicates memory pressure of the given level, as specified by Linux's Documentation/cgroup-v1/memory.txt.

If NotifyCurrentMemcgPressureCallback succeeds, it returns a function that terminates the requested memory pressure notifications. This function may be called at most once.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL