Verba/Rapida

Experiments #170f

The aligned single-read kernel's per-byte gap (row 170e): its pass 1 reads at about 116 against the port's...

done

What was tested

The aligned single-read kernel's per-byte gap (row 170e): its pass 1 reads at about 116 against the port's 162 GB/s. A counter read of both pass 1 kernels at 8k (Metal capture: memory throughput, occupancy, ALU and load instruction counts), no engine change, to find what holds the gap before any further kernel row (`2026-11-19-mac-r170-global-kv-once/README.md` § Result, row 170e)

Model and setup

the best

Expected gain

none by itself (a diagnostic)

Where the idea came from

row 170e

Outcome

done 2026-11-19: diagnostic; the M4 reports no GPU counter headless (every counter and shader-profiler table of the xctrace recording holds 0 rows); both pass 1 kernels run at the Maximum performance state; no further row 170 kernel work (`2026-11-19-mac-r170-global-kv-once/README.md` § Result, row 170f)

Lesson

on the rented M4, xctrace's Metal GPU Counters instrument records a trace whose counter tables are all empty (both counter profiles, shader profiler included) while the Metal System Trace part works; the only GPU reading it adds is the performance state, Maximum for both pass 1 kernels alike. Per-kernel rates on this Mac come from bytes over split-mode time; GPU counters would need another path (an in-process counter sample buffer), not tried.

Adopted

no (diagnostic; no counter data)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built