Debian Codegraph @

po/es/man7/cgroups.7.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: manpages-l10n 4.11.0\n"
7 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
8 "PO-Revision-Date: 2021-09-10 15:37+0200\n"
9 "Last-Translator: Automatically generated\n"
10 "Language-Team: Spanish <[email protected]>\n"
11 "Language: es\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
17 #. type: TH
18 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
19 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
20 #, fuzzy, no-wrap
21 #| msgid "B<group>"
22 msgid "cgroups"
23 msgstr "B<group>"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "8 Febrero 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, fuzzy, no-wrap
35 #| msgid "Linux man-pages 6.17"
36 msgid "Linux man-pages 6.18"
37 msgstr "Páginas de Manual de Linux 6.17"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "NOMBRE"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "cgroups - Linux control groups"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "DESCRIPTION"
57 msgstr "DESCRIPCIÓN"
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid ""
63 "Control groups, usually referred to as cgroups, are a Linux kernel feature "
64 "which allow processes to be organized into hierarchical groups whose usage "
65 "of various types of resources can then be limited and monitored. The "
66 "kernel's cgroup interface is provided through a pseudo-filesystem called "
67 "cgroupfs. Grouping is implemented in the core cgroup kernel code, while "
68 "resource tracking and limits are implemented in a set of per-resource-type "
69 "subsystems (memory, CPU, and so on)."
70 msgstr ""
71
72 #. type: SS
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "Terminology"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 msgid ""
83 "A I<cgroup> is a collection of processes that are bound to a set of limits "
84 "or parameters defined via the cgroup filesystem."
85 msgstr ""
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 msgid ""
91 "A I<subsystem> is a kernel component that modifies the behavior of the "
92 "processes in a cgroup. Various subsystems have been implemented, making it "
93 "possible to do things such as limiting the amount of CPU time and memory "
94 "available to a cgroup, accounting for the CPU time used by a cgroup, and "
95 "freezing and resuming execution of the processes in a cgroup. Subsystems "
96 "are sometimes also known as I<resource controllers> (or simply, controllers)."
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "The cgroups for a controller are arranged in a I<hierarchy>. This hierarchy "
104 "is defined by creating, removing, and renaming subdirectories within the "
105 "cgroup filesystem. At each level of the hierarchy, attributes (e.g., "
106 "limits) can be defined. The limits, control, and accounting provided by "
107 "cgroups generally have effect throughout the subhierarchy underneath the "
108 "cgroup where the attributes are defined. Thus, for example, the limits "
109 "placed on a cgroup at a higher level in the hierarchy cannot be exceeded by "
110 "descendant cgroups."
111 msgstr ""
112
113 #. type: SS
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid "Cgroups version 1 and version 2"
118 msgstr ""
119
120 #. type: Plain text
121 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
122 #: opensuse-tumbleweed
123 msgid ""
124 "The initial release of the cgroups implementation was in Linux 2.6.24. Over "
125 "time, various cgroup controllers have been added to allow the management of "
126 "various types of resources. However, the development of these controllers "
127 "was largely uncoordinated, with the result that many inconsistencies arose "
128 "between controllers and management of the cgroup hierarchies became rather "
129 "complex. A longer description of these problems can be found in the kernel "
130 "source file I<Documentation/admin-guide/cgroup-v2.rst> (or I<Documentation/"
131 "cgroup-v2.rst> in Linux 4.17 and earlier)."
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "Because of the problems with the initial cgroups implementation (cgroups "
139 "version 1), starting in Linux 3.10, work began on a new, orthogonal "
140 "implementation to remedy these problems. Initially marked experimental, and "
141 "hidden behind the I<-o\\ __DEVEL__sane_behavior> mount option, the new "
142 "version (cgroups version 2) was eventually made official with the release "
143 "of Linux 4.5. Differences between the two versions are described in the "
144 "text below. The file I<cgroup.sane_behavior>, present in cgroups v1, is a "
145 "relic of this mount option. The file always reports \"0\" and is only "
146 "retained for backward compatibility."
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "Although cgroups v2 is intended as a replacement for cgroups v1, the older "
154 "system continues to exist (and for compatibility reasons is unlikely to be "
155 "removed). Currently, cgroups v2 implements only a subset of the controllers "
156 "available in cgroups v1. The two systems are implemented so that both v1 "
157 "controllers and v2 controllers can be mounted on the same system. Thus, for "
158 "example, it is possible to use those controllers that are supported under "
159 "version 2, while also using version 1 controllers where version 2 does not "
160 "yet support those controllers. The only restriction here is that a "
161 "controller can't be simultaneously employed in both a cgroups v1 hierarchy "
162 "and in the cgroups v2 hierarchy."
163 msgstr ""
164
165 #. type: SH
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "CGROUPS VERSION 1"
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "Under cgroups v1, each controller may be mounted against a separate cgroup "
177 "filesystem that provides its own hierarchical organization of the processes "
178 "on the system. It is also possible to comount multiple (or even all) "
179 "cgroups v1 controllers against the same cgroup filesystem, meaning that the "
180 "comounted controllers manage the same hierarchical organization of processes."
181 msgstr ""
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "For each mounted hierarchy, the directory tree mirrors the control group "
188 "hierarchy. Each control group is represented by a directory, with each of "
189 "its child control cgroups represented as a child directory. For instance, "
190 "I</user/joe/1.session> represents control group I<1.session>, which is a "
191 "child of cgroup I<joe>, which is a child of I</user>. Under each cgroup "
192 "directory is a set of files which can be read or written to, reflecting "
193 "resource limits and a few general cgroup properties."
194 msgstr ""
195
196 #. type: SS
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "Tasks (threads) versus processes"
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "In cgroups v1, a distinction is drawn between I<processes> and I<tasks>. In "
208 "this view, a process can consist of multiple tasks (more commonly called "
209 "threads, from a user-space perspective, and called such in the remainder of "
210 "this man page). In cgroups v1, it is possible to independently manipulate "
211 "the cgroup memberships of the threads in a process."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid ""
218 "The cgroups v1 ability to split threads across different cgroups caused "
219 "problems in some cases. For example, it made no sense for the I<memory> "
220 "controller, since all of the threads of a process share a single address "
221 "space. Because of these problems, the ability to independently manipulate "
222 "the cgroup memberships of the threads in a process was removed in the "
223 "initial cgroups v2 implementation, and subsequently restored in a more "
224 "limited form (see the discussion of \"thread mode\" below)."
225 msgstr ""
226
227 #. type: SS
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "Mounting v1 controllers"
232 msgstr ""
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "The use of cgroups requires a kernel built with the B<CONFIG_CGROUP> "
239 "option. In addition, each of the v1 controllers has an associated "
240 "configuration option that must be set in order to employ that controller."
241 msgstr ""
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "In order to use a v1 controller, it must be mounted against a cgroup "
248 "filesystem. The usual place for such mounts is under a B<tmpfs>(5) "
249 "filesystem mounted at I</sys/fs/cgroup>. Thus, one might mount the I<cpu> "
250 "controller as follows:"
251 msgstr ""
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "mount -t cgroup -o cpu none /sys/fs/cgroup/cpu\n"
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "It is possible to comount multiple controllers against the same hierarchy. "
265 "For example, here the I<cpu> and I<cpuacct> controllers are comounted "
266 "against a single hierarchy:"
267 msgstr ""
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "mount -t cgroup -o cpu,cpuacct none /sys/fs/cgroup/cpu,cpuacct\n"
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "Comounting controllers has the effect that a process is in the same cgroup "
281 "for all of the comounted controllers. Separately mounting controllers "
282 "allows a process to be in cgroup I</foo1> for one controller while being in "
283 "I</foo2/foo3> for another."
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "It is possible to comount all v1 controllers against the same hierarchy:"
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "mount -t cgroup -o all cgroup /sys/fs/cgroup\n"
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "(One can achieve the same result by omitting I<-o all>, since it is the "
305 "default if no controllers are explicitly specified.)"
306 msgstr ""
307
308 #. type: Plain text
309 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
310 #: opensuse-leap-16-1 opensuse-tumbleweed
311 msgid ""
312 "It is not possible to mount the same controller against multiple cgroup "
313 "hierarchies. For example, it is not possible to mount both the I<cpu> and "
314 "I<cpuacct> controllers against one hierarchy, and to mount the I<cpu> "
315 "controller alone against another hierarchy. It is possible to create "
316 "multiple mounts with exactly the same set of comounted controllers. "
317 "However, in this case all that results is multiple mount points providing a "
318 "view of the same hierarchy."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "Note that on many systems, the v1 controllers are automatically mounted "
326 "under I</sys/fs/cgroup>; in particular, B<systemd>(1) automatically creates "
327 "such mounts."
328 msgstr ""
329
330 #. type: SS
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "Unmounting v1 controllers"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "A mounted cgroup filesystem can be unmounted using the B<umount>(8) "
342 "command, as in the following example:"
343 msgstr ""
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "umount /sys/fs/cgroup/pids\n"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "I<But note well>: a cgroup filesystem is unmounted only if it is not busy, "
357 "that is, it has no child cgroups. If this is not the case, then the only "
358 "effect of the B<umount>(8) is to make the mount invisible. Thus, to ensure "
359 "that the mount is really removed, one must first remove all child cgroups, "
360 "which in turn can be done only after all member processes have been moved "
361 "from those cgroups to the root cgroup."
362 msgstr ""
363
364 #. type: SS
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "Cgroups version 1 controllers"
369 msgstr ""
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "Each of the cgroups version 1 controllers is governed by a kernel "
376 "configuration option (listed below). Additionally, the availability of the "
377 "cgroups feature is governed by the B<CONFIG_CGROUPS> kernel configuration "
378 "option."
379 msgstr ""
380
381 #. type: TP
382 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
383 #: opensuse-tumbleweed
384 #, no-wrap
385 msgid "I<cpu> (since Linux 2.6.24; \\f[B]CONFIG_CGROUP_SCHED\\fR)"
386 msgstr ""
387
388 #. type: Plain text
389 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
390 #: opensuse-tumbleweed
391 msgid ""
392 "Cgroups can be guaranteed a minimum number of \"CPU shares\" when a system "
393 "is busy. This does not limit a cgroup's CPU usage if the CPUs are not "
394 "busy. For further information, see I<Documentation/scheduler/sched-design-"
395 "CFS.rst>."
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
400 #: opensuse-tumbleweed
401 msgid ""
402 "In Linux 3.2, this controller was extended to provide CPU \"bandwidth\" "
403 "control. If the kernel is configured with B<CONFIG_CFS_BANDWIDTH>, then "
404 "within each scheduling period (defined via a file in the cgroup directory), "
405 "it is possible to define an upper limit on the CPU time allocated to the "
406 "processes in a cgroup. This upper limit applies even if there is no other "
407 "competition for the CPU. Further information can be found in the kernel "
408 "source file I<Documentation/scheduler/sched-bwc.rst>."
409 msgstr ""
410
411 #. type: TP
412 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
413 #: opensuse-tumbleweed
414 #, no-wrap
415 msgid "I<cpuacct> (since Linux 2.6.24; \\f[B]CONFIG_CGROUP_CPUACCT\\fR)"
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid "This provides accounting for CPU usage by groups of processes."
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
426 #: opensuse-tumbleweed
427 msgid ""
428 "Further information can be found in the kernel source file I<Documentation/"
429 "admin-guide/cgroup-v1/cpuacct.rst>."
430 msgstr ""
431
432 #. type: TP
433 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
434 #: opensuse-tumbleweed
435 #, fuzzy, no-wrap
436 #| msgid "I<guest> (since Linux 2.6.24)"
437 msgid "I<cpuset> (since Linux 2.6.24; \\f[B]CONFIG_CPUSETS\\fR)"
438 msgstr "I<guest> (desde Linux 2.6.24)"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "This cgroup can be used to bind the processes in a cgroup to a specified set "
445 "of CPUs and NUMA nodes."
446 msgstr ""
447
448 #. type: Plain text
449 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
450 #: opensuse-tumbleweed
451 msgid ""
452 "Further information can be found in the kernel source file I<Documentation/"
453 "admin-guide/cgroup-v1/cpusets.rst>."
454 msgstr ""
455
456 #. type: TP
457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, no-wrap
460 msgid "I<memory> (since Linux 2.6.25; \\f[B]CONFIG_MEMCG\\fR)"
461 msgstr ""
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "The memory controller supports reporting and limiting of process memory, "
468 "kernel memory, and swap used by cgroups."
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
473 #: opensuse-tumbleweed
474 msgid ""
475 "Further information can be found in the kernel source file I<Documentation/"
476 "admin-guide/cgroup-v1/memory.rst>."
477 msgstr ""
478
479 #. type: TP
480 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
481 #: opensuse-tumbleweed
482 #, no-wrap
483 msgid "I<devices> (since Linux 2.6.26; \\f[B]CONFIG_CGROUP_DEVICE\\fR)"
484 msgstr ""
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid ""
490 "This supports controlling which processes may create (mknod) devices as well "
491 "as open them for reading or writing. The policies may be specified as allow-"
492 "lists and deny-lists. Hierarchy is enforced, so new rules must not violate "
493 "existing rules for the target or ancestor cgroups."
494 msgstr ""
495
496 #. type: Plain text
497 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
498 #: opensuse-tumbleweed
499 msgid ""
500 "Further information can be found in the kernel source file I<Documentation/"
501 "admin-guide/cgroup-v1/devices.rst>."
502 msgstr ""
503
504 #. type: TP
505 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
506 #: opensuse-tumbleweed
507 #, no-wrap
508 msgid "I<freezer> (since Linux 2.6.28; \\f[B]CONFIG_CGROUP_FREEZER\\fR)"
509 msgstr ""
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid ""
515 "The I<freezer> cgroup can suspend and restore (resume) all processes in a "
516 "cgroup. Freezing a cgroup I</A> also causes its children, for example, "
517 "processes in I</A/B>, to be frozen."
518 msgstr ""
519
520 #. type: Plain text
521 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
522 #: opensuse-tumbleweed
523 msgid ""
524 "Further information can be found in the kernel source file I<Documentation/"
525 "admin-guide/cgroup-v1/freezer-subsystem.rst>."
526 msgstr ""
527
528 #. type: TP
529 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
530 #: opensuse-tumbleweed
531 #, no-wrap
532 msgid "I<net_cls> (since Linux 2.6.29; \\f[B]CONFIG_CGROUP_NET_CLASSID\\fR)"
533 msgstr ""
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 msgid ""
539 "This places a classid, specified for the cgroup, on network packets created "
540 "by a cgroup. These classids can then be used in firewall rules, as well as "
541 "used to shape traffic using B<tc>(8). This applies only to packets leaving "
542 "the cgroup, not to traffic arriving at the cgroup."
543 msgstr ""
544
545 #. type: Plain text
546 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
547 #: opensuse-tumbleweed
548 msgid ""
549 "Further information can be found in the kernel source file I<Documentation/"
550 "admin-guide/cgroup-v1/net_cls.rst>."
551 msgstr ""
552
553 #. type: TP
554 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
555 #: opensuse-tumbleweed
556 #, no-wrap
557 msgid "I<blkio> (since Linux 2.6.33; \\f[B]CONFIG_BLK_CGROUP\\fR)"
558 msgstr ""
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "The I<blkio> cgroup controls and limits access to specified block devices by "
565 "applying IO control in the form of throttling and upper limits against leaf "
566 "nodes and intermediate nodes in the storage hierarchy."
567 msgstr ""
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "Two policies are available. The first is a proportional-weight time-based "
574 "division of disk implemented with CFQ. This is in effect for leaf nodes "
575 "using CFQ. The second is a throttling policy which specifies upper I/O rate "
576 "limits on a device."
577 msgstr ""
578
579 #. type: Plain text
580 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
581 #: opensuse-tumbleweed
582 msgid ""
583 "Further information can be found in the kernel source file I<Documentation/"
584 "admin-guide/cgroup-v1/blkio-controller.rst>."
585 msgstr ""
586
587 #. type: TP
588 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
589 #: opensuse-tumbleweed
590 #, no-wrap
591 msgid "I<perf_event> (since Linux 2.6.39; \\f[B]CONFIG_CGROUP_PERF\\fR)"
592 msgstr ""
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "This controller allows I<perf> monitoring of the set of processes grouped in "
599 "a cgroup."
600 msgstr ""
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid "Further information can be found in the kernel source files"
606 msgstr ""
607
608 #. type: TP
609 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
610 #: opensuse-tumbleweed
611 #, no-wrap
612 msgid "I<net_prio> (since Linux 3.3; \\f[B]CONFIG_CGROUP_NET_PRIO\\fR)"
613 msgstr ""
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid ""
619 "This allows priorities to be specified, per network interface, for cgroups."
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
624 #: opensuse-tumbleweed
625 msgid ""
626 "Further information can be found in the kernel source file I<Documentation/"
627 "admin-guide/cgroup-v1/net_prio.rst>."
628 msgstr ""
629
630 #. type: TP
631 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
632 #: opensuse-tumbleweed
633 #, no-wrap
634 msgid "I<hugetlb> (since Linux 3.5; \\f[B]CONFIG_CGROUP_HUGETLB\\fR)"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid "This supports limiting the use of huge pages by cgroups."
641 msgstr ""
642
643 #. type: Plain text
644 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
645 #: opensuse-tumbleweed
646 msgid ""
647 "Further information can be found in the kernel source file I<Documentation/"
648 "admin-guide/cgroup-v1/hugetlb.rst>."
649 msgstr ""
650
651 #. type: TP
652 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
653 #: opensuse-tumbleweed
654 #, no-wrap
655 msgid "I<pids> (since Linux 4.3; \\f[B]CONFIG_CGROUP_PIDS\\fR)"
656 msgstr ""
657
658 #. type: Plain text
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 msgid ""
662 "This controller permits limiting the number of process that may be created "
663 "in a cgroup (and its descendants)."
664 msgstr ""
665
666 #. type: Plain text
667 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
668 #: opensuse-tumbleweed
669 msgid ""
670 "Further information can be found in the kernel source file I<Documentation/"
671 "admin-guide/cgroup-v1/pids.rst>."
672 msgstr ""
673
674 #. type: TP
675 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
676 #: opensuse-tumbleweed
677 #, no-wrap
678 msgid "I<rdma> (since Linux 4.11; \\f[B]CONFIG_CGROUP_RDMA\\fR)"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "The RDMA controller permits limiting the use of RDMA/IB-specific resources "
686 "per cgroup."
687 msgstr ""
688
689 #. type: Plain text
690 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
691 #: opensuse-tumbleweed
692 msgid ""
693 "Further information can be found in the kernel source file I<Documentation/"
694 "admin-guide/cgroup-v1/rdma.rst>."
695 msgstr ""
696
697 #. type: SS
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "Creating cgroups and moving processes"
702 msgstr ""
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid ""
708 "A cgroup filesystem initially contains a single root cgroup, '/', which all "
709 "processes belong to. A new cgroup is created by creating a directory in the "
710 "cgroup filesystem:"
711 msgstr ""
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "mkdir /sys/fs/cgroup/cpu/cg1\n"
718 msgstr ""
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid "This creates a new empty cgroup."
724 msgstr ""
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid ""
730 "A process may be moved to this cgroup by writing its PID into the cgroup's "
731 "I<cgroup.procs> file:"
732 msgstr ""
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid "echo $$ E<gt> /sys/fs/cgroup/cpu/cg1/cgroup.procs\n"
739 msgstr ""
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 msgid "Only one PID at a time should be written to this file."
745 msgstr ""
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 msgid ""
751 "Writing the value 0 to a I<cgroup.procs> file causes the writing process to "
752 "be moved to the corresponding cgroup."
753 msgstr ""
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 msgid ""
759 "When writing a PID into the I<cgroup.procs>, all threads in the process are "
760 "moved into the new cgroup at once."
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 msgid ""
767 "Within a hierarchy, a process can be a member of exactly one cgroup. "
768 "Writing a process's PID to a I<cgroup.procs> file automatically removes it "
769 "from the cgroup of which it was previously a member."
770 msgstr ""
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 msgid ""
776 "The I<cgroup.procs> file can be read to obtain a list of the processes that "
777 "are members of a cgroup. The returned list of PIDs is not guaranteed to be "
778 "in order. Nor is it guaranteed to be free of duplicates. (For example, a "
779 "PID may be recycled while reading from the list.)"
780 msgstr ""
781
782 #. type: Plain text
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 msgid ""
786 "In cgroups v1, an individual thread can be moved to another cgroup by "
787 "writing its thread ID (i.e., the kernel thread ID returned by B<clone>(2) "
788 "and B<gettid>(2)) to the I<tasks> file in a cgroup directory. This file "
789 "can be read to discover the set of threads that are members of the cgroup."
790 msgstr ""
791
792 #. type: SS
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, no-wrap
796 msgid "Removing cgroups"
797 msgstr ""
798
799 #. type: Plain text
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 msgid ""
803 "To remove a cgroup, it must first have no child cgroups and contain no "
804 "(nonzombie) processes. So long as that is the case, one can simply remove "
805 "the corresponding directory pathname. Note that files in a cgroup directory "
806 "cannot and need not be removed."
807 msgstr ""
808
809 #. type: SS
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 #, no-wrap
813 msgid "Cgroups v1 release notification"
814 msgstr ""
815
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 msgid ""
820 "Two files can be used to determine whether the kernel provides notifications "
821 "when a cgroup becomes empty. A cgroup is considered to be empty when it "
822 "contains no child cgroups and no member processes."
823 msgstr ""
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 msgid ""
829 "A special file in the root directory of each cgroup hierarchy, "
830 "I<release_agent>, can be used to register the pathname of a program that may "
831 "be invoked when a cgroup in the hierarchy becomes empty. The pathname of "
832 "the newly empty cgroup (relative to the cgroup mount point) is provided as "
833 "the sole command-line argument when the I<release_agent> program is "
834 "invoked. The I<release_agent> program might remove the cgroup directory, or "
835 "perhaps repopulate it with a process."
836 msgstr ""
837
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid ""
842 "The default value of the I<release_agent> file is empty, meaning that no "
843 "release agent is invoked."
844 msgstr ""
845
846 #. type: Plain text
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 msgid ""
850 "The content of the I<release_agent> file can also be specified via a mount "
851 "option when the cgroup filesystem is mounted:"
852 msgstr ""
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 #, no-wrap
858 msgid "mount -o release_agent=pathname ...\n"
859 msgstr ""
860
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 msgid ""
865 "Whether or not the I<release_agent> program is invoked when a particular "
866 "cgroup becomes empty is determined by the value in the I<notify_on_release> "
867 "file in the corresponding cgroup directory. If this file contains the value "
868 "0, then the I<release_agent> program is not invoked. If it contains the "
869 "value 1, the I<release_agent> program is invoked. The default value for "
870 "this file in the root cgroup is 0. At the time when a new cgroup is "
871 "created, the value in this file is inherited from the corresponding file in "
872 "the parent cgroup."
873 msgstr ""
874
875 #. type: SS
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "Cgroup v1 named hierarchies"
880 msgstr ""
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "In cgroups v1, it is possible to mount a cgroup hierarchy that has no "
887 "attached controllers:"
888 msgstr ""
889
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 #, no-wrap
894 msgid "mount -t cgroup -o none,name=somename none /some/mount/point\n"
895 msgstr ""
896
897 #. type: Plain text
898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
900 msgid ""
901 "Multiple instances of such hierarchies can be mounted; each hierarchy must "
902 "have a unique name. The only purpose of such hierarchies is to track "
903 "processes. (See the discussion of release notification below.) An example "
904 "of this is the I<name=systemd> cgroup hierarchy that is used by "
905 "B<systemd>(1) to track services and user sessions."
906 msgstr ""
907
908 #. type: Plain text
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 msgid ""
912 "Since Linux 5.0, the I<cgroup_no_v1> kernel boot option (described below) "
913 "can be used to disable cgroup v1 named hierarchies, by specifying "
914 "I<cgroup_no_v1=named>."
915 msgstr ""
916
917 #. type: SH
918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
920 #, no-wrap
921 msgid "CGROUPS VERSION 2"
922 msgstr ""
923
924 #. type: Plain text
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 msgid ""
928 "In cgroups v2, all mounted controllers reside in a single unified "
929 "hierarchy. While (different) controllers may be simultaneously mounted "
930 "under the v1 and v2 hierarchies, it is not possible to mount the same "
931 "controller simultaneously under both the v1 and the v2 hierarchies."
932 msgstr ""
933
934 #. type: Plain text
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 msgid ""
938 "The new behaviors in cgroups v2 are summarized here, and in some cases "
939 "elaborated in the following subsections."
940 msgstr ""
941
942 #. type: IP
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 #, no-wrap
946 msgid "\\[bu]"
947 msgstr "\\[bu]"
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid ""
953 "Cgroups v2 provides a unified hierarchy against which all controllers are "
954 "mounted."
955 msgstr ""
956
957 #. type: Plain text
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 msgid ""
961 "\"Internal\" processes are not permitted. With the exception of the root "
962 "cgroup, processes may reside only in leaf nodes (cgroups that do not "
963 "themselves contain child cgroups). The details are somewhat more subtle "
964 "than this, and are described below."
965 msgstr ""
966
967 #. type: Plain text
968 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
969 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
970 msgid ""
971 "Active cgroups must be specified via the files I<cgroup.controllers> and "
972 "I<cgroup.subtree_control>."
973 msgstr ""
974
975 #. type: Plain text
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 msgid ""
979 "The I<tasks> file has been removed. In addition, the "
980 "I<cgroup.clone_children> file that is employed by the I<cpuset> controller "
981 "has been removed."
982 msgstr ""
983
984 #. type: Plain text
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 msgid ""
988 "An improved mechanism for notification of empty cgroups is provided by the "
989 "I<cgroup.events> file."
990 msgstr ""
991
992 #. type: Plain text
993 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
994 #: opensuse-tumbleweed
995 msgid ""
996 "For more changes, see the I<Documentation/admin-guide/cgroup-v2.rst> file in "
997 "the kernel source."
998 msgstr ""
999
1000 #. type: Plain text
1001 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1002 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1003 msgid ""
1004 "Some of the new behaviors listed above saw subsequent modification with the "
1005 "addition in Linux 4.14 of \"thread mode\" (described below)."
1006 msgstr ""
1007
1008 #. type: SS
1009 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1010 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1011 #, no-wrap
1012 msgid "Cgroups v2 unified hierarchy"
1013 msgstr ""
1014
1015 #. type: Plain text
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 msgid ""
1019 "In cgroups v1, the ability to mount different controllers against different "
1020 "hierarchies was intended to allow great flexibility for application design. "
1021 "In practice, though, the flexibility turned out to be less useful than "
1022 "expected, and in many cases added complexity. Therefore, in cgroups v2, all "
1023 "available controllers are mounted against a single hierarchy. The available "
1024 "controllers are automatically mounted, meaning that it is not necessary (or "
1025 "possible) to specify the controllers when mounting the cgroup v2 filesystem "
1026 "using a command such as the following:"
1027 msgstr ""
1028
1029 #. type: Plain text
1030 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1031 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1032 #, no-wrap
1033 msgid "mount -t cgroup2 none /mnt/cgroup2\n"
1034 msgstr ""
1035
1036 #. type: Plain text
1037 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1038 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1039 msgid ""
1040 "A cgroup v2 controller is available only if it is not currently in use via a "
1041 "mount against a cgroup v1 hierarchy. Or, to put things another way, it is "
1042 "not possible to employ the same controller against both a v1 hierarchy and "
1043 "the unified v2 hierarchy. This means that it may be necessary first to "
1044 "unmount a v1 controller (as described above) before that controller is "
1045 "available in v2. Since B<systemd>(1) makes heavy use of some v1 "
1046 "controllers by default, it can in some cases be simpler to boot the system "
1047 "with selected v1 controllers disabled. To do this, specify the "
1048 "I<cgroup_no_v1=list> option on the kernel boot command line; I<list> is a "
1049 "comma-separated list of the names of the controllers to disable, or the word "
1050 "I<all> to disable all v1 controllers. (This situation is correctly handled "
1051 "by B<systemd>(1), which falls back to operating without the specified "
1052 "controllers.)"
1053 msgstr ""
1054
1055 #. type: Plain text
1056 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1057 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1058 msgid ""
1059 "Note that on many modern systems, B<systemd>(1) automatically mounts the "
1060 "I<cgroup2> filesystem at I</sys/fs/cgroup/unified> during the boot process."
1061 msgstr ""
1062
1063 #. type: SS
1064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1066 #, no-wrap
1067 msgid "Cgroups v2 mount options"
1068 msgstr ""
1069
1070 #. type: Plain text
1071 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1072 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1073 msgid ""
1074 "The following options (I<mount\\ -o>) can be specified when mounting the "
1075 "group v2 filesystem:"
1076 msgstr ""
1077
1078 #. type: TP
1079 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1080 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1081 #, no-wrap
1082 msgid "I<nsdelegate> (since Linux 4.15)"
1083 msgstr ""
1084
1085 #. type: Plain text
1086 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1087 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1088 msgid ""
1089 "Treat cgroup namespaces as delegation boundaries. For details, see below."
1090 msgstr ""
1091
1092 #. type: TP
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 #, no-wrap
1096 msgid "I<memory_localevents> (since Linux 5.2)"
1097 msgstr ""
1098
1099 #. commit 9852ae3fe5293264f01c49f2571ef7688f7823ce
1100 #. type: Plain text
1101 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1102 #: opensuse-leap-16-1 opensuse-tumbleweed
1103 msgid ""
1104 "The I<memory.events> should show statistics only for the cgroup itself, and "
1105 "not for any descendant cgroups. This was the behavior before Linux 5.2. "
1106 "Since Linux 5.2, the default behavior is to include statistics for "
1107 "descendant cgroups in I<memory.events>, and this mount option can be used to "
1108 "revert to the legacy behavior. This option is system wide and can be set on "
1109 "mount or modified through remount only from the initial mount namespace; it "
1110 "is silently ignored in noninitial namespaces."
1111 msgstr ""
1112
1113 #. type: SS
1114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1116 #, no-wrap
1117 msgid "Cgroups v2 controllers"
1118 msgstr ""
1119
1120 #. type: Plain text
1121 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1122 #: opensuse-tumbleweed
1123 msgid ""
1124 "The following controllers, documented in the kernel source file "
1125 "I<Documentation/admin-guide/cgroup-v2.rst>, are supported in cgroups version "
1126 "2:"
1127 msgstr ""
1128
1129 #. type: TP
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 #, no-wrap
1133 msgid "I<cpu> (since Linux 4.15)"
1134 msgstr ""
1135
1136 #. type: Plain text
1137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1139 msgid ""
1140 "This is the successor to the version 1 I<cpu> and I<cpuacct> controllers."
1141 msgstr ""
1142
1143 #. type: TP
1144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1146 #, no-wrap
1147 msgid "I<cpuset> (since Linux 5.0)"
1148 msgstr ""
1149
1150 #. type: Plain text
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 msgid "This is the successor of the version 1 I<cpuset> controller."
1154 msgstr ""
1155
1156 #. type: TP
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 #, no-wrap
1160 msgid "I<freezer> (since Linux 5.2)"
1161 msgstr ""
1162
1163 #. commit 76f969e8948d82e78e1bc4beb6b9465908e74873
1164 #. type: Plain text
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 msgid "This is the successor of the version 1 I<freezer> controller."
1168 msgstr ""
1169
1170 #. type: TP
1171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1173 #, no-wrap
1174 msgid "I<hugetlb> (since Linux 5.6)"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 msgid "This is the successor of the version 1 I<hugetlb> controller."
1181 msgstr ""
1182
1183 #. type: TP
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 #, no-wrap
1187 msgid "I<io> (since Linux 4.5)"
1188 msgstr ""
1189
1190 #. type: Plain text
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 msgid "This is the successor of the version 1 I<blkio> controller."
1194 msgstr ""
1195
1196 #. type: TP
1197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1199 #, no-wrap
1200 msgid "I<memory> (since Linux 4.5)"
1201 msgstr ""
1202
1203 #. type: Plain text
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 msgid "This is the successor of the version 1 I<memory> controller."
1207 msgstr ""
1208
1209 #. type: TP
1210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1212 #, no-wrap
1213 msgid "I<perf_event> (since Linux 4.11)"
1214 msgstr ""
1215
1216 #. type: Plain text
1217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1219 msgid "This is the same as the version 1 I<perf_event> controller."
1220 msgstr ""
1221
1222 #. type: TP
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 #, no-wrap
1226 msgid "I<pids> (since Linux 4.5)"
1227 msgstr ""
1228
1229 #. type: Plain text
1230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1232 msgid "This is the same as the version 1 I<pids> controller."
1233 msgstr ""
1234
1235 #. type: TP
1236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1238 #, no-wrap
1239 msgid "I<rdma> (since Linux 4.11)"
1240 msgstr ""
1241
1242 #. type: Plain text
1243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1245 msgid "This is the same as the version 1 I<rdma> controller."
1246 msgstr ""
1247
1248 #. type: Plain text
1249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1251 msgid ""
1252 "There is no direct equivalent of the I<net_cls> and I<net_prio> controllers "
1253 "from cgroups version 1. Instead, support has been added to B<iptables>(8) "
1254 "to allow eBPF filters that hook on cgroup v2 pathnames to make decisions "
1255 "about network traffic on a per-cgroup basis."
1256 msgstr ""
1257
1258 #. type: Plain text
1259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1261 msgid ""
1262 "The v2 I<devices> controller provides no interface files; instead, device "
1263 "control is gated by attaching an eBPF (B<BPF_CGROUP_DEVICE>) program to a "
1264 "v2 cgroup."
1265 msgstr ""
1266
1267 #. type: SS
1268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1270 #, no-wrap
1271 msgid "Cgroups v2 subtree control"
1272 msgstr ""
1273
1274 #. type: Plain text
1275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1277 msgid "Each cgroup in the v2 hierarchy contains the following two files:"
1278 msgstr ""
1279
1280 #. type: TP
1281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1283 #, no-wrap
1284 msgid "I<cgroup.controllers>"
1285 msgstr ""
1286
1287 #. type: Plain text
1288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1290 msgid ""
1291 "This read-only file exposes a list of the controllers that are I<available> "
1292 "in this cgroup. The contents of this file match the contents of the "
1293 "I<cgroup.subtree_control> file in the parent cgroup."
1294 msgstr ""
1295
1296 #. type: TP
1297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1299 #, no-wrap
1300 msgid "I<cgroup.subtree_control>"
1301 msgstr ""
1302
1303 #. type: Plain text
1304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1306 msgid ""
1307 "This is a list of controllers that are I<active> (I<enabled>) in the "
1308 "cgroup. The set of controllers in this file is a subset of the set in the "
1309 "I<cgroup.controllers> of this cgroup. The set of active controllers is "
1310 "modified by writing strings to this file containing space-delimited "
1311 "controller names, each preceded by '+' (to enable a controller) or '-' (to "
1312 "disable a controller), as in the following example:"
1313 msgstr ""
1314
1315 #. type: Plain text
1316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1318 #, no-wrap
1319 msgid "echo \\[aq]+pids -memory\\[aq] E<gt> x/y/cgroup.subtree_control\n"
1320 msgstr ""
1321
1322 #. type: Plain text
1323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1325 msgid ""
1326 "An attempt to enable a controller that is not present in "
1327 "I<cgroup.controllers> leads to an B<ENOENT> error when writing to the "
1328 "I<cgroup.subtree_control> file."
1329 msgstr ""
1330
1331 #. type: Plain text
1332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1334 msgid ""
1335 "Because the list of controllers in I<cgroup.subtree_control> is a subset of "
1336 "those I<cgroup.controllers>, a controller that has been disabled in one "
1337 "cgroup in the hierarchy can never be re-enabled in the subtree below that "
1338 "cgroup."
1339 msgstr ""
1340
1341 #. type: Plain text
1342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1344 msgid ""
1345 "A cgroup's I<cgroup.subtree_control> file determines the set of controllers "
1346 "that are exercised in the I<child> cgroups. When a controller (e.g., "
1347 "I<pids>) is present in the I<cgroup.subtree_control> file of a parent "
1348 "cgroup, then the corresponding controller-interface files (e.g., "
1349 "I<pids.max>) are automatically created in the children of that cgroup and "
1350 "can be used to exert resource control in the child cgroups."
1351 msgstr ""
1352
1353 #. type: SS
1354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1356 #, no-wrap
1357 msgid "Cgroups v2 \\[dq]no internal processes\\[dq] rule"
1358 msgstr ""
1359
1360 #. type: Plain text
1361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1363 msgid ""
1364 "Cgroups v2 enforces a so-called \"no internal processes\" rule. Roughly "
1365 "speaking, this rule means that, with the exception of the root cgroup, "
1366 "processes may reside only in leaf nodes (cgroups that do not themselves "
1367 "contain child cgroups). This avoids the need to decide how to partition "
1368 "resources between processes which are members of cgroup A and processes in "
1369 "child cgroups of A."
1370 msgstr ""
1371
1372 #. type: Plain text
1373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1375 msgid ""
1376 "For instance, if cgroup I</cg1/cg2> exists, then a process may reside in I</"
1377 "cg1/cg2>, but not in I</cg1>. This is to avoid an ambiguity in cgroups v1 "
1378 "with respect to the delegation of resources between processes in I</cg1> and "
1379 "its child cgroups. The recommended approach in cgroups v2 is to create a "
1380 "subdirectory called I<leaf> for any nonleaf cgroup which should contain "
1381 "processes, but no child cgroups. Thus, processes which previously would "
1382 "have gone into I</cg1> would now go into I</cg1/leaf>. This has the "
1383 "advantage of making explicit the relationship between processes in I</cg1/"
1384 "leaf> and I</cg1>'s other children."
1385 msgstr ""
1386
1387 #. type: Plain text
1388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1390 msgid ""
1391 "The \"no internal processes\" rule is in fact more subtle than stated "
1392 "above. More precisely, the rule is that a (nonroot) cgroup can't both (1) "
1393 "have member processes, and (2) distribute resources into child cgroups\\"
1394 "[em]that is, have a nonempty I<cgroup.subtree_control> file. Thus, it I<is> "
1395 "possible for a cgroup to have both member processes and child cgroups, but "
1396 "before controllers can be enabled for that cgroup, the member processes must "
1397 "be moved out of the cgroup (e.g., perhaps into the child cgroups)."
1398 msgstr ""
1399
1400 #. type: Plain text
1401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1403 msgid ""
1404 "With the Linux 4.14 addition of \"thread mode\" (described below), the \"no "
1405 "internal processes\" rule has been relaxed in some cases."
1406 msgstr ""
1407
1408 #. type: SS
1409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1411 #, no-wrap
1412 msgid "Cgroups v2 cgroup.events file"
1413 msgstr ""
1414
1415 #. type: Plain text
1416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1418 msgid ""
1419 "Each nonroot cgroup in the v2 hierarchy contains a read-only file, "
1420 "I<cgroup.events>, whose contents are key-value pairs (delimited by newline "
1421 "characters, with the key and value separated by spaces) providing state "
1422 "information about the cgroup:"
1423 msgstr ""
1424
1425 #. type: Plain text
1426 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1427 #: opensuse-tumbleweed
1428 #, no-wrap
1429 msgid ""
1430 "$B< cat mygrp/cgroup.events>\n"
1431 "populated 1\n"
1432 "frozen 0\n"
1433 msgstr ""
1434
1435 #. type: Plain text
1436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1438 msgid "The following keys may appear in this file:"
1439 msgstr ""
1440
1441 #. type: TP
1442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1444 #, no-wrap
1445 msgid "I<populated>"
1446 msgstr ""
1447
1448 #. type: Plain text
1449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1451 msgid ""
1452 "The value of this key is either 1, if this cgroup or any of its descendants "
1453 "has member processes, or otherwise 0."
1454 msgstr ""
1455
1456 #. type: TP
1457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1459 #, no-wrap
1460 msgid "I<frozen> (since Linux 5.2)"
1461 msgstr ""
1462
1463 #. commit 76f969e8948d82e78e1bc4beb6b9465908e7487
1464 #. type: Plain text
1465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1467 msgid ""
1468 "The value of this key is 1 if this cgroup is currently frozen, or 0 if it is "
1469 "not."
1470 msgstr ""
1471
1472 #. type: Plain text
1473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1475 msgid ""
1476 "The I<cgroup.events> file can be monitored, in order to receive notification "
1477 "when the value of one of its keys changes. Such monitoring can be done "
1478 "using B<inotify>(7), which notifies changes as B<IN_MODIFY> events, or "
1479 "B<poll>(2), which notifies changes by returning the B<POLLPRI> and "
1480 "B<POLLERR> bits in the I<revents> field."
1481 msgstr ""
1482
1483 #. type: SS
1484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1486 #, no-wrap
1487 msgid "Cgroup v2 release notification"
1488 msgstr ""
1489
1490 #. type: Plain text
1491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1493 msgid ""
1494 "Cgroups v2 provides a new mechanism for obtaining notification when a cgroup "
1495 "becomes empty. The cgroups v1 I<release_agent> and I<notify_on_release> "
1496 "files are removed, and replaced by the I<populated> key in the "
1497 "I<cgroup.events> file. This key either has the value 0, meaning that the "
1498 "cgroup (and its descendants) contain no (nonzombie) member processes, or 1, "
1499 "meaning that the cgroup (or one of its descendants) contains member "
1500 "processes."
1501 msgstr ""
1502
1503 #. type: Plain text
1504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1506 msgid ""
1507 "The cgroups v2 release-notification mechanism offers the following "
1508 "advantages over the cgroups v1 I<release_agent> mechanism:"
1509 msgstr ""
1510
1511 #. type: Plain text
1512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1514 msgid ""
1515 "It allows for cheaper notification, since a single process can monitor "
1516 "multiple I<cgroup.events> files (using the techniques described earlier). "
1517 "By contrast, the cgroups v1 mechanism requires the expense of creating a "
1518 "process for each notification."
1519 msgstr ""
1520
1521 #. type: Plain text
1522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1524 msgid ""
1525 "Notification for different cgroup subhierarchies can be delegated to "
1526 "different processes. By contrast, the cgroups v1 mechanism allows only one "
1527 "release agent for an entire hierarchy."
1528 msgstr ""
1529
1530 #. type: SS
1531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1533 #, no-wrap
1534 msgid "Cgroups v2 cgroup.stat file"
1535 msgstr ""
1536
1537 #. commit ec39225cca42c05ac36853d11d28f877fde5c42e
1538 #. type: Plain text
1539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1541 msgid ""
1542 "Each cgroup in the v2 hierarchy contains a read-only I<cgroup.stat> file "
1543 "(first introduced in Linux 4.14) that consists of lines containing key-"
1544 "value pairs. The following keys currently appear in this file:"
1545 msgstr ""
1546
1547 #. type: TP
1548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1550 #, no-wrap
1551 msgid "I<nr_descendants>"
1552 msgstr ""
1553
1554 #. type: Plain text
1555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1557 msgid ""
1558 "This is the total number of visible (i.e., living) descendant cgroups "
1559 "underneath this cgroup."
1560 msgstr ""
1561
1562 #. type: TP
1563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1565 #, no-wrap
1566 msgid "I<nr_dying_descendants>"
1567 msgstr ""
1568
1569 #. type: Plain text
1570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1572 msgid ""
1573 "This is the total number of dying descendant cgroups underneath this "
1574 "cgroup. A cgroup enters the dying state after being deleted. It remains in "
1575 "that state for an undefined period (which will depend on system load) while "
1576 "resources are freed before the cgroup is destroyed. Note that the presence "
1577 "of some cgroups in the dying state is normal, and is not indicative of any "
1578 "problem."
1579 msgstr ""
1580
1581 #. type: Plain text
1582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1584 msgid ""
1585 "A process can't be made a member of a dying cgroup, and a dying cgroup can't "
1586 "be brought back to life."
1587 msgstr ""
1588
1589 #. type: SS
1590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1592 #, no-wrap
1593 msgid "Limiting the number of descendant cgroups"
1594 msgstr ""
1595
1596 #. type: Plain text
1597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1599 msgid ""
1600 "Each cgroup in the v2 hierarchy contains the following files, which can be "
1601 "used to view and set limits on the number of descendant cgroups under that "
1602 "cgroup:"
1603 msgstr ""
1604
1605 #. type: TP
1606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1608 #, no-wrap
1609 msgid "I<cgroup.max.depth> (since Linux 4.14)"
1610 msgstr ""
1611
1612 #. commit 1a926e0bbab83bae8207d05a533173425e0496d1
1613 #. type: Plain text
1614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1616 msgid ""
1617 "This file defines a limit on the depth of nesting of descendant cgroups. A "
1618 "value of 0 in this file means that no descendant cgroups can be created. An "
1619 "attempt to create a descendant whose nesting level exceeds the limit fails "
1620 "(I<mkdir>(2) fails with the error B<EAGAIN>)."
1621 msgstr ""
1622
1623 #. type: Plain text
1624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1626 msgid ""
1627 "Writing the string I<\\[dq]max\\[dq]> to this file means that no limit is "
1628 "imposed. The default value in this file is I<\\[dq]max\\[dq]>."
1629 msgstr ""
1630
1631 #. type: TP
1632 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1633 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1634 #, no-wrap
1635 msgid "I<cgroup.max.descendants> (since Linux 4.14)"
1636 msgstr ""
1637
1638 #. commit 1a926e0bbab83bae8207d05a533173425e0496d1
1639 #. type: Plain text
1640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1642 msgid ""
1643 "This file defines a limit on the number of live descendant cgroups that this "
1644 "cgroup may have. An attempt to create more descendants than allowed by the "
1645 "limit fails (I<mkdir>(2) fails with the error B<EAGAIN>)."
1646 msgstr ""
1647
1648 #. type: SH
1649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1651 #, no-wrap
1652 msgid "CGROUPS DELEGATION: DELEGATING A HIERARCHY TO A LESS PRIVILEGED USER"
1653 msgstr ""
1654
1655 #. type: Plain text
1656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1658 msgid ""
1659 "In the context of cgroups, delegation means passing management of some "
1660 "subtree of the cgroup hierarchy to a nonprivileged user. Cgroups v1 "
1661 "provides support for delegation based on file permissions in the cgroup "
1662 "hierarchy but with less strict containment rules than v2 (as noted below). "
1663 "Cgroups v2 supports delegation with containment by explicit design. The "
1664 "focus of the discussion in this section is on delegation in cgroups v2, with "
1665 "some differences for cgroups v1 noted along the way."
1666 msgstr ""
1667
1668 #. type: Plain text
1669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1671 msgid ""
1672 "Some terminology is required in order to describe delegation. A "
1673 "I<delegater> is a privileged user (i.e., root) who owns a parent cgroup. A "
1674 "I<delegatee> is a nonprivileged user who will be granted the permissions "
1675 "needed to manage some subhierarchy under that parent cgroup, known as the "
1676 "I<delegated subtree>."
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1682 msgid ""
1683 "To perform delegation, the delegater makes certain directories and files "
1684 "writable by the delegatee, typically by changing the ownership of the "
1685 "objects to be the user ID of the delegatee. Assuming that we want to "
1686 "delegate the hierarchy rooted at (say) I</dlgt_grp> and that there are not "
1687 "yet any child cgroups under that cgroup, the ownership of the following is "
1688 "changed to the user ID of the delegatee:"
1689 msgstr ""
1690
1691 #. type: TP
1692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1694 #, no-wrap
1695 msgid "I</dlgt_grp>"
1696 msgstr ""
1697
1698 #. type: Plain text
1699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1701 msgid ""
1702 "Changing the ownership of the root of the subtree means that any new cgroups "
1703 "created under the subtree (and the files they contain) will also be owned "
1704 "by the delegatee."
1705 msgstr ""
1706
1707 #. type: TP
1708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1710 #, no-wrap
1711 msgid "I</dlgt_grp/cgroup.procs>"
1712 msgstr ""
1713
1714 #. type: Plain text
1715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1717 msgid ""
1718 "Changing the ownership of this file means that the delegatee can move "
1719 "processes into the root of the delegated subtree."
1720 msgstr ""
1721
1722 #. type: TP
1723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1725 #, no-wrap
1726 msgid "I</dlgt_grp/cgroup.subtree_control> (cgroups v2 only)"
1727 msgstr ""
1728
1729 #. type: Plain text
1730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1732 msgid ""
1733 "Changing the ownership of this file means that the delegatee can enable "
1734 "controllers (that are present in I</dlgt_grp/cgroup.controllers>) in order "
1735 "to further redistribute resources at lower levels in the subtree. (As an "
1736 "alternative to changing the ownership of this file, the delegater might "
1737 "instead add selected controllers to this file.)"
1738 msgstr ""
1739
1740 #. type: TP
1741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1743 #, no-wrap
1744 msgid "I</dlgt_grp/cgroup.threads> (cgroups v2 only)"
1745 msgstr ""
1746
1747 #. type: Plain text
1748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1750 msgid ""
1751 "Changing the ownership of this file is necessary if a threaded subtree is "
1752 "being delegated (see the description of \"thread mode\", below). This "
1753 "permits the delegatee to write thread IDs to the file. (The ownership of "
1754 "this file can also be changed when delegating a domain subtree, but "
1755 "currently this serves no purpose, since, as described below, it is not "
1756 "possible to move a thread between domain cgroups by writing its thread ID to "
1757 "the I<cgroup.threads> file.)"
1758 msgstr ""
1759
1760 #. type: Plain text
1761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1763 msgid ""
1764 "In cgroups v1, the corresponding file that should instead be delegated is "
1765 "the I<tasks> file."
1766 msgstr ""
1767
1768 #. type: Plain text
1769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1771 msgid ""
1772 "The delegater should I<not> change the ownership of any of the controller "
1773 "interfaces files (e.g., I<pids.max>, I<memory.high>) in I<dlgt_grp>. Those "
1774 "files are used from the next level above the delegated subtree in order to "
1775 "distribute resources into the subtree, and the delegatee should not have "
1776 "permission to change the resources that are distributed into the delegated "
1777 "subtree."
1778 msgstr ""
1779
1780 #. type: Plain text
1781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1783 msgid ""
1784 "See also the discussion of the I</sys/kernel/cgroup/delegate> file in NOTES "
1785 "for information about further delegatable files in cgroups v2."
1786 msgstr ""
1787
1788 #. type: Plain text
1789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1791 msgid ""
1792 "After the aforementioned steps have been performed, the delegatee can create "
1793 "child cgroups within the delegated subtree (the cgroup subdirectories and "
1794 "the files they contain will be owned by the delegatee) and move processes "
1795 "between cgroups in the subtree. If some controllers are present in "
1796 "I<dlgt_grp/cgroup.subtree_control>, or the ownership of that file was passed "
1797 "to the delegatee, the delegatee can also control the further redistribution "
1798 "of the corresponding resources into the delegated subtree."
1799 msgstr ""
1800
1801 #. type: SS
1802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1804 #, no-wrap
1805 msgid "Cgroups v2 delegation: nsdelegate and cgroup namespaces"
1806 msgstr ""
1807
1808 #. commit 5136f6365ce3eace5a926e10f16ed2a233db5ba9
1809 #. type: Plain text
1810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1812 msgid ""
1813 "Starting with Linux 4.13, there is a second way to perform cgroup delegation "
1814 "in the cgroups v2 hierarchy. This is done by mounting or remounting the "
1815 "cgroup v2 filesystem with the I<nsdelegate> mount option. For example, if "
1816 "the cgroup v2 filesystem has already been mounted, we can remount it with "
1817 "the I<nsdelegate> option as follows:"
1818 msgstr ""
1819
1820 #. type: Plain text
1821 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1822 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1823 #, no-wrap
1824 msgid ""
1825 "mount -t cgroup2 -o remount,nsdelegate \\[rs]\n"
1826 " none /sys/fs/cgroup/unified\n"
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1832 msgid ""
1833 "The effect of this mount option is to cause cgroup namespaces to "
1834 "automatically become delegation boundaries. More specifically, the "
1835 "following restrictions apply for processes inside the cgroup namespace:"
1836 msgstr ""
1837
1838 #. type: Plain text
1839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1841 msgid ""
1842 "Writes to controller interface files in the root directory of the namespace "
1843 "will fail with the error B<EPERM>. Processes inside the cgroup namespace "
1844 "can still write to delegatable files in the root directory of the cgroup "
1845 "namespace such as I<cgroup.procs> and I<cgroup.subtree_control>, and can "
1846 "create subhierarchy underneath the root directory."
1847 msgstr ""
1848
1849 #. type: Plain text
1850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1852 msgid ""
1853 "Attempts to migrate processes across the namespace boundary are denied (with "
1854 "the error B<ENOENT>). Processes inside the cgroup namespace can still "
1855 "(subject to the containment rules described below) move processes between "
1856 "cgroups I<within> the subhierarchy under the namespace root."
1857 msgstr ""
1858
1859 #. type: Plain text
1860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1862 msgid ""
1863 "The ability to define cgroup namespaces as delegation boundaries makes "
1864 "cgroup namespaces more useful. To understand why, suppose that we already "
1865 "have one cgroup hierarchy that has been delegated to a nonprivileged user, "
1866 "I<cecilia>, using the older delegation technique described above. Suppose "
1867 "further that I<cecilia> wanted to further delegate a subhierarchy under the "
1868 "existing delegated hierarchy. (For example, the delegated hierarchy might "
1869 "be associated with an unprivileged container run by I<cecilia>.) Even if a "
1870 "cgroup namespace was employed, because both hierarchies are owned by the "
1871 "unprivileged user I<cecilia>, the following illegitimate actions could be "
1872 "performed:"
1873 msgstr ""
1874
1875 #. type: Plain text
1876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1878 msgid ""
1879 "A process in the inferior hierarchy could change the resource controller "
1880 "settings in the root directory of that hierarchy. (These resource "
1881 "controller settings are intended to allow control to be exercised from the "
1882 "I<parent> cgroup; a process inside the child cgroup should not be allowed to "
1883 "modify them.)"
1884 msgstr ""
1885
1886 #. type: Plain text
1887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1889 msgid ""
1890 "A process inside the inferior hierarchy could move processes into and out of "
1891 "the inferior hierarchy if the cgroups in the superior hierarchy were somehow "
1892 "visible."
1893 msgstr ""
1894
1895 #. type: Plain text
1896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1898 msgid ""
1899 "Employing the I<nsdelegate> mount option prevents both of these "
1900 "possibilities."
1901 msgstr ""
1902
1903 #. type: Plain text
1904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1906 msgid ""
1907 "The I<nsdelegate> mount option only has an effect when performed in the "
1908 "initial mount namespace; in other mount namespaces, the option is silently "
1909 "ignored."
1910 msgstr ""
1911
1912 #. type: Plain text
1913 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1914 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1915 msgid ""
1916 "I<Note>: On some systems, B<systemd>(1) automatically mounts the cgroup v2 "
1917 "filesystem. In order to experiment with the I<nsdelegate> operation, it may "
1918 "be useful to boot the kernel with the following command-line options:"
1919 msgstr ""
1920
1921 #. type: Plain text
1922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1924 #, no-wrap
1925 msgid "cgroup_no_v1=all systemd.legacy_systemd_cgroup_controller\n"
1926 msgstr ""
1927
1928 #. type: Plain text
1929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1931 msgid ""
1932 "These options cause the kernel to boot with the cgroups v1 controllers "
1933 "disabled (meaning that the controllers are available in the v2 hierarchy), "
1934 "and tells B<systemd>(1) not to mount and use the cgroup v2 hierarchy, so "
1935 "that the v2 hierarchy can be manually mounted with the desired options after "
1936 "boot-up."
1937 msgstr ""
1938
1939 #. type: SS
1940 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1941 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1942 #, no-wrap
1943 msgid "Cgroup delegation containment rules"
1944 msgstr ""
1945
1946 #. type: Plain text
1947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1949 msgid ""
1950 "Some delegation I<containment rules> ensure that the delegatee can move "
1951 "processes between cgroups within the delegated subtree, but can't move "
1952 "processes from outside the delegated subtree into the subtree or vice "
1953 "versa. A nonprivileged process (i.e., the delegatee) can write the PID of a "
1954 "\"target\" process into a I<cgroup.procs> file only if all of the following "
1955 "are true:"
1956 msgstr ""
1957
1958 #. type: Plain text
1959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1961 msgid ""
1962 "The writer has write permission on the I<cgroup.procs> file in the "
1963 "destination cgroup."
1964 msgstr ""
1965
1966 #. type: Plain text
1967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1969 msgid ""
1970 "The writer has write permission on the I<cgroup.procs> file in the nearest "
1971 "common ancestor of the source and destination cgroups. Note that in some "
1972 "cases, the nearest common ancestor may be the source or destination cgroup "
1973 "itself. This requirement is not enforced for cgroups v1 hierarchies, with "
1974 "the consequence that containment in v1 is less strict than in v2. (For "
1975 "example, in cgroups v1 the user that owns two distinct delegated "
1976 "subhierarchies can move a process between the hierarchies.)"
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1982 msgid ""
1983 "If the cgroup v2 filesystem was mounted with the I<nsdelegate> option, the "
1984 "writer must be able to see the source and destination cgroups from its "
1985 "cgroup namespace."
1986 msgstr ""
1987
1988 #. commit 576dd464505fc53d501bb94569db76f220104d28
1989 #. type: Plain text
1990 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1991 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1992 msgid ""
1993 "In cgroups v1: the effective UID of the writer (i.e., the delegatee) matches "
1994 "the real user ID or the saved set-user-ID of the target process. Before "
1995 "Linux 4.11, this requirement also applied in cgroups v2 (This was a "
1996 "historical requirement inherited from cgroups v1 that was later deemed "
1997 "unnecessary, since the other rules suffice for containment in cgroups v2.)"
1998 msgstr ""
1999
2000 #. type: Plain text
2001 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2002 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2003 msgid ""
2004 "I<Note>: one consequence of these delegation containment rules is that the "
2005 "unprivileged delegatee can't place the first process into the delegated "
2006 "subtree; instead, the delegater must place the first process (a process "
2007 "owned by the delegatee) into the delegated subtree."
2008 msgstr ""
2009
2010 #. type: SH
2011 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2012 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2013 #, no-wrap
2014 msgid "CGROUPS VERSION 2 THREAD MODE"
2015 msgstr ""
2016
2017 #. type: Plain text
2018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2020 msgid ""
2021 "Among the restrictions imposed by cgroups v2 that were not present in "
2022 "cgroups v1 are the following:"
2023 msgstr ""
2024
2025 #. type: Plain text
2026 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2027 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2028 msgid ""
2029 "I<No thread-granularity control>: all of the threads of a process must be in "
2030 "the same cgroup."
2031 msgstr ""
2032
2033 #. type: Plain text
2034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2036 msgid ""
2037 "I<No internal processes>: a cgroup can't both have member processes and "
2038 "exercise controllers on child cgroups."
2039 msgstr ""
2040
2041 #. type: Plain text
2042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2044 msgid ""
2045 "Both of these restrictions were added because the lack of these restrictions "
2046 "had caused problems in cgroups v1. In particular, the cgroups v1 ability to "
2047 "allow thread-level granularity for cgroup membership made no sense for some "
2048 "controllers. (A notable example was the I<memory> controller: since threads "
2049 "share an address space, it made no sense to split threads across different "
2050 "I<memory> cgroups.)"
2051 msgstr ""
2052
2053 #. type: Plain text
2054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2056 msgid ""
2057 "Notwithstanding the initial design decision in cgroups v2, there were use "
2058 "cases for certain controllers, notably the I<cpu> controller, for which "
2059 "thread-level granularity of control was meaningful and useful. To "
2060 "accommodate such use cases, Linux 4.14 added I<thread mode> for cgroups v2."
2061 msgstr ""
2062
2063 #. type: Plain text
2064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2066 msgid "Thread mode allows the following:"
2067 msgstr ""
2068
2069 #. type: Plain text
2070 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2071 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2072 msgid ""
2073 "The creation of I<threaded subtrees> in which the threads of a process may "
2074 "be spread across cgroups inside the tree. (A threaded subtree may contain "
2075 "multiple multithreaded processes.)"
2076 msgstr ""
2077
2078 #. type: Plain text
2079 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2080 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2081 msgid ""
2082 "The concept of I<threaded controllers>, which can distribute resources "
2083 "across the cgroups in a threaded subtree."
2084 msgstr ""
2085
2086 #. type: Plain text
2087 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2088 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2089 msgid ""
2090 "A relaxation of the \"no internal processes rule\", so that, within a "
2091 "threaded subtree, a cgroup can both contain member threads and exercise "
2092 "resource control over child cgroups."
2093 msgstr ""
2094
2095 #. type: Plain text
2096 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2097 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2098 msgid ""
2099 "With the addition of thread mode, each nonroot cgroup now contains a new "
2100 "file, I<cgroup.type>, that exposes, and in some circumstances can be used to "
2101 "change, the \"type\" of a cgroup. This file contains one of the following "
2102 "type values:"
2103 msgstr ""
2104
2105 #. type: TP
2106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2108 #, no-wrap
2109 msgid "I<domain>"
2110 msgstr ""
2111
2112 #. type: Plain text
2113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2115 msgid ""
2116 "This is a normal v2 cgroup that provides process-granularity control. If a "
2117 "process is a member of this cgroup, then all threads of the process are (by "
2118 "definition) in the same cgroup. This is the default cgroup type, and "
2119 "provides the same behavior that was provided for cgroups in the initial "
2120 "cgroups v2 implementation."
2121 msgstr ""
2122
2123 #. type: TP
2124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2126 #, no-wrap
2127 msgid "I<threaded>"
2128 msgstr ""
2129
2130 #. type: Plain text
2131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2133 msgid ""
2134 "This cgroup is a member of a threaded subtree. Threads can be added to this "
2135 "cgroup, and controllers can be enabled for the cgroup."
2136 msgstr ""
2137
2138 #. type: TP
2139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2141 #, no-wrap
2142 msgid "I<domain threaded>"
2143 msgstr ""
2144
2145 #. type: Plain text
2146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2148 msgid ""
2149 "This is a domain cgroup that serves as the root of a threaded subtree. This "
2150 "cgroup type is also known as \"threaded root\"."
2151 msgstr ""
2152
2153 #. type: TP
2154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2156 #, no-wrap
2157 msgid "I<domain invalid>"
2158 msgstr ""
2159
2160 #. type: Plain text
2161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2163 msgid ""
2164 "This is a cgroup inside a threaded subtree that is in an \"invalid\" state. "
2165 "Processes can't be added to the cgroup, and controllers can't be enabled for "
2166 "the cgroup. The only thing that can be done with this cgroup (other than "
2167 "deleting it) is to convert it to a I<threaded> cgroup by writing the string "
2168 "I<\\[dq]threaded\\[dq]> to the I<cgroup.type> file."
2169 msgstr ""
2170
2171 #. type: Plain text
2172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2174 msgid ""
2175 "The rationale for the existence of this \"interim\" type during the creation "
2176 "of a threaded subtree (rather than the kernel simply immediately converting "
2177 "all cgroups under the threaded root to the type I<threaded>) is to allow "
2178 "for possible future extensions to the thread mode model"
2179 msgstr ""
2180
2181 #. type: SS
2182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2184 #, no-wrap
2185 msgid "Threaded versus domain controllers"
2186 msgstr ""
2187
2188 #. type: Plain text
2189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2191 msgid ""
2192 "With the addition of threads mode, cgroups v2 now distinguishes two types of "
2193 "resource controllers:"
2194 msgstr ""
2195
2196 #. In the kernel source, look for ".threaded[ \t]*= true" in
2197 #. initializations of struct cgroup_subsys
2198 #. type: Plain text
2199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2201 msgid ""
2202 "I<Threaded> controllers: these controllers support thread-granularity for "
2203 "resource control and can be enabled inside threaded subtrees, with the "
2204 "result that the corresponding controller-interface files appear inside the "
2205 "cgroups in the threaded subtree. As at Linux 4.19, the following "
2206 "controllers are threaded: I<cpu>, I<perf_event>, and I<pids>."
2207 msgstr ""
2208
2209 #. type: Plain text
2210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2212 msgid ""
2213 "I<Domain> controllers: these controllers support only process granularity "
2214 "for resource control. From the perspective of a domain controller, all "
2215 "threads of a process are always in the same cgroup. Domain controllers "
2216 "can't be enabled inside a threaded subtree."
2217 msgstr ""
2218
2219 #. type: SS
2220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2222 #, no-wrap
2223 msgid "Creating a threaded subtree"
2224 msgstr ""
2225
2226 #. type: Plain text
2227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2229 msgid ""
2230 "There are two pathways that lead to the creation of a threaded subtree. The "
2231 "first pathway proceeds as follows:"
2232 msgstr ""
2233
2234 #. type: IP
2235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2237 #, no-wrap
2238 msgid "(1)"
2239 msgstr "(1)"
2240
2241 #. type: Plain text
2242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2244 msgid ""
2245 "We write the string I<\\[dq]threaded\\[dq]> to the I<cgroup.type> file of a "
2246 "cgroup I<y/z> that currently has the type I<domain>. This has the following "
2247 "effects:"
2248 msgstr ""
2249
2250 #. type: Plain text
2251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2253 msgid "The type of the cgroup I<y/z> becomes I<threaded>."
2254 msgstr ""
2255
2256 #. type: Plain text
2257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2259 msgid ""
2260 "The type of the parent cgroup, I<y>, becomes I<domain threaded>. The parent "
2261 "cgroup is the root of a threaded subtree (also known as the \"threaded "
2262 "root\")."
2263 msgstr ""
2264
2265 #. type: Plain text
2266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2268 msgid ""
2269 "All other cgroups under I<y> that were not already of type I<threaded> "
2270 "(because they were inside already existing threaded subtrees under the new "
2271 "threaded root) are converted to type I<domain invalid>. Any subsequently "
2272 "created cgroups under I<y> will also have the type I<domain invalid>."
2273 msgstr ""
2274
2275 #. type: IP
2276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2278 #, no-wrap
2279 msgid "(2)"
2280 msgstr "(2)"
2281
2282 #. type: Plain text
2283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2285 msgid ""
2286 "We write the string I<\\[dq]threaded\\[dq]> to each of the I<domain invalid> "
2287 "cgroups under I<y>, in order to convert them to the type I<threaded>. As a "
2288 "consequence of this step, all threads under the threaded root now have the "
2289 "type I<threaded> and the threaded subtree is now fully usable. The "
2290 "requirement to write I<\\[dq]threaded\\[dq]> to each of these cgroups is "
2291 "somewhat cumbersome, but allows for possible future extensions to the thread-"
2292 "mode model."
2293 msgstr ""
2294
2295 #. type: Plain text
2296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2298 msgid "The second way of creating a threaded subtree is as follows:"
2299 msgstr ""
2300
2301 #. type: Plain text
2302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2304 msgid ""
2305 "In an existing cgroup, I<z>, that currently has the type I<domain>, we (1.1) "
2306 "enable one or more threaded controllers and (1.2) make a process a member of "
2307 "I<z>. (These two steps can be done in either order.) This has the "
2308 "following consequences:"
2309 msgstr ""
2310
2311 #. type: Plain text
2312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2314 msgid "The type of I<z> becomes I<domain threaded>."
2315 msgstr ""
2316
2317 #. type: Plain text
2318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2320 msgid ""
2321 "All of the descendant cgroups of I<z> that were not already of type "
2322 "I<threaded> are converted to type I<domain invalid>."
2323 msgstr ""
2324
2325 #. type: Plain text
2326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2328 msgid ""
2329 "As before, we make the threaded subtree usable by writing the string I<\\"
2330 "[dq]threaded\\[dq]> to each of the I<domain invalid> cgroups under I<z>, in "
2331 "order to convert them to the type I<threaded>."
2332 msgstr ""
2333
2334 #. type: Plain text
2335 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2336 #: opensuse-tumbleweed
2337 msgid ""
2338 "One of the consequences of the above pathways to creating a threaded subtree "
2339 "is that the threaded root cgroup can be a parent only to I<threaded> (and "
2340 "I<domain invalid>) cgroups. The threaded root cgroup can't be a parent of "
2341 "a I<domain> cgroup, and a I<threaded> cgroup can't have a sibling that is a "
2342 "I<domain> cgroup."
2343 msgstr ""
2344
2345 #. type: SS
2346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2348 #, no-wrap
2349 msgid "Using a threaded subtree"
2350 msgstr ""
2351
2352 #. type: Plain text
2353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2355 msgid ""
2356 "Within a threaded subtree, threaded controllers can be enabled in each "
2357 "subgroup whose type has been changed to I<threaded>; upon doing so, the "
2358 "corresponding controller interface files appear in the children of that "
2359 "cgroup."
2360 msgstr ""
2361
2362 #. type: Plain text
2363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2365 msgid ""
2366 "A process can be moved into a threaded subtree by writing its PID to the "
2367 "I<cgroup.procs> file in one of the cgroups inside the tree. This has the "
2368 "effect of making all of the threads in the process members of the "
2369 "corresponding cgroup and makes the process a member of the threaded "
2370 "subtree. The threads of the process can then be spread across the threaded "
2371 "subtree by writing their thread IDs (see B<gettid>(2)) to the "
2372 "I<cgroup.threads> files in different cgroups inside the subtree. The "
2373 "threads of a process must all reside in the same threaded subtree."
2374 msgstr ""
2375
2376 #. type: Plain text
2377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2379 msgid ""
2380 "As with writing to I<cgroup.procs>, some containment rules apply when "
2381 "writing to the I<cgroup.threads> file:"
2382 msgstr ""
2383
2384 #. type: Plain text
2385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2387 msgid ""
2388 "The writer must have write permission on the cgroup.threads file in the "
2389 "destination cgroup."
2390 msgstr ""
2391
2392 #. type: Plain text
2393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2395 msgid ""
2396 "The writer must have write permission on the I<cgroup.procs> file in the "
2397 "common ancestor of the source and destination cgroups. (In some cases, the "
2398 "common ancestor may be the source or destination cgroup itself.)"
2399 msgstr ""
2400
2401 #. type: Plain text
2402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2404 msgid ""
2405 "The source and destination cgroups must be in the same threaded subtree. "
2406 "(Outside a threaded subtree, an attempt to move a thread by writing its "
2407 "thread ID to the I<cgroup.threads> file in a different I<domain> cgroup "
2408 "fails with the error B<EOPNOTSUPP>.)"
2409 msgstr ""
2410
2411 #. type: Plain text
2412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2414 msgid ""
2415 "The I<cgroup.threads> file is present in each cgroup (including I<domain> "
2416 "cgroups) and can be read in order to discover the set of threads that is "
2417 "present in the cgroup. The set of thread IDs obtained when reading this "
2418 "file is not guaranteed to be ordered or free of duplicates."
2419 msgstr ""
2420
2421 #. type: Plain text
2422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2424 msgid ""
2425 "The I<cgroup.procs> file in the threaded root shows the PIDs of all "
2426 "processes that are members of the threaded subtree. The I<cgroup.procs> "
2427 "files in the other cgroups in the subtree are not readable."
2428 msgstr ""
2429
2430 #. type: Plain text
2431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2433 msgid ""
2434 "Domain controllers can't be enabled in a threaded subtree; no controller-"
2435 "interface files appear inside the cgroups underneath the threaded root. "
2436 "From the point of view of a domain controller, threaded subtrees are "
2437 "invisible: a multithreaded process inside a threaded subtree appears to a "
2438 "domain controller as a process that resides in the threaded root cgroup."
2439 msgstr ""
2440
2441 #. type: Plain text
2442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2444 msgid ""
2445 "Within a threaded subtree, the \"no internal processes\" rule does not "
2446 "apply: a cgroup can both contain member processes (or thread) and exercise "
2447 "controllers on child cgroups."
2448 msgstr ""
2449
2450 #. type: SS
2451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2453 #, no-wrap
2454 msgid "Rules for writing to cgroup.type and creating threaded subtrees"
2455 msgstr ""
2456
2457 #. type: Plain text
2458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2460 msgid "A number of rules apply when writing to the I<cgroup.type> file:"
2461 msgstr ""
2462
2463 #. type: Plain text
2464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2466 msgid ""
2467 "Only the string I<\\[dq]threaded\\[dq]> may be written. In other words, the "
2468 "only explicit transition that is possible is to convert a I<domain> cgroup "
2469 "to type I<threaded>."
2470 msgstr ""
2471
2472 #. type: Plain text
2473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2475 msgid ""
2476 "The effect of writing I<\\[dq]threaded\\[dq]> depends on the current value "
2477 "in I<cgroup.type>, as follows:"
2478 msgstr ""
2479
2480 #. type: Plain text
2481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2483 msgid ""
2484 "I<domain> or I<domain threaded>: start the creation of a threaded subtree "
2485 "(whose root is the parent of this cgroup) via the first of the pathways "
2486 "described above;"
2487 msgstr ""
2488
2489 #. type: Plain text
2490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2492 msgid ""
2493 "I<domain\\ invalid>: convert this cgroup (which is inside a threaded "
2494 "subtree) to a usable (i.e., I<threaded>) state;"
2495 msgstr ""
2496
2497 #. type: Plain text
2498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2500 msgid "I<threaded>: no effect (a \"no-op\")."
2501 msgstr ""
2502
2503 #. type: Plain text
2504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2506 msgid ""
2507 "We can't write to a I<cgroup.type> file if the parent's type is I<domain "
2508 "invalid>. In other words, the cgroups of a threaded subtree must be "
2509 "converted to the I<threaded> state in a top-down manner."
2510 msgstr ""
2511
2512 #. type: Plain text
2513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2515 msgid ""
2516 "There are also some constraints that must be satisfied in order to create a "
2517 "threaded subtree rooted at the cgroup I<x>:"
2518 msgstr ""
2519
2520 #. type: Plain text
2521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2523 msgid ""
2524 "There can be no member processes in the descendant cgroups of I<x>. (The "
2525 "cgroup I<x> can itself have member processes.)"
2526 msgstr ""
2527
2528 #. type: Plain text
2529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2531 msgid ""
2532 "No domain controllers may be enabled in I<x>'s I<cgroup.subtree_control> "
2533 "file."
2534 msgstr ""
2535
2536 #. type: Plain text
2537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2539 msgid ""
2540 "If any of the above constraints is violated, then an attempt to write I<\\"
2541 "[dq]threaded\\[dq]> to a I<cgroup.type> file fails with the error B<ENOTSUP>."
2542 msgstr ""
2543
2544 #. type: SS
2545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2547 #, no-wrap
2548 msgid "The \\[dq]domain threaded\\[dq] cgroup type"
2549 msgstr ""
2550
2551 #. type: Plain text
2552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2554 msgid ""
2555 "According to the pathways described above, the type of a cgroup can change "
2556 "to I<domain threaded> in either of the following cases:"
2557 msgstr ""
2558
2559 #. type: Plain text
2560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2562 msgid "The string I<\\[dq]threaded\\[dq]> is written to a child cgroup."
2563 msgstr ""
2564
2565 #. type: Plain text
2566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2568 msgid ""
2569 "A threaded controller is enabled inside the cgroup and a process is made a "
2570 "member of the cgroup."
2571 msgstr ""
2572
2573 #. type: Plain text
2574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2576 msgid ""
2577 "A I<domain threaded> cgroup, I<x>, can revert to the type I<domain> if the "
2578 "above conditions no longer hold true\\[em]that is, if all I<threaded> child "
2579 "cgroups of I<x> are removed and either I<x> no longer has threaded "
2580 "controllers enabled or no longer has member processes."
2581 msgstr ""
2582
2583 #. type: Plain text
2584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2586 msgid "When a I<domain threaded> cgroup I<x> reverts to the type I<domain>:"
2587 msgstr ""
2588
2589 #. type: Plain text
2590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2592 msgid ""
2593 "All I<domain invalid> descendants of I<x> that are not in lower-level "
2594 "threaded subtrees revert to the type I<domain>."
2595 msgstr ""
2596
2597 #. type: Plain text
2598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2600 msgid ""
2601 "The root cgroups in any lower-level threaded subtrees revert to the type "
2602 "I<domain threaded>."
2603 msgstr ""
2604
2605 #. type: SS
2606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2608 #, no-wrap
2609 msgid "Exceptions for the root cgroup"
2610 msgstr ""
2611
2612 #. type: Plain text
2613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2615 msgid ""
2616 "The root cgroup of the v2 hierarchy is treated exceptionally: it can be the "
2617 "parent of both I<domain> and I<threaded> cgroups. If the string I<\\"
2618 "[dq]threaded\\[dq]> is written to the I<cgroup.type> file of one of the "
2619 "children of the root cgroup, then"
2620 msgstr ""
2621
2622 #. type: Plain text
2623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2625 msgid "The type of that cgroup becomes I<threaded>."
2626 msgstr ""
2627
2628 #. type: Plain text
2629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2631 msgid ""
2632 "The type of any descendants of that cgroup that are not part of lower-level "
2633 "threaded subtrees changes to I<domain invalid>."
2634 msgstr ""
2635
2636 #. type: Plain text
2637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2639 msgid ""
2640 "Note that in this case, there is no cgroup whose type becomes I<domain "
2641 "threaded>. (Notionally, the root cgroup can be considered as the threaded "
2642 "root for the cgroup whose type was changed to I<threaded>.)"
2643 msgstr ""
2644
2645 #. type: Plain text
2646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2648 msgid ""
2649 "The aim of this exceptional treatment for the root cgroup is to allow a "
2650 "threaded cgroup that employs the I<cpu> controller to be placed as high as "
2651 "possible in the hierarchy, so as to minimize the (small) cost of traversing "
2652 "the cgroup hierarchy."
2653 msgstr ""
2654
2655 #. type: SS
2656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2658 #, no-wrap
2659 msgid "The cgroups v2 \\[dq]cpu\\[dq] controller and realtime threads"
2660 msgstr ""
2661
2662 #. type: Plain text
2663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2665 msgid ""
2666 "As at Linux 4.19, the cgroups v2 I<cpu> controller does not support control "
2667 "of realtime threads (specifically threads scheduled under any of the "
2668 "policies B<SCHED_FIFO>, B<SCHED_RR>, described B<SCHED_DEADLINE>; see "
2669 "B<sched>(7)). Therefore, the I<cpu> controller can be enabled in the root "
2670 "cgroup only if all realtime threads are in the root cgroup. (If there are "
2671 "realtime threads in nonroot cgroups, then a B<write>(2) of the string I<\\"
2672 "[dq]+cpu\\[dq]> to the I<cgroup.subtree_control> file fails with the error "
2673 "B<EINVAL>.)"
2674 msgstr ""
2675
2676 #. type: Plain text
2677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2679 msgid ""
2680 "On some systems, B<systemd>(1) places certain realtime threads in nonroot "
2681 "cgroups in the v2 hierarchy. On such systems, these threads must first be "
2682 "moved to the root cgroup before the I<cpu> controller can be enabled."
2683 msgstr ""
2684
2685 #. type: SH
2686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2688 #, no-wrap
2689 msgid "ERRORS"
2690 msgstr "ERRORES"
2691
2692 #. type: Plain text
2693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2695 msgid "The following errors can occur for B<mount>(2):"
2696 msgstr ""
2697
2698 #. type: TP
2699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2701 #, no-wrap
2702 msgid "B<EBUSY>"
2703 msgstr "B<EBUSY>"
2704
2705 #. type: Plain text
2706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2708 msgid ""
2709 "An attempt to mount a cgroup version 1 filesystem specified neither the "
2710 "I<name=> option (to mount a named hierarchy) nor a controller name (or "
2711 "I<all>)."
2712 msgstr ""
2713
2714 #. type: SH
2715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2717 #, no-wrap
2718 msgid "NOTES"
2719 msgstr "NOTAS"
2720
2721 #. type: Plain text
2722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2724 msgid ""
2725 "A child process created via B<fork>(2) inherits its parent's cgroup "
2726 "memberships. A process's cgroup memberships are preserved across "
2727 "B<execve>(2)."
2728 msgstr ""
2729
2730 #. type: Plain text
2731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2733 msgid ""
2734 "The B<clone3>(2) B<CLONE_INTO_CGROUP> flag can be used to create a child "
2735 "process that begins its life in a different version 2 cgroup from the parent "
2736 "process."
2737 msgstr ""
2738
2739 #. type: SS
2740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2742 #, no-wrap
2743 msgid "/proc files"
2744 msgstr ""
2745
2746 #. type: TP
2747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2749 #, no-wrap
2750 msgid "I</proc/cgroups> (since Linux 2.6.24)"
2751 msgstr "I</proc/cgroups> (desde Linux 2.6.24)"
2752
2753 #. type: Plain text
2754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2756 msgid ""
2757 "This file contains information about the controllers that are compiled into "
2758 "the kernel. An example of the contents of this file (reformatted for "
2759 "readability) is the following:"
2760 msgstr ""
2761
2762 #. type: Plain text
2763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2765 #, no-wrap
2766 msgid ""
2767 "#subsys_name hierarchy num_cgroups enabled\n"
2768 "cpuset 4 1 1\n"
2769 "cpu 8 1 1\n"
2770 "cpuacct 8 1 1\n"
2771 "blkio 6 1 1\n"
2772 "memory 3 1 1\n"
2773 "devices 10 84 1\n"
2774 "freezer 7 1 1\n"
2775 "net_cls 9 1 1\n"
2776 "perf_event 5 1 1\n"
2777 "net_prio 9 1 1\n"
2778 "hugetlb 0 1 0\n"
2779 "pids 2 1 1\n"
2780 msgstr ""
2781
2782 #. type: Plain text
2783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2785 msgid "The fields in this file are, from left to right:"
2786 msgstr ""
2787
2788 #. type: IP
2789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2791 #, no-wrap
2792 msgid "[1]"
2793 msgstr "[1]"
2794
2795 #. type: Plain text
2796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2798 msgid "The name of the controller."
2799 msgstr ""
2800
2801 #. type: IP
2802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2804 #, no-wrap
2805 msgid "[2]"
2806 msgstr "[2]"
2807
2808 #. type: Plain text
2809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2811 msgid ""
2812 "The unique ID of the cgroup hierarchy on which this controller is mounted. "
2813 "If multiple cgroups v1 controllers are bound to the same hierarchy, then "
2814 "each will show the same hierarchy ID in this field. The value in this field "
2815 "will be 0 if:"
2816 msgstr ""
2817
2818 #. type: Plain text
2819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2821 msgid "the controller is not mounted on a cgroups v1 hierarchy;"
2822 msgstr ""
2823
2824 #. type: Plain text
2825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2827 msgid "the controller is bound to the cgroups v2 single unified hierarchy; or"
2828 msgstr ""
2829
2830 #. type: Plain text
2831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2833 msgid "the controller is disabled (see below)."
2834 msgstr ""
2835
2836 #. type: IP
2837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2839 #, no-wrap
2840 msgid "[3]"
2841 msgstr "[3]"
2842
2843 #. type: Plain text
2844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2846 msgid "The number of control groups in this hierarchy using this controller."
2847 msgstr ""
2848
2849 #. type: IP
2850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2852 #, no-wrap
2853 msgid "[4]"
2854 msgstr "[4]"
2855
2856 #. type: Plain text
2857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2859 msgid ""
2860 "This field contains the value 1 if this controller is enabled, or 0 if it "
2861 "has been disabled (via the I<cgroup_disable> kernel command-line boot "
2862 "parameter)."
2863 msgstr ""
2864
2865 #. type: TP
2866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2868 #, no-wrap
2869 msgid "I</proc/>pidI</cgroup> (since Linux 2.6.24)"
2870 msgstr "I</proc/>pidI</cgroup> (desde Linux 2.6.24)"
2871
2872 #. type: Plain text
2873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2875 msgid ""
2876 "This file describes control groups to which the process with the "
2877 "corresponding PID belongs. The displayed information differs for cgroups "
2878 "version 1 and version 2 hierarchies."
2879 msgstr ""
2880
2881 #. type: Plain text
2882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2884 msgid ""
2885 "For each cgroup hierarchy of which the process is a member, there is one "
2886 "entry containing three colon-separated fields:"
2887 msgstr ""
2888
2889 #. type: Plain text
2890 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2891 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2892 #, no-wrap
2893 msgid "hierarchy-ID:controller-list:cgroup-path\n"
2894 msgstr ""
2895
2896 #. type: Plain text
2897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2899 msgid "For example:"
2900 msgstr ""
2901
2902 #. type: Plain text
2903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2905 #, no-wrap
2906 msgid "5:cpuacct,cpu,cpuset:/daemons\n"
2907 msgstr ""
2908
2909 #. type: Plain text
2910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2912 msgid "The colon-separated fields are, from left to right:"
2913 msgstr ""
2914
2915 #. type: Plain text
2916 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2917 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2918 msgid ""
2919 "For cgroups version 1 hierarchies, this field contains a unique hierarchy ID "
2920 "number that can be matched to a hierarchy ID in I</proc/cgroups>. For the "
2921 "cgroups version 2 hierarchy, this field contains the value 0."
2922 msgstr ""
2923
2924 #. type: Plain text
2925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2927 msgid ""
2928 "For cgroups version 1 hierarchies, this field contains a comma-separated "
2929 "list of the controllers bound to the hierarchy. For the cgroups version 2 "
2930 "hierarchy, this field is empty."
2931 msgstr ""
2932
2933 #. type: Plain text
2934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2936 msgid ""
2937 "This field contains the pathname of the control group in the hierarchy to "
2938 "which the process belongs. This pathname is relative to the mount point of "
2939 "the hierarchy."
2940 msgstr ""
2941
2942 #. type: SS
2943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2945 #, no-wrap
2946 msgid "/sys/kernel/cgroup files"
2947 msgstr ""
2948
2949 #. type: TP
2950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2952 #, no-wrap
2953 msgid "I</sys/kernel/cgroup/delegate> (since Linux 4.15)"
2954 msgstr ""
2955
2956 #. commit 01ee6cfb1483fe57c9cbd8e73817dfbf9bacffd3
2957 #. type: Plain text
2958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2960 msgid ""
2961 "This file exports a list of the cgroups v2 files (one per line) that are "
2962 "delegatable (i.e., whose ownership should be changed to the user ID of the "
2963 "delegatee). In the future, the set of delegatable files may change or grow, "
2964 "and this file provides a way for the kernel to inform user-space "
2965 "applications of which files must be delegated. As at Linux 4.15, one sees "
2966 "the following when inspecting this file:"
2967 msgstr ""
2968
2969 #. type: Plain text
2970 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2971 #: opensuse-tumbleweed
2972 #, no-wrap
2973 msgid ""
2974 "$B< cat /sys/kernel/cgroup/delegate>\n"
2975 "cgroup.procs\n"
2976 "cgroup.subtree_control\n"
2977 "cgroup.threads\n"
2978 msgstr ""
2979
2980 #. type: TP
2981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2983 #, no-wrap
2984 msgid "I</sys/kernel/cgroup/features> (since Linux 4.15)"
2985 msgstr ""
2986
2987 #. commit 5f2e673405b742be64e7c3604ed4ed3ac14f35ce
2988 #. type: Plain text
2989 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2990 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2991 msgid ""
2992 "Over time, the set of cgroups v2 features that are provided by the kernel "
2993 "may change or grow, or some features may not be enabled by default. This "
2994 "file provides a way for user-space applications to discover what features "
2995 "the running kernel supports and has enabled. Features are listed one per "
2996 "line:"
2997 msgstr ""
2998
2999 #. type: Plain text
3000 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
3001 #: opensuse-tumbleweed
3002 #, no-wrap
3003 msgid ""
3004 "$B< cat /sys/kernel/cgroup/features>\n"
3005 "nsdelegate\n"
3006 "memory_localevents\n"
3007 msgstr ""
3008
3009 #. type: Plain text
3010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3012 msgid "The entries that can appear in this file are:"
3013 msgstr ""
3014
3015 #. type: Plain text
3016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3018 msgid "The kernel supports the I<memory_localevents> mount option."
3019 msgstr ""
3020
3021 #. type: Plain text
3022 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3023 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3024 msgid "The kernel supports the I<nsdelegate> mount option."
3025 msgstr ""
3026
3027 #. type: TP
3028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3030 #, no-wrap
3031 msgid "I<memory_recursiveprot> (since Linux 5.7)"
3032 msgstr ""
3033
3034 #. commit 8a931f801340c2be10552c7b5622d5f4852f3a36
3035 #. type: Plain text
3036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3038 msgid "The kernel supports the I<memory_recursiveprot> mount option."
3039 msgstr ""
3040
3041 #. type: SH
3042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3044 #, no-wrap
3045 msgid "SEE ALSO"
3046 msgstr "VÉASE TAMBIÉN"
3047
3048 #. type: Plain text
3049 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3050 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3051 msgid ""
3052 "B<prlimit>(1), B<systemd>(1), B<systemd-cgls>(1), B<systemd-cgtop>(1), "
3053 "B<clone>(2), B<ioprio_set>(2), B<perf_event_open>(2), B<setrlimit>(2), "
3054 "B<cgroup_namespaces>(7), B<cpuset>(7), B<namespaces>(7), B<sched>(7), "
3055 "B<user_namespaces>(7)"
3056 msgstr ""
3057
3058 #. type: Plain text
3059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3061 msgid "The kernel source file I<Documentation/admin-guide/cgroup-v2.rst>."
3062 msgstr ""
3063
3064 #. type: TH
3065 #: debian-trixie
3066 #, no-wrap
3067 msgid "2024-06-15"
3068 msgstr "15 Junio 2024"
3069
3070 #. type: TH
3071 #: debian-trixie
3072 #, no-wrap
3073 msgid "Linux man-pages 6.9.1"
3074 msgstr "Páginas de Manual de Linux 6.9.1"
3075
3076 #. type: Plain text
3077 #: debian-trixie fedora-44 fedora-rawhide
3078 msgid ""
3079 "The initial release of the cgroups implementation was in Linux 2.6.24. Over "
3080 "time, various cgroup controllers have been added to allow the management of "
3081 "various types of resources. However, the development of these controllers "
3082 "was largely uncoordinated, with the result that many inconsistencies arose "
3083 "between controllers and management of the cgroup hierarchies became rather "
3084 "complex. A longer description of these problems can be found in the kernel "
3085 "source file I<Documentation/admin-guide/cgroup-v2.rst> (or I<Documentation/"
3086 "cgroup-v2.txt> in Linux 4.17 and earlier)."
3087 msgstr ""
3088
3089 #. type: Plain text
3090 #: debian-trixie
3091 msgid ""
3092 "It is not possible to mount the same controller against multiple cgroup "
3093 "hierarchies. For example, it is not possible to mount both the I<cpu> and "
3094 "I<cpuacct> controllers against one hierarchy, and to mount the I<cpu> "
3095 "controller alone against another hierarchy. It is possible to create "
3096 "multiple mount with exactly the same set of comounted controllers. However, "
3097 "in this case all that results is multiple mount points providing a view of "
3098 "the same hierarchy."
3099 msgstr ""
3100
3101 #. type: TP
3102 #: debian-trixie fedora-44 fedora-rawhide
3103 #, no-wrap
3104 msgid "I<cpu> (since Linux 2.6.24; B<CONFIG_CGROUP_SCHED>)"
3105 msgstr ""
3106
3107 #. type: Plain text
3108 #: debian-trixie fedora-44 fedora-rawhide
3109 msgid ""
3110 "Cgroups can be guaranteed a minimum number of \"CPU shares\" when a system "
3111 "is busy. This does not limit a cgroup's CPU usage if the CPUs are not "
3112 "busy. For further information, see I<Documentation/scheduler/sched-design-"
3113 "CFS.rst> (or I<Documentation/scheduler/sched-design-CFS.txt> in Linux 5.2 "
3114 "and earlier)."
3115 msgstr ""
3116
3117 #. type: Plain text
3118 #: debian-trixie fedora-44 fedora-rawhide
3119 msgid ""
3120 "In Linux 3.2, this controller was extended to provide CPU \"bandwidth\" "
3121 "control. If the kernel is configured with B<CONFIG_CFS_BANDWIDTH>, then "
3122 "within each scheduling period (defined via a file in the cgroup directory), "
3123 "it is possible to define an upper limit on the CPU time allocated to the "
3124 "processes in a cgroup. This upper limit applies even if there is no other "
3125 "competition for the CPU. Further information can be found in the kernel "
3126 "source file I<Documentation/scheduler/sched-bwc.rst> (or I<Documentation/"
3127 "scheduler/sched-bwc.txt> in Linux 5.2 and earlier)."
3128 msgstr ""
3129
3130 #. type: TP
3131 #: debian-trixie fedora-44 fedora-rawhide
3132 #, no-wrap
3133 msgid "I<cpuacct> (since Linux 2.6.24; B<CONFIG_CGROUP_CPUACCT>)"
3134 msgstr ""
3135
3136 #. type: Plain text
3137 #: debian-trixie fedora-44 fedora-rawhide
3138 msgid ""
3139 "Further information can be found in the kernel source file I<Documentation/"
3140 "admin-guide/cgroup-v1/cpuacct.rst> (or I<Documentation/cgroup-v1/"
3141 "cpuacct.txt> in Linux 5.2 and earlier)."
3142 msgstr ""
3143
3144 #. type: TP
3145 #: debian-trixie fedora-44 fedora-rawhide
3146 #, no-wrap
3147 msgid "I<cpuset> (since Linux 2.6.24; B<CONFIG_CPUSETS>)"
3148 msgstr ""
3149
3150 #. type: Plain text
3151 #: debian-trixie fedora-44 fedora-rawhide
3152 msgid ""
3153 "Further information can be found in the kernel source file I<Documentation/"
3154 "admin-guide/cgroup-v1/cpusets.rst> (or I<Documentation/cgroup-v1/"
3155 "cpusets.txt> in Linux 5.2 and earlier)."
3156 msgstr ""
3157
3158 #. type: TP
3159 #: debian-trixie fedora-44 fedora-rawhide
3160 #, no-wrap
3161 msgid "I<memory> (since Linux 2.6.25; B<CONFIG_MEMCG>)"
3162 msgstr ""
3163
3164 #. type: Plain text
3165 #: debian-trixie fedora-44 fedora-rawhide
3166 msgid ""
3167 "Further information can be found in the kernel source file I<Documentation/"
3168 "admin-guide/cgroup-v1/memory.rst> (or I<Documentation/cgroup-v1/memory.txt> "
3169 "in Linux 5.2 and earlier)."
3170 msgstr ""
3171
3172 #. type: TP
3173 #: debian-trixie fedora-44 fedora-rawhide
3174 #, no-wrap
3175 msgid "I<devices> (since Linux 2.6.26; B<CONFIG_CGROUP_DEVICE>)"
3176 msgstr ""
3177
3178 #. type: Plain text
3179 #: debian-trixie fedora-44 fedora-rawhide
3180 msgid ""
3181 "Further information can be found in the kernel source file I<Documentation/"
3182 "admin-guide/cgroup-v1/devices.rst> (or I<Documentation/cgroup-v1/"
3183 "devices.txt> in Linux 5.2 and earlier)."
3184 msgstr ""
3185
3186 #. type: TP
3187 #: debian-trixie fedora-44 fedora-rawhide
3188 #, no-wrap
3189 msgid "I<freezer> (since Linux 2.6.28; B<CONFIG_CGROUP_FREEZER>)"
3190 msgstr ""
3191
3192 #. type: Plain text
3193 #: debian-trixie fedora-44 fedora-rawhide
3194 msgid ""
3195 "Further information can be found in the kernel source file I<Documentation/"
3196 "admin-guide/cgroup-v1/freezer-subsystem.rst> (or I<Documentation/cgroup-v1/"
3197 "freezer-subsystem.txt> in Linux 5.2 and earlier)."
3198 msgstr ""
3199
3200 #. type: TP
3201 #: debian-trixie fedora-44 fedora-rawhide
3202 #, no-wrap
3203 msgid "I<net_cls> (since Linux 2.6.29; B<CONFIG_CGROUP_NET_CLASSID>)"
3204 msgstr ""
3205
3206 #. type: Plain text
3207 #: debian-trixie fedora-44 fedora-rawhide
3208 msgid ""
3209 "Further information can be found in the kernel source file I<Documentation/"
3210 "admin-guide/cgroup-v1/net_cls.rst> (or I<Documentation/cgroup-v1/"
3211 "net_cls.txt> in Linux 5.2 and earlier)."
3212 msgstr ""
3213
3214 #. type: TP
3215 #: debian-trixie fedora-44 fedora-rawhide
3216 #, no-wrap
3217 msgid "I<blkio> (since Linux 2.6.33; B<CONFIG_BLK_CGROUP>)"
3218 msgstr ""
3219
3220 #. type: Plain text
3221 #: debian-trixie fedora-44 fedora-rawhide
3222 msgid ""
3223 "Further information can be found in the kernel source file I<Documentation/"
3224 "admin-guide/cgroup-v1/blkio-controller.rst> (or I<Documentation/cgroup-v1/"
3225 "blkio-controller.txt> in Linux 5.2 and earlier)."
3226 msgstr ""
3227
3228 #. type: TP
3229 #: debian-trixie fedora-44 fedora-rawhide
3230 #, no-wrap
3231 msgid "I<perf_event> (since Linux 2.6.39; B<CONFIG_CGROUP_PERF>)"
3232 msgstr ""
3233
3234 #. type: TP
3235 #: debian-trixie fedora-44 fedora-rawhide
3236 #, no-wrap
3237 msgid "I<net_prio> (since Linux 3.3; B<CONFIG_CGROUP_NET_PRIO>)"
3238 msgstr ""
3239
3240 #. type: Plain text
3241 #: debian-trixie fedora-44 fedora-rawhide
3242 msgid ""
3243 "Further information can be found in the kernel source file I<Documentation/"
3244 "admin-guide/cgroup-v1/net_prio.rst> (or I<Documentation/cgroup-v1/"
3245 "net_prio.txt> in Linux 5.2 and earlier)."
3246 msgstr ""
3247
3248 #. type: TP
3249 #: debian-trixie fedora-44 fedora-rawhide
3250 #, no-wrap
3251 msgid "I<hugetlb> (since Linux 3.5; B<CONFIG_CGROUP_HUGETLB>)"
3252 msgstr ""
3253
3254 #. type: Plain text
3255 #: debian-trixie fedora-44 fedora-rawhide
3256 msgid ""
3257 "Further information can be found in the kernel source file I<Documentation/"
3258 "admin-guide/cgroup-v1/hugetlb.rst> (or I<Documentation/cgroup-v1/"
3259 "hugetlb.txt> in Linux 5.2 and earlier)."
3260 msgstr ""
3261
3262 #. type: TP
3263 #: debian-trixie fedora-44 fedora-rawhide
3264 #, no-wrap
3265 msgid "I<pids> (since Linux 4.3; B<CONFIG_CGROUP_PIDS>)"
3266 msgstr ""
3267
3268 #. type: Plain text
3269 #: debian-trixie fedora-44 fedora-rawhide
3270 msgid ""
3271 "Further information can be found in the kernel source file I<Documentation/"
3272 "admin-guide/cgroup-v1/pids.rst> (or I<Documentation/cgroup-v1/pids.txt> in "
3273 "Linux 5.2 and earlier)."
3274 msgstr ""
3275
3276 #. type: TP
3277 #: debian-trixie fedora-44 fedora-rawhide
3278 #, no-wrap
3279 msgid "I<rdma> (since Linux 4.11; B<CONFIG_CGROUP_RDMA>)"
3280 msgstr ""
3281
3282 #. type: Plain text
3283 #: debian-trixie fedora-44 fedora-rawhide
3284 msgid ""
3285 "Further information can be found in the kernel source file I<Documentation/"
3286 "admin-guide/cgroup-v1/rdma.rst> (or I<Documentation/cgroup-v1/rdma.txt> in "
3287 "Linux 5.2 and earlier)."
3288 msgstr ""
3289
3290 #. type: Plain text
3291 #: debian-trixie fedora-44 fedora-rawhide
3292 msgid ""
3293 "For more changes, see the I<Documentation/admin-guide/cgroup-v2.rst> file in "
3294 "the kernel source (or I<Documentation/cgroup-v2.txt> in Linux 4.17 and "
3295 "earlier)."
3296 msgstr ""
3297
3298 #. commit 9852ae3fe5293264f01c49f2571ef7688f7823ce
3299 #. type: Plain text
3300 #: debian-trixie
3301 msgid ""
3302 "The I<memory.events> should show statistics only for the cgroup itself, and "
3303 "not for any descendant cgroups. This was the behavior before Linux 5.2. "
3304 "Starting in Linux 5.2, the default behavior is to include statistics for "
3305 "descendant cgroups in I<memory.events>, and this mount option can be used to "
3306 "revert to the legacy behavior. This option is system wide and can be set on "
3307 "mount or modified through remount only from the initial mount namespace; it "
3308 "is silently ignored in noninitial namespaces."
3309 msgstr ""
3310
3311 #. type: Plain text
3312 #: debian-trixie fedora-44 fedora-rawhide
3313 msgid ""
3314 "The following controllers, documented in the kernel source file "
3315 "I<Documentation/admin-guide/cgroup-v2.rst> (or I<Documentation/cgroup-"
3316 "v2.txt> in Linux 4.17 and earlier), are supported in cgroups version 2:"
3317 msgstr ""
3318
3319 #. type: Plain text
3320 #: debian-trixie fedora-44 fedora-rawhide
3321 #, no-wrap
3322 msgid ""
3323 "$ B<cat mygrp/cgroup.events>\n"
3324 "populated 1\n"
3325 "frozen 0\n"
3326 msgstr ""
3327
3328 #. type: Plain text
3329 #: debian-trixie fedora-44 fedora-rawhide
3330 msgid ""
3331 "One of the consequences of the above pathways to creating a threaded subtree "
3332 "is that the threaded root cgroup can be a parent only to I<threaded> (and "
3333 "I<domain invalid>) cgroups. The threaded root cgroup can't be a parent of "
3334 "a I<domain> cgroups, and a I<threaded> cgroup can't have a sibling that is a "
3335 "I<domain> cgroup."
3336 msgstr ""
3337
3338 #. type: Plain text
3339 #: debian-trixie fedora-44 fedora-rawhide
3340 #, no-wrap
3341 msgid ""
3342 "$ B<cat /sys/kernel/cgroup/delegate>\n"
3343 "cgroup.procs\n"
3344 "cgroup.subtree_control\n"
3345 "cgroup.threads\n"
3346 msgstr ""
3347
3348 #. type: Plain text
3349 #: debian-trixie fedora-44 fedora-rawhide
3350 #, no-wrap
3351 msgid ""
3352 "$ B<cat /sys/kernel/cgroup/features>\n"
3353 "nsdelegate\n"
3354 "memory_localevents\n"
3355 msgstr ""
3356
3357 #. type: TH
3358 #: fedora-44 fedora-rawhide
3359 #, no-wrap
3360 msgid "2024-12-04"
3361 msgstr "4 Diciembre 2024"
3362
3363 #. type: TH
3364 #: fedora-44 fedora-rawhide
3365 #, no-wrap
3366 msgid "Linux man-pages 6.13"
3367 msgstr "Páginas de Manual de Linux 6.13"
3368
3369 #. type: TH
3370 #: mageia-cauldron
3371 #, no-wrap
3372 msgid "Linux man-pages 6.17"
3373 msgstr "Páginas de Manual de Linux 6.17"
3374
3375 #. type: TH
3376 #: opensuse-leap-16-1 opensuse-tumbleweed
3377 #, no-wrap
3378 msgid "Linux man-pages (unreleased)"
3379 msgstr "Páginas de Manual de Linux (no publicadas)"