sys-process/nohang (bentoo)

Search

Install

Install this package:

emerge -a sys-process/nohang

Package Information

Description:
Userspace low memory handler. It watches PSI (Pressure Stall Information) -- the kernel's measure of how long tasks actually stall waiting on memory -- along with MemAvailable and swap, and terminates the heaviest offender before the machine starts thrashing. The kernel OOM killer only acts once an allocation has already failed, by which point the desktop has typically been unresponsive for minutes. It is the closest equivalent to systemd-oomd for hosts that do not run systemd: systemd-oomd is also PSI-driven, but ships as a systemd unit and kills whole cgroups, whereas nohang is init-agnostic and picks individual processes through a configurable badness score. Unlike sys-apps/earlyoom it reads PSI rather than free-memory percentages alone. Two configuration profiles are installed and they are mutually exclusive: nohang for headless and conservative setups, nohang-desktop for interactive machines, which additionally warns the logged-in user through desktop notifications before anything is killed.
Homepage:
https://github.com/hakavlad/nohang
License:
MIT

Versions

Version EAPI Keywords Slot
9999 8 ~amd64 ~arm64 ~x86 0
0.3.0 8 ~amd64 ~arm64 ~x86 0

Metadata

Description

Maintainers

Upstream

Raw Metadata XML
<pkgmetadata>
	<maintainer type="person">
		<email>lucascs@protonmail.com</email>
		<name>Lucas Couto</name>
	</maintainer>
	<longdescription lang="en">
		Userspace low memory handler. It watches PSI (Pressure Stall Information)
		-- the kernel's measure of how long tasks actually stall waiting on
		memory -- along with MemAvailable and swap, and terminates the heaviest
		offender before the machine starts thrashing. The kernel OOM killer only
		acts once an allocation has already failed, by which point the desktop
		has typically been unresponsive for minutes.

		It is the closest equivalent to systemd-oomd for hosts that do not run
		systemd: systemd-oomd is also PSI-driven, but ships as a systemd unit and
		kills whole cgroups, whereas nohang is init-agnostic and picks individual
		processes through a configurable badness score. Unlike sys-apps/earlyoom
		it reads PSI rather than free-memory percentages alone.

		Two configuration profiles are installed and they are mutually exclusive:
		nohang for headless and conservative setups, nohang-desktop for
		interactive machines, which additionally warns the logged-in user through
		desktop notifications before anything is killed.
	</longdescription>
	<use>
		<flag name="desktop">
			Pull in <pkg>x11-libs/libnotify</pkg> and <pkg>app-admin/sudo</pkg>, needed
			by the nohang-desktop profile to send GUI warnings to the logged-in user
		</flag>
	</use>
	<upstream>
		<maintainer status="active">
			<email></email>
			<name>Alexey Avramov</name>
		</maintainer>
		<bugs-to>https://github.com/hakavlad/nohang/issues</bugs-to>
		<remote-id type="github">hakavlad/nohang</remote-id>
	</upstream>
</pkgmetadata>

Lint Warnings

USE Flags

Manage flags for this package: euse -i <flag> -p sys-process/nohang | euse -E <flag> -p sys-process/nohang | euse -D <flag> -p sys-process/nohang

Flag Description 9999 0.3.0
desktop Pull in <pkg>x11-libs/libnotify</pkg> and <pkg>app-admin/sudo</pkg>, needed by the nohang-desktop profile to send GUI warnings to the logged-in user
systemd Pull in sys-apps/systemd for bentoo snapshot scheduling via systemd timers ⚠️

Manifest

Type File Size Versions
DIST nohang-0.3.0.tar.gz 60692 bytes 0.3.0
Unmatched Entries
Type File Size