base: Index | Files

package oom

import ""

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


Package Files


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.