]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
memcgroups: add a document describing the resource counter abstraction
authorPavel Emelyanov <xemul@openvz.org>
Tue, 29 Apr 2008 08:00:18 +0000 (01:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:10 +0000 (08:06 -0700)
commitfaebe9fdf35058bb8421e4c09f6f70994eaf8db2
tree36042017bf8871253d86f1fe691ed630b179a1c9
parentc84872e168d10926acd2dee975d19172eef79252
memcgroups: add a document describing the resource counter abstraction

The resource counter is supposed to facilitate the resource accounting of
arbitrary resource (and it already does this for memory controller).

However, it is about to be used in other resources controllers (swap, kernel
memory, networking, etc), so provide a doc describing how to work with it.
This will eliminate all the possible future duplications in the appropriate
controllers' docs.

Fixed errors pointed out by Randy.

[akpm@linux-foundation.org: fix documentation tpyo]
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/controllers/resource_counter.txt [new file with mode: 0644]
include/linux/res_counter.h