Skip to content

Instantly share code, notes, and snippets.

@toff63
Last active May 8, 2016 19:00
Show Gist options
  • Save toff63/b70c501af164ef7cbeb2c7b702ccf0f8 to your computer and use it in GitHub Desktop.
Save toff63/b70c501af164ef7cbeb2c7b702ccf0f8 to your computer and use it in GitHub Desktop.

Create a group:

In /etc/cgconfig.conf add the following lines:

group telemetry {
  memory {
    memory.limit_in_bytes = 100m;
  }
}

Determine which process run in which group

In /etc/cgrules.conf add the following lines:

# user      subsystems control_group
  telemetry memory     telemetry/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment