Skip to content

v1.6.0

Latest

Choose a tag to compare

@bramvanoploo bramvanoploo released this 20 Nov 14:45

Changes

  • macOS (Apple Silicon / Metal / launchd) Platform & Service Support:
    • Added Bash 4.3+ bootstrap auto-re-exec for macOS (/bin/bash 3.2 -> Homebrew/MacPorts/Nix Bash 4.3+ with interactive brew install bash prompt), Homebrew PATH and formula helpers (pkg_installed, pkg_available, pkg_install), has_working_python3 (guarding macOS /usr/bin/python3 Xcode CLT stub), file_mtime, BSD wc -l trimming, and Bash 5.2+ patsub_replacement-safe _xml_escape.
    • Added Darwin / Apple Silicon hardware detection (detect_platform_basics, detect_environment): SoC brand, P+E core split, unified memory capacity, GPU core count and Metal version (system_profiler SPDisplaysDataType), iogpu.wired_limit_mb, pmset High Power Mode capability, and MacBook / InternalBattery laptop detection.
    • Implemented launchd service management (install_service, service_ctl, remove_service, service_installed, unit_enabled, unit_active): maps strata.service to user LaunchAgent com.strata.server (~/Library/LaunchAgents/com.strata.server.plist with AbandonProcessGroup=true, ~/Library/Logs/strata*.log, and dynamic ~/.config/strata/macos-metal-env.sh loading) and root helpers to system LaunchDaemons (com.strata.<name>).
    • Added MACOS_ALLOWED_STEPS filtering in build_active_steps and surfaced format_strata_hw_warnings (Intel Mac x86_64, macOS < 15, < 16 GiB unified memory, and 16–48 GiB SSD expert streaming tier) in both the TUI and --check.
  • macOS Optimization Steps:
    • macos_wired_limit (5★, [OPT]): Raises sysctl iogpu.wired_limit_mb above macOS's ~75% Metal residency cap with per-tier safe OS headroom recommendations (24–128+ GiB) and persists it via LaunchDaemon (com.strata.macos-wired-limit).
    • macos_power_mode (4★, excluded from [L]): Enables High Power Mode (pmset powermode 2, where supported on Max/Ultra Macs) and disables Low Power Mode (scoped to -c AC power on MacBooks) with idempotent baseline preservation.
    • macos_spotlight_exclude (4★, [L]): Places reversible .metadata_never_index markers in Strata data, cache, and model folders (~/.local/share/strata, ~/.cache/strata, ~/.strata, ~/Documents/Strata, plus optional custom paths) to prevent Spotlight mds_stores SSD I/O contention during expert streaming.
    • macos_metal_tuning (4★, [OPT]): Configures Strata Metal engine environment switches (STRATA_METAL_F16=1, STRATA_MACOS_SENSORS=1, STRATA_METAL_PROMPT_CHUNK, STRATA_METAL_ARENA_GB, STRATA_METAL_WIRE_ARENA=0) in ~/.config/strata/macos-metal-env.conf & macos-metal-env.sh with optional ~/.zprofile integration.
    • prevent_sleep (1★, excluded from [L]): Extended to macOS via pmset (sleep 0, standby 0, autopoweroff 0, powernap 0, and optional closed-clamshell disablesleep 1) with idempotent snapshot and restore.
  • Apple Hardware on Linux & Live Telemetry:
    • apple_smc_cooling (3★, excluded from [L]): Detects Intel Macs running Linux via DMI / applesmc and configures either an aggressive mbpfan thermal curve or a persistent applesmc sysfs manual fan speed floor, restoring automatic SMC control on revert.
    • Asahi Linux Detection: Detects Apple Silicon running Linux (aarch64 + apple,* device-tree) and displays an advisory note regarding upstream Strata Metal / Linux ARM64 engine support while hiding Intel Mac applesmc fan steps.
    • Live Dashboard & Benchmark Power Sampler: Added macOS CPU (host_statistics / ps), RAM (vm_stat), Apple Silicon GPU utilization & wired unified memory (ioreg -c IOAccelerator with Renderer Utilization % and Alloc system memory fallbacks), and powermetrics GPU/CPU/Combined/ANE wattage & thermal pressure in print_live_stats and start_bench_power_sampler, plus applesmc CPU temperature sensor labels on Linux.

Full Changelog: v1.5.0...v1.6.0