Skip to content

qe-mini1 2026-11-10: a .noindex folder stops XLA's dump waking mediaanalysisd - #59

Merged
mmcky merged 2 commits into
mainfrom
2026-11-10-noindex-check
Nov 10, 2026
Merged

mmcky merged 2 commits into
mainfrom
2026-11-10-noindex-check

Conversation

@mmcky

@mmcky mmcky commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

On 2026-11-06 and 2026-11-09, macOS's mediaanalysisd woke within seconds of the cliff step of QuantEcon/project-benchmarks-jax#48's probe, which writes an XLA dump. This is a short check on qe-mini1's M6 (macOS 27.2.1, 26B131, 2026-11-10, 04:06 to 04:14 UTC, logged in at the screen, in a quiet window agreed with the Mac's sessions) of whether a .noindex folder stops that. It does, so the probe's run.sh now writes its dump to one.

What ran: the probe's cliff step (probe.py byte-identical to main's, its four variants at 16,000 and 18,000, about 4 s), three ways, in three rounds, alternating, each pass after a 45 s rest. ps sampled the media and Spotlight processes every second.

CPU-seconds over each pass and the 45 s after it, one figure a round:

Dump went to mediaanalysisd Spotlight
an ordinary folder (346 files a pass) 38.5, 37.4, 39.1 3.9, 3.2, 5.0
a .noindex folder (346 files a pass) 2.6, 1.6, 2.1 0.2, 0.1, 0.0
no dump 1.9, 1.4, 1.0 0.4, 0.2, 0.3
  • In an ordinary folder, mediaanalysisd ran at up to 123% of a core for about 33 s after each pass. In a .noindex folder it did what it did with no dump: a blip of 2 s to 4 s, which also came at the script's own start.
  • The figures are approximate: ps's CPU is a decaying average. The gap is 15× to 39× round by round, though.
  • The step itself: in the ordinary folder add at 16,000 ran 9% slower than in the other two ways (median of three rounds), and two other passes dipped. The other medians agree within 3%.
File Change
precision/runs/2026-11-10/qe-mini1/noindex/ New: the run notes, samples.txt, the probe's rows for each way, state.txt, run.log, and the script in session/. The dumps aren't kept.
precision/probes/mac_float64/run.sh The dump goes to xla-dump.noindex/ rather than xla-dump/, and the pruning step after it follows.
precision/probes/mac_float64/README.md Names the new folder, notes the old one for runs before 2026-11-10, and links the run notes.

Earlier runs' folders, which hold xla-dump/, are unchanged. Since run.sh prunes the dump to the optimised modules, those folders hold 32 files a run; XLA writes about 346. run.sh passes bash -n, and hasn't run since the change.

For QuantEcon/project-benchmarks-jax#48's and QuantEcon/project-benchmarks-jax#7's runs on a Mac.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZXaSPhPfoP4ShvCrj

…nalysisd

#48's probe's cliff step, three ways in three rounds on the M6 (macOS
27.2.1): the dump in an ordinary folder, in a .noindex folder, and no
dump. In an ordinary folder mediaanalysisd used 37-39 CPU-seconds a
pass and Spotlight indexed the files; in a .noindex folder, 1.6-2.6,
as with no dump (1.0-1.9). The probe's run.sh now writes its dump to
xla-dump.noindex/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZXaSPhPfoP4ShvCrj
Copilot AI balanced review requested due to automatic review settings November 10, 2026 04:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The review evidence shows a straightforward redirect of macOS XLA dump output into a .noindex directory with corresponding documentation updates and comprehensive validation artifacts (script, logs, samples, and outputs) added, and no unresolved issues are indicated.

No open issues 🎉

What changed in this PR

Redirects macOS mac_float64 probe XLA dumps into a .noindex directory to avoid triggering Spotlight/mediaanalysisd, and adds a dated qe-mini1 run folder documenting an A/B comparison confirming the reduction in background CPU activity.

Changes:

  • Write XLA dumps to xla-dump.noindex/ and prune from the new location.
  • Update probe documentation to reflect the new dump directory and link supporting run notes.
  • Add run notes, logs, samples, and probe outputs for the .noindex validation run.
File Description
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​state.txt Records the machine/session state captured for the .noindex validation run window on qe-mini1.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​session/​noindex_check.sh Adds the script used to alternate plain vs .noindex vs no-dump runs while sampling relevant macOS processes.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​samples.txt Provides the per-second CPU/process samples collected during and after each pass for the experiment.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​run.log Captures the timestamped execution log for rounds/ways run in the .noindex experiment.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​README.md Documents the experiment setup and summarizes observed mediaanalysisd/Spotlight behavior across conditions.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​cliff-plain.jsonl Stores the probe output rows for the condition writing the XLA dump to a normal (indexed) folder.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​cliff-noindex.jsonl Stores the probe output rows for the condition writing the XLA dump to a .noindex folder.
precision/​runs/​2026-11-10/​qe-mini1/​noindex/​cliff-nodump.jsonl Stores the probe output rows for the control condition with XLA dumping disabled.
precision/​probes/​mac_float64/​run.sh Changes the dump destination to xla-dump.noindex/ and updates the pruning step to operate on that directory.
precision/​probes/​mac_float64/​README.md Updates probe documentation to name the new .noindex dump directory, note the legacy name, and link the validating run notes.

Review effort: Balanced

@mmcky
mmcky merged commit 62df721 into main Nov 10, 2026
@mmcky
mmcky deleted the 2026-11-10-noindex-check branch November 10, 2026 05:03
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