You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce CPUAffinity process property instead of execCPUAffinity
This change introduces more generic `CPUAffinity` property of `Process`
to specify desired CPU affinities while performing operations on create,
start and exec operations.
Signed-off-by: Alexander Kanevskiy <[email protected]>
Copy file name to clipboardExpand all lines: config.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -340,18 +340,38 @@ For Linux-based systems, the `process` object supports the following process-spe
340
340
341
341
***`class`** (string, REQUIRED) specifies the I/O scheduling class. Possible values are `IOPRIO_CLASS_RT`, `IOPRIO_CLASS_BE`, and `IOPRIO_CLASS_IDLE`.
342
342
***`priority`** (int, REQUIRED) specifies the priority level within the class. The value should be an integer ranging from 0 (highest) to 7 (lowest).
343
-
***`execCPUAffinity`** (object, OPTIONAL) specifies CPU affinity used to execute the process.
343
+
***`CPUAffinity`** (object, OPTIONAL) specifies CPU affinity used to execute processes in the runtime and the container.
344
+
All the properties in this setting expects as argument a string that contain a comma-separated list, with dashes to represent
345
+
ranges. For example, `0-3,7` represents CPUs 0,1,2,3, and 7. If omitted or empty for particular [lifecycle](runtime.md#lifecycle) stage,
346
+
the runtime SHOULD NOT change process' CPU affinity, and the affinity is determined by the Linux kernel.
347
+
The following properties are available:
348
+
***`runtimeCreate`** (string, OPTIONAL) is a list of CPUs the runtime parent process should run on during the runtime creation stage,
349
+
before entering the container's namespaces or cgroups. CPU affinity should be applied on early stages of container creation,
350
+
so that any potential CPU consuming operations inside runtime (e.g. [`createRuntime` hooks](#createRuntime-hooks))
351
+
will be affinitized to specified list of CPUs.
352
+
***`containerCreate`** (string, OPTIONAL) is a list of CPUs the process should run on during the container creation stage,
353
+
after entering the container's namespaces but before the user process or any of [`createContainer` hooks](#createContainer-hooks) are executed.
354
+
***`containerStart`** (string, OPTIONAL) is a list of CPUs the process should be shoud run on during the container start stage,
355
+
inside the container's namespace during `start` operation. The affinity should be applied before executing [`startContainer` hooks](#startContainer-hooks).
356
+
***`runtimeExec`** (string, OPTIONAL) is a list of CPUs a runtime parent
357
+
process to be run during `exec` operation, before the transition to container's
358
+
cgroup.
359
+
***`containerExec`** (string, OPTIONAL) is a list of CPUs the process will be run on during `exec` operationon
360
+
after the transition to container's cgroup.
361
+
***`execCPUAffinity`** (object, OPTIONAL, **DEPRECATED**) specifies CPU affinity used to execute the process.
344
362
This setting is not applicable to the container's init process.
345
363
The following properties are available:
346
364
***`initial`** (string, OPTIONAL) is a list of CPUs a runtime parent
347
365
process to be run on initially, before the transition to container's
348
366
cgroup. This is a a comma-separated list, with dashes to represent
349
367
ranges. For example, `0-3,7` represents CPUs 0,1,2,3, and 7.
368
+
Deprecated in favor of `runtimeExec` in `CPUAffinity`.
350
369
***`final`** (string, OPTIONAL) is a list of CPUs the process will be run
351
370
on after the transition to container's cgroup. The format is the same as
352
371
for `initial`. If omitted or empty, runtime SHOULD NOT change process'
353
372
CPU affinity after the process is moved to container's cgroup, and the
354
373
final affinity is determined by the Linux kernel.
374
+
Deprecated in favor of `containerExec` in `CPUAffinity`.
355
375
356
376
### <aname="configZOSProcess" />z/OS Process
357
377
@@ -435,9 +455,11 @@ _Note: symbolic name for uid and gid, such as uname and gname respectively, are
0 commit comments