Skip to content

storage: default Apple ANS disks to the none scheduler - #69

Closed
RyanTheTide wants to merge 1 commit into
mainfrom
storage/apple-nvme-none
Closed

RyanTheTide wants to merge 1 commit into
mainfrom
storage/apple-nvme-none

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Apple ANS exposes one I/O hardware queue. Select none for namespace disks under the nvme-apple platform driver to evaluate avoiding scheduler dispatch overhead. The identical rule is being proposed for Fedora, ALARM and NixOS Aurora; partitions, PCI NVMe and USB devices do not match.

Keep this PR in draft until matched benchmarks justify the default. The package/module documentation gives the psync 3 GiB, 15-second plus 2-second-ramp method, contention controls and rollback. No throughput or tail-latency improvement is claimed. Request-size limits, read-ahead, merging, CPU/IRQ affinity, polling and durability behaviour remain at their existing defaults. There is no live udev trigger on installation.

The public driver already uses tag-indexed linear submission and exposes only one I/O queue. Its 4 MiB software cap is further constrained by controller/DMA limits. Although it has a poll callback, it has no blk-mq poll map; a sysfs polling write is not an enablement path. Those observations do not justify a kernel performance patch.

Validation: rule bytes match across all three repositories; shell syntax and focused packaging/checksum tests pass. Automatic PR checks are green, including Fedora and ALARM package builds and NixOS profile evaluation. Controller buildbox validation also passed: udev syntax, built ALARM/Fedora payloads and dependencies, and NixOS default-on/disabled assertions across all three profiles. No performance benchmarks or target setting changes have run.

Companion drafts: Fedora #84, ALARM #66, NixOS #69.

Install the same driver-scoped udev rule as Fedora and ALARM through services.udev.packages. Allow the default to be omitted; document matched benchmarks and rollback before adoption.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RyanTheTide added a commit that referenced this pull request Nov 5, 2026
The v2 tip: speakerguardd#63, #64, #66, #67, #69, #70, #71. The packaged files are unchanged.
Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing to clear the queue. A scheduler default change needs matched benchmarks first, and none were run. The branch stays, so this can come back with numbers.

@RyanTheTide RyanTheTide closed this Nov 6, 2026
@RyanTheTide
RyanTheTide deleted the storage/apple-nvme-none branch November 7, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant