# hakavlad/nohang

A sophisticated low memory handler for Linux

Repository: https://github.com/hakavlad/nohang
Canonical: https://ross.abutalabs.com/products/nohang
Language: Python
License: MIT
License Family: permissive
Topics: out-of-memory, oom, psi, sigterm, zram, cgroups, oom-killer
Last push: 2026-08-05T14:01:48+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 30, longevity 100
- inputs: {"age_days": 3008, "days_push": 28, "days_rel": 256, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1306, forks 54 (observed 2026-08-28T04:04:18.771479+00:00)

## What it is
nohang is a highly configurable Python daemon for Linux that prevents out-of-memory conditions and keeps the system responsive under low memory pressure, using PSI and other signals to act before the kernel OOM killer. It also ships diagnostic tools like oom-sort, psi2log, and psi-top.

## Use cases
- prevent linux from freezing when out of memory
- avoid the kernel oom killer sending sigkill instead of sigterm
- keep the system responsive under heavy memory pressure
- monitor memory pressure with psi
- manage low memory conditions with zram and cgroups
- diagnose oom events and memory pressure logs

## When to choose
- you run Linux desktops or servers that freeze or livelock under memory pressure
- you want early, configurable OOM prevention with graceful SIGTERM termination
- you need PSI-based memory pressure monitoring and diagnostics

## When to avoid
- you are not on Linux
- you need memory management for macOS or Windows
- you prefer kernel-level solutions like earlyoom alternatives built into your init system

## Facets
- artifact type: service
- maturity: active
- function: monitoring, alerting, developer-tools
- domain: operating-systems, monitoring, performance
- platform: python, cli
- tags: oom-killer, psi, memory-management, daemon, zram, cgroups, system-responsiveness, linux

## Member repositories
- hakavlad/nohang (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.771479+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:50:57.856079+00:00, confidence not recorded.
  - readme: https://github.com/hakavlad/nohang (fetched 2026-08-28T04:04:18.771479+00:00, sha a85322d057ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
