Skip to content

Avoid mount-event throttling during boot - #15182

Merged
dhh merged 2 commits into
quattrofrom
perf/mount-event-burst
Oct 13, 2026
Merged

dhh merged 2 commits into
quattrofrom
perf/mount-event-burst

Conversation

@dhh

@dhh dhh commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Stacks on #15175. Keep both PRs unmerged.

Systemd's default mount-monitor limit (five notifications per second) defers new mount jobs when a boot burst exceeds it. Debug journals show the local-filesystem mounts waiting for that one-second window to expire even after the binfmt change. Raise the allowance to thirty while keeping the one-second rate-limit interval.

Ten boots per configuration using omarchy-iso/test/vm-image/vm-boot and the verified 2026.10.12.442 edge image:

Configuration Median userspace startup Range
Unchanged 2.413 s 2.385–2.433 s
#15175 alone 1.501 s 1.474–1.523 s
This PR + #15175 0.737 s 0.718–0.783 s

All boots reached running, with no failed units and all 31 QEMU binary formats registered. Ten events retained the pause; twenty still paused in one of ten boots. Thirty gives more headroom without the runtime cost of the fifty-event setting also tested. These are VM userspace measurements, not hardware or initrd claims.

There is a runtime tradeoff. Under synthetic sustained churn (1,000 mount/unmount operations), PID1 CPU usage increased from 3.5% to 5.5% of one core with 31 existing mounts, and from roughly 5.3% to 15.5% with 1,031 mounts. systemctl remained responsive and every stress run finished healthy. The setting applies after boot too.

The upstream mount implementation exposes this tuning variable. It has a weaker stability guarantee than system.conf options; recheck it on systemd upgrades. The settings package already ships etc/ to new and updated installations; the setting takes effect on the next boot.

Claude reviewed the final configuration and its binfmt dependency with no remaining code defects. Focused systemd tests passed. A fresh ISO built with omarchy-iso-make --local-source passed unattended installation and boot integration tests. All three settings files were installed root-owned with mode 644, both binfmt units were active, all 31 QEMU formats were registered, and an ARM64 Alpine Docker container ran successfully. The interactive omarchy-iso-test --encrypt --install-only flow also installed, unlocked LUKS, and reached running with no failed units. Hardware measurements remain follow-up validation before adoption.

Combined VM validation with #15163, #15167, and #15181 also passed: focused tests, shell restart, IPC health, and the Apps menu with icons rendered correctly.

@dhh
dhh marked this pull request as ready for review October 12, 2026 15:11
@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High impact] The change appears safe to merge within the acknowledged runtime tradeoffs.

Summary

Adds 20-mount-events.conf to raise the mount-event burst allowance to thirty. The one-second interval stays unchanged.

  • Systemd processes larger mount bursts before delaying jobs.

Reviews (1) · Last reviewed commit: "Allow boot mount bursts without a one-se..." · Reviewed by Greptile

Base automatically changed from perf/binfmt-mount-before-registration to quattro October 13, 2026 00:55
@dhh
dhh merged commit 60e96ac into quattro Oct 13, 2026
1 check passed
@dhh
dhh deleted the perf/mount-event-burst branch October 13, 2026 00:56
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

2 participants