From 822cbc52f222abdc6dcf825d8485d4073d0aa7cd Mon Sep 17 00:00:00 2001 From: gm Date: Wed, 10 Jun 2026 00:33:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cpu-shares=20=E2=86=92=20cpu-quota=20?= =?UTF-8?q?=ED=95=98=EB=93=9C=20=EC=BA=A1(2=EC=BD=94=EC=96=B4)=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push-to-gitea.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/push-to-gitea.sh b/push-to-gitea.sh index 43c1382..e2609f4 100755 --- a/push-to-gitea.sh +++ b/push-to-gitea.sh @@ -46,10 +46,13 @@ case "$1" in --build|*) echo "==> flash-attn-builder 이미지 빌드..." cd "$(dirname "$0")" - # --cpu-shares 512: 다른 서비스 대비 절반 우선순위 (유휴 시 자동 해제) - # --build-arg MAX_JOBS=2: 컴파일러 병렬도 제한 (기본 2, 조정 가능) + # --cpu-quota/period: 2코어 하드 캡 (유휴시에도 초과 불가) + # --cpu-shares 512: 경쟁 시 추가로 낮은 우선순위 + # MAX_JOBS=2: 컴파일러 병렬도를 CPU 캡에 맞춤 podman build \ - --cpu-shares 512 \ + --cpu-period=100000 \ + --cpu-quota=200000 \ + --cpu-shares=512 \ --tag "localhost/flash-attn-builder:${TAG}" \ --file Containerfile \ .