fix: cpu-shares → cpu-quota 하드 캡(2코어)으로 변경
This commit is contained in:
@@ -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 \
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user