oom

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package oom contains a single function to trigger Linux kernel OOMs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(size int)

Do attempts to OOM the process by allocating up to the provided number of bytes. Do never returns.

func Try

func Try()

Try attempts to OOM based on the available physical memory and default overcommit heuristics. Try never returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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