Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • ocserv ocserv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 80
    • Issues 80
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 11
    • Merge requests 11
  • 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
  • OpenConnect VPN projectsOpenConnect VPN projects
  • ocservocserv
  • Issues
  • #283
Closed
Open
Issue created Apr 10, 2020 by Alan Jowett@Alan_JowettDeveloper

ocserv-main should set /proc/<pid>/oom_score_adj on the worker process to kill worker processes by preference

When a system running with ocserv is under heavy load, the Linux kernel can invoke the oom_reaper, which will select processes to be reaped to maintain system stability.

The kernel takes into account the processes /proc//oom_score and oom_score_adj when determining which process to kill.

Ocserv should set oom_score_adj to a high value on the worker processes so that they get reaped before the ocserv-main or ocserv-sm process.

If we don't the kernel kills ocserv-sm first:

2020-04-08T22:36:53.616058980Z ocserv[7]: main: main.c:927: Sec-mod 14 died with signal 9
2020-04-08T22:36:53.616062280Z ocserv[7]: main: main.c:931: ocserv-secmod died unexpectedly

Which causes all client connections to be dropped.

Assignee
Assign to
Time tracking