Repository navigation
Changes
- macOS (Apple Silicon / Metal /
launchd) Platform & Service Support:- Added Bash 4.3+ bootstrap auto-re-exec for macOS (
/bin/bash3.2 -> Homebrew/MacPorts/Nix Bash 4.3+ with interactivebrew install bashprompt), HomebrewPATHand formula helpers (pkg_installed,pkg_available,pkg_install),has_working_python3(guarding macOS/usr/bin/python3Xcode CLT stub),file_mtime, BSDwc -ltrimming, 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,pmsetHigh Power Mode capability, and MacBook /InternalBatterylaptop detection. - Implemented
launchdservice management (install_service,service_ctl,remove_service,service_installed,unit_enabled,unit_active): mapsstrata.serviceto user LaunchAgentcom.strata.server(~/Library/LaunchAgents/com.strata.server.plistwithAbandonProcessGroup=true,~/Library/Logs/strata*.log, and dynamic~/.config/strata/macos-metal-env.shloading) and root helpers to system LaunchDaemons (com.strata.<name>). - Added
MACOS_ALLOWED_STEPSfiltering inbuild_active_stepsand surfacedformat_strata_hw_warnings(Intel Macx86_64, macOS< 15,< 16 GiBunified memory, and16–48 GiBSSD expert streaming tier) in both the TUI and--check.
- Added Bash 4.3+ bootstrap auto-re-exec for macOS (
- macOS Optimization Steps:
macos_wired_limit(5★,[OPT]): Raisessysctl iogpu.wired_limit_mbabove 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-cAC power on MacBooks) with idempotent baseline preservation.macos_spotlight_exclude(4★,[L]): Places reversible.metadata_never_indexmarkers in Strata data, cache, and model folders (~/.local/share/strata,~/.cache/strata,~/.strata,~/Documents/Strata, plus optional custom paths) to prevent Spotlightmds_storesSSD 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.shwith optional~/.zprofileintegration.prevent_sleep(1★, excluded from[L]): Extended to macOS viapmset(sleep 0,standby 0,autopoweroff 0,powernap 0, and optional closed-clamshelldisablesleep 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 /applesmcand configures either an aggressivembpfanthermal curve or a persistentapplesmcsysfs 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 Macapplesmcfan steps. - Live Dashboard & Benchmark Power Sampler: Added macOS CPU (
host_statistics/ps), RAM (vm_stat), Apple Silicon GPU utilization & wired unified memory (ioreg -c IOAcceleratorwithRenderer Utilization %andAlloc system memoryfallbacks), andpowermetricsGPU/CPU/Combined/ANE wattage & thermal pressure inprint_live_statsandstart_bench_power_sampler, plusapplesmcCPU temperature sensor labels on Linux.
Full Changelog: v1.5.0...v1.6.0