Repository navigation
Commit 7808bee
committed
Metal registry: buffers join and leave the residency set staged, committed by the idle keepalive between requests
With FLASHNEXT_RESIDENCY=all a host holds every live buffer; a buffer made or freed during a request is added or removed without a commit (a commit per buffer stalled a reply at 5 tok/s), and the keepalive's next tick, which runs only while no request does, commits them. M5 Ultra, one 262k stream, 6 GiB prompt cache, iogpu.disable_wired_collector at its default 0: 30 of 30 mixed replies steady (209/138 tok/s code/prose), the first token after 10-30 s idle 0.09-0.10 s, a fresh 25k-token prompt after a minute idle 5.4 s (no set: 2.1-2.4 s and 24 s; the startup-only set: 10-30% of replies at 50-100 tok/s).1 parent 8964b1c commit 7808bee
2 files changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments