[PATCH 7/7] [RFC] Example multi-bindable subsystem: a per-cgroup notes field
lizf at cn.fujitsu.com
Mon Mar 16 23:46:51 PDT 2009
Paul Menage wrote:
> [RFC] Example multi-bindable subsystem: a per-cgroup notes field
> As an example of a multiply-bindable subsystem, this patch introduces
> the "info" subsystem, which provides a single file, "info.notes", in
> which user-space middleware can store an arbitrary (up to one page)
> string representing configuration data about that cgroup. This reduces
> the need to keep additional state outside the cgroup filesystem.
> TODO: a single page is somewhat limiting - the file limit should be
> userspace-configurable, and the system should store large notes in a
> vector of pages (to avoid trying to kmalloc() an excessively large
> chunk of memory. (Or maybe just use vmalloc())
add info.size, and the size will default to PAGESIZE but is changable?
> Signed-off-by: Paul Menage <menage at google.com>
> +config CGROUP_INFO
> + bool "Simple application-specific info cgroup subsystem
> + help
> + Provides a simple cgroups subsystem with an "info.notes"
> + field, which can be used by middleware to store
> + application-specific configuration data about a cgroup. Can
> + be mounted on multiple hierarchies at once.
More information about the Containers