LWN.net Logo

cgroup map files: Add a key/value map file type to cgroups

From:  menage@google.com
To:  kamezawa.hiroyu@jp.fujitsu.com, akpm@linux-foundation.org
Subject:  [PATCH 0/2] cgroup map files: Add a key/value map file type to cgroups
Date:  Tue, 19 Feb 2008 21:15:44 -0800
Message-ID:  <20080220051544.018684000@menage.corp.google.com>
Cc:  linux-kernel@vger.kernel.org, linux-mm@kvack.org, balbir@in.ibm.com, xemul@openvz.org, yamamoto@valinux.co.jp
Archive-link:  Article, Thread

These patches add a new cgroup control file output type - a map from
strings to u64 values - and make use of it for the memory controller
"stat" file.

It is intended for use when the subsystem wants to return a collection
of values that are related in some way, for which a separate control
file for each value would make the reporting unwieldy.

The advantages of this are:

- more standardized output from control files that report
similarly-structured data

- less boilerplate required in cgroup subsystems

- simplifies transition to a future efficient cgroups binary API

Signed-off-by: Paul Menage <menage@google.com>

--

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.