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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content