Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • infrastructure infrastructure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 106
    • Issues 106
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • infrastructureinfrastructure
  • Merge requests
  • !491

Install OOM configuration

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kristian Klausen requested to merge klausenbusk/infrastructure:oomd-config into master Sep 27, 2021
  • Overview 2
  • Commits 2
  • Pipelines 2
  • Changes 5
  • roles/common: Install generic OOM configuration
    • Allow killing of any cgroup if swap is about to run out. When swap is at least 90% full, oomd will kill a cgroup, tending to kill the cgroup with the highest swap usage.
    • Allow killing cgroups of logged in users under severe memory pressure. When a cgroup is stalled waiting for memory at least 60% of the time, for at least 30 seconds, oomd will attempt to kill it or one of its descendant cgroups.
  • roles/loki: Install custom OOM configuration
    • When loki hits 5.5G RSS, aggressively reclaim its memory. This puts it under memory pressure.
    • When loki hits 6G RSS, invoke the kernel OOM killer.
    • When loki is under severe memory pressure, have systemd-oomd kill it.

Supersedes !394 (closed) (just rebased and notify: systemd daemon-reload added), all credit to @heftig.

Edited Sep 27, 2021 by Kristian Klausen
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: oomd-config