Back to

Package oom

Latest Go to latest

The latest major version is .

Published: Jun 24, 2020 | License: Apache-2.0 | Module:


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


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