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 \ .