Skip to content

Resource Groups... formerly CKRM

Chandra Seetharaman lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Register/Unregister interface for Controllersinclude/linux/res_group.h include/linux/res_group_rc.h init/Kconfig +4 more+383 -00 replies
2/12Resource group creation/deletioninclude/linux/res_group.h include/linux/res_group_rc.h kernel/res_group/local.h +1 more+176 -130 replies
3/12Share Handlinginclude/linux/res_group.h include/linux/res_group_rc.h kernel/res_group/Makefile +3 more+297 -10 replies
4/12Add task logic to resource groupsinclude/linux/sched.h kernel/res_group/Makefile kernel/res_group/local.h +2 more+176 -10 replies
5/12Init and clear resource group info in taskinclude/linux/res_group.h init/main.c kernel/exit.c +4 more+77 -00 replies
6/12Add proc interface to get resource group info of taskfs/proc/base.c include/linux/res_group.h kernel/res_group/task.c+52 -10 replies
7/12Resource Groups Configfs Subsystem (RGCS)init/Kconfig kernel/res_group/Makefile kernel/res_group/rgcs.c+175 -00 replies
8/12Add attribute support to RGCSkernel/res_group/rgcs.c+52 -10 replies
9/12Add stats file support to RGCSkernel/res_group/rgcs.c+110 -20 replies
10/12Add shares file support to RGCSkernel/res_group/rgcs.c+136 -00 replies
11/12Add members file support to RGCSkernel/res_group/rgcs.c+49 -00 replies
12/12Documentation for Resource GroupsDocumentation/res_groups/res_groups_basics Documentation/res_groups/res_groups_install Documentation/res_groups/res_groups_usage+153 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] Resource Groups... formerly CKRM

Andrew,

CKRM has gone through a major overhaul by removing some of the complexity, cutting down on features and moving portions to userspace.

We have posted ckrm last week as an RFC:
infrastructure:

	http://www.ussg.iu.edu/hypermail/linux/kernel/0604.2/1297.html
numtasks controller:
	http://www.ussg.iu.edu/hypermail/linux/kernel/0604.2/1311.html
CPU controller:
	http://www.ussg.iu.edu/hypermail/linux/kernel/0604.2/1310.html

Diffstat of this patchset (including the numtasks controller that follows) is:

	23 files changed, 2466 insertions(+), 5 deletions(-)

including Documentaion and comments.

This patchset will be followed with two controllers:
- a simple controller, numtasks to control number of tasks
- CPU controller, to control CPU resource.

Please consider these for inclusion in -mm tree.
--

Changes since last post:
- CKRM has been replaced with Resource Groups
- 'class' has been replaced with resource group
- Limit the depth of the hierarchy.

---------
Patch Descriptions:

01/12 - controller_support

This patch defines data structures for defining a resource group and resource controller.
Provides register/unregister functions for a controller. Provides utility functions to get a controller's data structure.

02/12 - resource_group_support

Provides functions to alloc and free a user defined resource group. Provides utility macro to walk through the resource group hierarchy.

03/12 - shares_support

Provides functions to set/get shares of a specific resource of a resource group.
Defines a teardown function that is intended to be called when user disables resource group (by umount of the configfs component).

04/12 - tasksupport

Adds logic to support adding/removing task to/from a resource group Provides interface to set a task's resource group.

05/12 - tasksupport_fork_exit_init

Initializes and clears Resource Group specific information in a task at fork() and exit(). Inititalizes Resource Groups (called from start_kernel)

06/12: task_procsupport

Adds an interface in /proc to get the name of a resource group to which a task is attached.

07/12 - user_interface

Create the configfs component for managing Resource groups. Hooks up with configfs. Provides functions for creating and deleting resource groups.

08/12 - user_interface_attr_support

Adds the basic attribute store and show functions.

09/12 - user_interface_stats

Adds attr_store and attr_show support for stats file.

10/12 - user_interface_shares

Adds attr_store and attr_show support for shares file.

11/12 - user_interface_members

Adds attr_store and attr_show support for members file.

12/12 - res_groups_docs

Documentation describing important Resource Groups components such as resource group, shares, controllers, and the configfs based user interface. --
Thanks & Regards,

chandra

Signature · 4 lines
----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [email protected]   |      .......you may get it.
----------------------------------------------------------------------