fix: cpu-shares → cpu-quota 하드 캡(2코어)으로 변경

This commit is contained in:
gm
2026-06-10 00:33:26 +09:00
parent d5c20f1cc0
commit 822cbc52f2

View File

@@ -46,10 +46,13 @@ case "$1" in
--build|*) --build|*)
echo "==> flash-attn-builder 이미지 빌드..." echo "==> flash-attn-builder 이미지 빌드..."
cd "$(dirname "$0")" cd "$(dirname "$0")"
# --cpu-shares 512: 다른 서비스 대비 절반 우선순위 (유휴 시 자동 해제) # --cpu-quota/period: 2코어 하드 캡 (유휴시에도 초과 불가)
# --build-arg MAX_JOBS=2: 컴파일러 병렬도 제한 (기본 2, 조정 가능) # --cpu-shares 512: 경쟁 시 추가로 낮은 우선순위
# MAX_JOBS=2: 컴파일러 병렬도를 CPU 캡에 맞춤
podman build \ podman build \
--cpu-shares 512 \ --cpu-period=100000 \
--cpu-quota=200000 \
--cpu-shares=512 \
--tag "localhost/flash-attn-builder:${TAG}" \ --tag "localhost/flash-attn-builder:${TAG}" \
--file Containerfile \ --file Containerfile \
. .