Skip to content

Commit

Permalink
Added sudo to cgset?
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
  • Loading branch information
rbarkerSL committed Jun 10, 2024
1 parent f1329db commit 7f83996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7f83996

Please sign in to comment.