From 7f83996d6c99f6e54be444e48ac07670c1439147 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Mon, 10 Jun 2024 10:37:45 -0500 Subject: [PATCH] Added sudo to cgset? Signed-off-by: Roger Barker --- .github/workflows/push-images.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-images.yaml b/.github/workflows/push-images.yaml index 90a853a0..1ad49ee8 100644 --- a/.github/workflows/push-images.yaml +++ b/.github/workflows/push-images.yaml @@ -95,9 +95,9 @@ jobs: echo ::endgroup:: echo "::group::Set Control Group Limits" - cgset -r cpu.shares=500 ${AGENT_GROUP_NAME} - cgset -r memory.limit_in_bytes=${AGENT_MEM_LIMIT} ${AGENT_GROUP_NAME} - cgset -r memory.memsw.limit_in_bytes=${AGENT_MEM_LIMIT} ${AGENT_GROUP_NAME} + sudo cgset -r cpu.shares=500 ${AGENT_GROUP_NAME} + sudo cgset -r memory.limit_in_bytes=${AGENT_MEM_LIMIT} ${AGENT_GROUP_NAME} + sudo cgset -r memory.memsw.limit_in_bytes=${AGENT_MEM_LIMIT} ${AGENT_GROUP_NAME} echo "::endgroup::" echo "::group::Move Runner Processes to Control Group"