aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorBalbir Singh <[email protected]>2009-06-17 16:26:34 -0700
committerLinus Torvalds <[email protected]>2009-06-18 13:03:47 -0700
commitd69b042f3d7406ddba560143b1796020df760800 (patch)
tree6b704864716240aa1282d06bb79c02ef4b77e16d /include/linux/debugobjects.h
parentcd5008196f7e583f4c558531a2bca59f6c674c5b (diff)
memcg: add file-based RSS accounting
Add file RSS tracking per memory cgroup We currently don't track file RSS, the RSS we report is actually anon RSS. All the file mapped pages, come in through the page cache and get accounted there. This patch adds support for accounting file RSS pages. It should 1. Help improve the metrics reported by the memory resource controller 2. Will form the basis for a future shared memory accounting heuristic that has been proposed by Kamezawa. Unfortunately, we cannot rename the existing "rss" keyword used in memory.stat to "anon_rss". We however, add "mapped_file" data and hope to educate the end user through documentation. [[email protected]: fix mem_cgroup_update_mapped_file_stat oops] Signed-off-by: Balbir Singh <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Li Zefan <[email protected]> Cc: Paul Menage <[email protected]> Cc: Dhaval Giani <[email protected]> Cc: Daisuke Nishimura <[email protected]> Cc: YAMAMOTO Takashi <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions