Skip to content

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

[email protected] linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cgroup map files: Add cgroup map data typeinclude/linux/cgroup.h kernel/cgroup.c+77 -10 replies
2/2cgroup map files: Use cgroup map for memcontrol stats filemm/memcontrol.c+6 -240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] cgroup map files: Add a key/value map file type to cgroups

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

--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>