Skip to contentSkip to conversation

proc.5 /proc/[pid]/cgroup patch

PATCH Ivana Hutarova Varekova 1 participant 1 message May 27, 2011 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello,
I'm sending the patch for proc.5 which adds the information about /proc/[pid]/cgroup. Ivana Hutarova Varekova

man5/proc.5 renamed from man5/proc.5.pom +29 -6
diff -up man-pages-3.32/man5/proc.5.pom man-pages-3.32/man5/proc.5
@@ -94,12 +94,35 @@ to the process at exec time.
 The format is one \fIunsigned long\fP ID
 plus one \fIunsigned long\fP value for each entry.
 The last entry contains two zeros.
-.\" FIXME Describe /proc/[pid]/cgroup and
-.\"       /proc/[pid]/task/[tid]/cgroup
-.\" 	  Info in Documentation/cgroups.txt
-.\"       Added in 2.6.24
-.\"	  CONFIG_CGROUPS
-.\"
+.TP
+.I /proc/[pid]/cgroup " (since Linux 2.6.24)"
+This file describes control groups to which the process/task
+belongs. For each cgroup hierarchy there is one entry of the form
+.nf
+.ft CW
+
+  5:cpuacct,cpu,cpuset:/daemons
+(1)         (2)          (3)
+.ft
+.fi
+.IP
+The numbers in parentheses are labels for the descriptions below:
+.RS 7
+.TP 5
+(1)
+hierarchy id number
+.TP
+(2)
+set of subsystems bound to the hierarchy
+.TP
+(3)
+control group in the hierarchy to which the process belongs
+.RE
+.IP
+
+This file is only present if the
+.B CONFIG_CGROUPS
+kernel configuration option is enabled.
 .\" FIXME Describe /proc/[pid]/clear_refs
 .\"       Added in 2.6.22
 .\"       "Clears page referenced bits shown in smaps output"