Skip to content

Warn when the pre-test init time becomes much slower than a worker restart - #183

Open
christiangnrd wants to merge 1 commit into
mainfrom
slowwarn
Open

christiangnrd wants to merge 1 commit into
mainfrom
slowwarn

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Would love feedback on how to communicate this.

Current:
image

Maybe we should give the warning and link to a docs section instead?

@christiangnrd
christiangnrd added this pull request to stack #184 September 11, 2026 13:03
…start

Under macOS memory pressure (issue #124), the full GC run before each test
gets progressively slower on a long-lived worker, which is usually a sign that
there are too many workers for the available memory and can lead to hangs or
much longer test times. Track the init time of tests run on freshly spawned
workers (which already includes spawn, init_worker_code and init_code, so it is
the full cost of a restart) and, once a warm init exceeds SLOW_INIT_FACTOR times
that, print a warning (once per run) suggesting to lower JULIA_TEST_MAXRSS_MB /
max_worker_rss or the number of jobs. A testset forces a slow init to check the
warning.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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