How does one programatically assign a process or threads to specific control groups (cgroups)?

Solution Unverified - Updated -

Issue

  • How does one programatically assign a process or threads to specific control groups (cgroups)?
  • An application spawns multiple threads that need to be resource limited using cgroups, how does one acheive this?

Environment

  • Use the libcgroups api to programatically assign the  threads to specific groups. See this link for the api :  http://libcg.sourceforge.net/html/index.html (externa)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.