Back to godoc.org

Package oom

v0.0.9
Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module: github.com/grailbio/base

Overview

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

Index

Package Files

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier