Commit c31d293
nfs: Enable JUKEBOX backpressure threshold on macOS
Summary:
Change the `fschannel:max-inflight-requests` default from 0 (disabled) to
`10 * CPU count` on macOS, keeping it disabled on other platforms. This
enables NFS3ERR_JUKEBOX backpressure by default on macOS, where NFS is the
mount protocol.
The threshold of 10× CPU count provides 24× headroom over steady-state
concurrency (~4.3) and 2.4× over ODS p99 estimates (~42), while keeping
drain time trivial (13.6ms at 100 requests vs 20s kernel timeout). False
positives are expensive (1s retry penalty from MUTEJUKEBOX backoff vs 139µs
avg service time), so the threshold errs on the generous side. The threshold
scales naturally across Mac hardware: 80 on M1, 100 on M1 Pro, 120 on M2
Pro, 160 on M3 Max.
Reviewed By: giorgidze
Differential Revision: D100398611
fbshipit-source-id: c4d12ce644be8a10080193c5cb5e8ec98fa613f41 parent 0abf63a commit c31d293
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
1141 | 1143 | | |
1142 | 1144 | | |
1143 | 1145 | | |
1144 | | - | |
| 1146 | + | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
| |||
0 commit comments