oomguard

package
v0.16.521 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oomguard keeps the OOM killer's protection of the runtime from passing to the work it starts.

A unit may protect the runtime with a negative oom_score_adj, so that a machine running out of memory takes an agent rather than the runtime every page of its person goes through. Children inherit the value: without this package every terminal and agent the runtime starts would be protected as well, and the kernel would have nothing to take but the runtime again.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unprotected

func Unprotected(program string, args ...string) (string, []string)

Unprotected returns the program and arguments that run program with the kernel's default adjustment when this process is protected, and program itself otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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