runtime-rs: moving only vCPU threads into sandbox controller

when overhead controller exists, just contrain vCPU threads
in sandbox controller

Fixes:#5760

Signed-off-by: gaohuatao <gaohuatao@bytedance.com>
This commit is contained in:
gaohuatao 2022-11-25 15:22:14 +08:00
parent f02bb1a9cb
commit 2edbe389d8

View File

@ -179,7 +179,7 @@ impl CgroupsResource {
// All vCPU threads move to the sandbox controller.
for tid in tids {
self.cgroup_manager
.add_task_by_tgid(CgroupPid { pid: *tid as u64 })?
.add_task(CgroupPid { pid: *tid as u64 })?
}
Ok(())