From eb2ae34c80f6b8ffb1bdfc55287d967c6e18cd81 Mon Sep 17 00:00:00 2001 From: "Daniel, Dao Quang Minh" Date: Thu, 11 Dec 2014 13:59:10 -0500 Subject: [PATCH] move cgroup requirements to planned additions also document that the executor will only try to remove all the children in a best-effort way. Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh (github: dqminh) --- SPEC.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index 85b575023..d83d758dd 100644 --- a/SPEC.md +++ b/SPEC.md @@ -333,6 +333,8 @@ the container is unpaused. The started process will only run when the container primary process (PID 1) is running, and will not be restarted when the container is restarted. +#### Planned additions + The started process will have its own cgroups nested inside the container's cgroups. This is used for process tracking and optionally resource allocation handling for the new process. Freezer cgroup is required, the rest of the cgroups @@ -340,5 +342,5 @@ are optional. The process executor must place its pid inside the correct cgroups before starting the process. This is done so that no child processes or threads can escape the cgroups. -When the process stopped, all child processes spawned by the process will be -stopped and the process's cgroups will be removed. +When the process is stopped, the process executor will try (in a best-effort way) +to stop all its children and remove the sub-cgroups.