From Fedora Project Wiki
(Correct the kernel configuration options)
Line 70: Line 70:


== Benefit to Fedora ==
== Benefit to Fedora ==
<!-- What is the benefit to the platform?  If this is a major capability update, what has changed?  If this is a new feature, what capabilities does it bring? Why will Fedora become a better distribution or project because of this feature?-->
To enable the cgroup sub-features will help fedora to be exposed to various resource partitioning scheme, and allow the fedora users to experience a new feature set that helps them partition their resource anyway they want.


== Scope ==
== Scope ==

Revision as of 18:17, 29 January 2009

Important.png
Comments and Explanations
The page source contains comments providing guidance to fill out each section. They are invisible when viewing this page. To read it, choose the "edit" link.
Copy the source to a new page before making changes! DO NOT EDIT THIS TEMPLATE FOR YOUR FEATURE.


Feature Name

Resource Management

Summary

Resource Management is an upstream feature that allows system resources to be partitioned/divided up amongst different processes, or a group of processes.

Owner

  • Name: lwang
  • email: lwang@redhat.com

Current status

  • Targeted release: Fedora 40
  • Last updated: (DATE)
  • Percentage of completion: XX%


Detailed Description

Resource Management/Control Groups

Control Groups provide a mechanism for aggregating/partitioning sets of tasks, and all their future children, into hierarchical groups with specialized behaviour.

Definitions:

A *cgroup* associates a set of tasks with a set of parameters for one or more subsystems.

A *subsystem* is a module that makes use of the task grouping facilities provided by cgroups to treat groups of tasks in particular ways. A subsystem is typically a "resource controller" that schedules a resource or applies per-cgroup limits, but it may be anything that wants to act on a group of processes, e.g. a virtualization subsystem.

A *hierarchy* is a set of cgroups arranged in a tree, such that every task in the system is in exactly one of the cgroups in the hierarchy, and a set of subsystems; each subsystem has system-specific state attached to each cgroup in the hierarchy. Each hierarchy has an instance of the cgroup virtual filesystem associated with it.

At any one time there may be multiple active hierachies of task cgroups. Each hierarchy is a partition of all tasks in the system.

User level code may create and destroy cgroups by name in an instance of the cgroup virtual file system, specify and query to which cgroup a task is assigned, and list the task pids assigned to a cgroup. Those creations and assignments only affect the hierarchy associated with that instance of the cgroup file system.

On their own, the only use for cgroups is for simple job tracking. The intention is that other subsystems hook into the generic cgroup support to provide new attributes for cgroups, such as accounting/limiting the resources which processes in a cgroup can access. For example, cpusets (see Documentation/cpusets.txt) allows you to associate a set of CPUs and a set of memory nodes with the tasks in each cgroup.

Benefit to Fedora

To enable the cgroup sub-features will help fedora to be exposed to various resource partitioning scheme, and allow the fedora users to experience a new feature set that helps them partition their resource anyway they want.

Scope

There are several sub-features under control group:

  • CGROUPS (grouping mechanism)
 CGROUPS=y
  • CPUSET (cpuset controller)
 CPUSET=y
  • CPUACCT (cpu account controller)
 CGROUP_CPUACCT=y
  • SCHED (schedule controller)
 CGROUP_SCHED=y
  • MEMCTL (memory controller)
 CGROUP_MEM_CONT=y
  • DEVICE
 CGROUP_DEVICE=y
  • NETCTL (network controller)
 NET_CLS_CGROUP=y
  • IOCTL (I/O controller)
 ?? still under development

How To Test

User Experience

Dependencies

Contingency Plan

Documentation

Release Notes

Comments and Discussion