ARTIFACT // DIAGNOSE-UMA-AND-ARC-GPU.SH (SHELL)
Cross-Vendor New Hardware GPU Probe (AMD Strix Halo GTT · Intel Arc B580 · NVIDIA UMA) (diagnose-uma-and-arc-gpu.sh)
Audits AMD Strix Halo 15.5GB GTT ceiling & deprecated amdgpu.gttsize flags, Intel Arc B580 /dev/dri render group permissions, and Linux UMA page-cache pressure.
[KEY VERIFIED TAKEAWAY / TL;DR]This reproducible configuration artifact "Cross-Vendor New Hardware GPU Probe (AMD Strix Halo GTT · Intel Arc B580 · NVIDIA UMA)" (diagnose-uma-and-arc-gpu.sh, SHELL) is paired with Tinker AI Lab's hardware-verified guide "intel-arc-b580-and-amd-uma-gtt-vram-allocation-troubleshooting". It exposes 2 customizable browser variables (DRI_NODE=/dev/dri/renderD128, MIN_FREE_GB=24) with loopback-first security defaults.
04 // DIAGNOSISAPI & Deployment Troubleshooting· Verified: 2026-10-27
Browse All 42 Artifacts →diagnose-uma-and-arc-gpu.sh
View Paired Guide →Cross-Vendor New Hardware GPU Probe (AMD Strix Halo GTT · Intel Arc B580 · NVIDIA UMA)
Audits AMD Strix Halo 15.5GB GTT ceiling & deprecated amdgpu.gttsize flags, Intel Arc B580 /dev/dri render group permissions, and Linux UMA page-cache pressure.
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/usr/bin/env bash
# Tinker AI — New Hardware GPU & Unified Memory Diagnostic Probe (Guide #24)
set -euo pipefail
DRI_DEV="/dev/dri/renderD128"
MIN_GB="24"
echo "=== [1/4] Kernel Boot Parameters & Deprecated Flag Check ==="
CMDLINE=$(cat /proc/cmdline 2>/dev/null || echo "N/A")
echo "Kernel: $(uname -r) | Cmdline: $CMDLINE"
if echo "$CMDLINE" | grep -q "amdgpu.gttsize"; then
echo "[WARN] Deprecated 'amdgpu.gttsize' detected! On Linux 6.14+, migrate to 'amdttm.pages_limit' + 'amdttm.page_pool_size' or BIOS UMA Frame Buffer."
fi
echo "=== [2/4] AMD Strix Halo (gfx1151) / ROCm TTM Memory Ceiling ==="
if [ -f /sys/module/amdttm/parameters/pages_limit ]; then
PAGES=$(cat /sys/module/amdttm/parameters/pages_limit)
POOL_GB=$(( PAGES * 4 / 1024 / 1024 ))
echo "amdttm.pages_limit = $PAGES (~$POOL_GB GB)"
if [ "$POOL_GB" -lt "$MIN_GB" ]; then
echo "[FAIL] Addressable GTT pool ($POOL_GB GB) is below required $MIN_GB GB!"
fi
fi
echo "=== [3/4] Intel Arc B580 (Xe2) & Linux DRI Render Group Audit ==="
if [ -e "$DRI_DEV" ]; then
RENDER_GID=$(stat -c "%g" "$DRI_DEV" 2>/dev/null || stat -f "%g" "$DRI_DEV")
echo "Found $DRI_DEV -> Host render GID is $RENDER_GID (Pass '--group-add $RENDER_GID' to Docker)"
else
echo "No $DRI_DEV device found on this host."
fi
echo "=== [4/4] Unified Memory (DGX Spark / Strix Halo / Jetson) Page Cache Pressure ==="
free -g || vm_stat || true
echo "If 'buff/cache' is holding >20GB on a Unified Memory Linux host and causing cudaMallocManaged/ROCm OOM, run:"
echo " sync && echo 3 | sudo tee /proc/sys/vm/drop_caches"
PARAMETER SPECIFICATION // 参数化变量规范说明表
Customizable Parameter Reference for diagnose-uma-and-arc-gpu.sh
This SHELL artifact exposes 2 template variables compiled client-side in your browser.
| Template Token | Parameter Description | Verified Default | Example Format |
|---|---|---|---|
{{DRI_NODE}} | Linux DRI Render Device Path | /dev/dri/renderD128 | /dev/dri/renderD128 |
{{MIN_FREE_GB}} | Minimum Required Allocatable Memory (GB) | 24 | 24 |
PAIRED HARDWARE MANIFEST // 配套实测环境与边界记录
Verified Environment for "New Hardware GPU & Unified Memory Troubleshooting: Intel Arc B580 Docker Fallback, AMD Strix Halo 15.5GB Cap & DGX Spark Page Cache OOM"
Tested Hardware & OS
Intel Arc B580 (12GB GDDR6 Xe2) · AMD Ryzen AI Max+ 395 (128GB UMA) · NVIDIA DGX Spark (GB10 128GB Coherent Unified Memory)
Pinned Stack & Model Versions
Linux Kernel 6.12+ (xe) / 6.16.9+ (amdttm)Docker Engine 27.5Ollama 0.6.2 / llama.cpp Vulkan & SYCLNVIDIA Driver 570.x (GB10 UMA)
Offline Boundary (100% Local Kernel & Runtime Diagnostics)
All diagnostic probes inspect local `/sys`, `/proc`, `/dev/dri`, and container runtime namespaces offline.
Known Operational Limits & Failure Modes
- Intel Arc B580 (12GB) enforces a single-allocation buffer ceiling on older Level Zero runtimes unless `SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1` or Vulkan (`GGML_VK_VISIBLE_DEVICES=0`) is used.
- On Linux Unified Memory hosts (NVIDIA DGX Spark 128GB & Jetson Orin Nano Super), `free -h` showing 50GB "available" does NOT guarantee `cudaMallocManaged` can allocate 50GB instantaneously if `buff/cache` holds un-evicted `.gguf` mmap pages.
DEPLOYMENT CHECKLIST // 配置落地核验步骤
3-Step Verification Checklist After Deploying diagnose-uma-and-arc-gpu.sh
- On Intel Arc B580 / Linux AMD GPUs, verified `/dev/dri/renderD128` numeric GID is passed to Docker via `--group-add`.
- Confirmed `/proc/cmdline` does not rely on deprecated `amdgpu.gttsize` on Linux 6.14+ kernels.
- Configured `vm.vfs_cache_pressure=200` (and flushed `drop_caches=3` before 70B+ loads) on Unified Memory Linux hosts.