Linux OOM Killer & Cgroup Memory Budgeter

    by AllAccessData

    1

    Turns host memory telemetry into a cgroup plan: memory.high backpressure before memory.max kills, deliberate oom_score_adj priorities, and pressure-based early warning.

    $5

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned

    Works with the AI Agents you already use

    About this skill

    Linux Kernel OOM Killer & Cgroup Memory Budgeter When the kernel OOM killer fires, it does not negotiate. It picks a victim by heuristic and that process is gone - usually the one with the largest footprint, which is usually your database.

    Built for engineers running services on Linux hosts where memory contention is real. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.

    What's included:

    • Memory telemetry analysis: host and cgroup memory behaviour from Prometheus, with saturation and reclaim activity read together rather than as a single number.
    • memory.high before memory.max: the central recommendation. memory.high applies throttling and reclaim pressure as a cgroup approaches its budget, giving you a slow service and an alert; memory.max is a hard wall with a kill behind it. Setting both, with headroom between them, converts a sudden death into a warning.
    • Priority policy: oom_score_adj values assigned deliberately across services.
    • Early warning monitors: headroom alerts wired before the cliff.
    • Deliverable: a cgroup resource safety plan with the exact values and the reasoning, delivered to Telegram.

    Be clear-eyed about what oom_score_adj does: it redirects the kill, it does not prevent it. Protecting your database means the kernel chooses something else - and if everything is protected, nothing is, because the kernel will still pick. Decide explicitly which process you are willing to lose. And avoid -1000, which makes a process effectively unkillable: under real exhaustion that can wedge the entire machine rather than losing one service, which is a worse outcome than the one you were avoiding.

    Check your cgroup version first. memory.high exists only in cgroup v2; on a v1 hierarchy the entire plan needs rewriting around soft limits and it will not behave the same way. Confirm which the host actually uses before applying anything.

    Use pressure stall information rather than free memory as your early signal. Free memory looks alarming on a healthy machine with a large page cache and looks fine moments before a kill; PSI measures the time tasks actually spend stalled on memory, which is the thing you care about.

    Finally, worth saying plainly: if the OOM killer is firing regularly, cgroup tuning is buying time rather than fixing anything. The real cause is a leak, an undersized host, or a workload that outgrew its box, and the budget plan should come with a view on which.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    Turns host memory telemetry into a cgroup plan: memory.high backpressure before memory.max kills, deliberate oom_score_adj priorities, and pressure-based early warning.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Linux OOM Killer & Cgroup Memory Budgeter on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Productivity

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.