base: github.com/grailbio/base/stress/oom Index | Files

package oom

import "github.com/grailbio/base/stress/oom"

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

Index

Package Files

oom.go

func Do Uses

func Do(size int)

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

func Try Uses

func Try()

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

Package oom imports 6 packages (graph) and is imported by 1 packages. Updated 2019-10-07. Refresh now. Tools for package owners.