rayray916 commited on
Commit
a7ebeb1
·
verified ·
1 Parent(s): 162b3da

pod-onstart: make 160 GiB host-RAM gate opt-in (FN_MIN_RAM_GB, default 0 = no cap)

Browse files

Removes the hard >=160 GiB host RAM halt so lower-RAM hosts can boot; can be re-enabled per pod with FN_MIN_RAM_GB.

Files changed (1) hide show
  1. pod-onstart.sh +3 -3
pod-onstart.sh CHANGED
@@ -33,12 +33,12 @@ if [ -f "$TSUP" ]; then
33
  sed -i 's/--https=443/--http=80/g' "$TSUP"
34
  echo "onstart: ts-up.sh patched (no --ephemeral, http serve)"
35
  fi
36
- echo "=== onstart: RAM gate (this profile needs >=160 GiB host RAM) ==="
37
  MEM_KB=$(awk '/MemTotal/{print $2}' /proc/meminfo)
38
  MEM_GB=$(( MEM_KB / 1048576 ))
39
- MIN_GB=${FN_MIN_RAM_GB:-160}
40
  echo "onstart: host RAM ${MEM_GB} GiB (minimum ${MIN_GB} GiB)"
41
- if [ "$MEM_GB" -lt "$MIN_GB" ]; then
42
  echo "onstart: FATAL host RAM ${MEM_GB} GiB < ${MIN_GB} GiB - the PLE table + 32GB HiCache + weight load will OOM; halting before weights pull" >&2
43
  exit 4
44
  fi
 
33
  sed -i 's/--https=443/--http=80/g' "$TSUP"
34
  echo "onstart: ts-up.sh patched (no --ephemeral, http serve)"
35
  fi
36
+ echo "=== onstart: RAM gate (host-RAM minimum; 0 = no cap) ==="
37
  MEM_KB=$(awk '/MemTotal/{print $2}' /proc/meminfo)
38
  MEM_GB=$(( MEM_KB / 1048576 ))
39
+ MIN_GB=${FN_MIN_RAM_GB:-0}
40
  echo "onstart: host RAM ${MEM_GB} GiB (minimum ${MIN_GB} GiB)"
41
+ if [ "$MIN_GB" -gt 0 ] && [ "$MEM_GB" -lt "$MIN_GB" ]; then
42
  echo "onstart: FATAL host RAM ${MEM_GB} GiB < ${MIN_GB} GiB - the PLE table + 32GB HiCache + weight load will OOM; halting before weights pull" >&2
43
  exit 4
44
  fi