Skip to content

try limiting concurrency on MacOS - #460

Closed
davepacheco wants to merge 1 commit into
mainfrom
macos-test-concurrency
Closed

davepacheco wants to merge 1 commit into
mainfrom
macos-test-concurrency

Conversation

@davepacheco

@davepacheco davepacheco commented Nov 30, 2021 •

Copy link
Copy Markdown
Collaborator

Mitigates #461.

One hypothesis for the issue in #461 is that we're out of memory. I'll put more analysis in #461 about this. In the meantime, this is a fairly innocuous change: it limits concurrency on OS X in hopes of reducing the memory usage, since many tests spin up CockroachDB, Nexus, and other processes.

This change is only applied to Mac because that's where we're seeing the problem. I don't totally want to eliminate concurrency in CI because there are legitimate concurrency bugs in the test suite. I think it's important that the test suite continue to work at increased concurrency (aside from resource exhaustion).

@davepacheco
davepacheco marked this pull request as ready for review December 1, 2021 00:07

@smklein smklein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The macos bot being successful in 23 minutes looks better than what I've seen elsewhere.

@davepacheco davepacheco mentioned this pull request Dec 1, 2021
@bnaecker

bnaecker commented Dec 1, 2021

Copy link
Copy Markdown
Collaborator

For some really unhelpful data, see this CI run. That prints the memory pressure, as reported by the macOS memory_pressure tool, every 5s during a CI run. I'll spare the reader the suspense: every reported value is 91%. I'm pretty sure that's not a bug, since running it locally on my laptop shows varying values. I expect it'll be more obvious when the system is indeed under load, though I don't know we want to intentionally do that.

@davepacheco

Copy link
Copy Markdown
Collaborator Author

@bnaecker would it be much work to rebase that PR on this one to see if there's any improvement?

@bnaecker

bnaecker commented Dec 1, 2021

Copy link
Copy Markdown
Collaborator

@davepacheco Nope, will do now.

@bnaecker

bnaecker commented Dec 1, 2021

Copy link
Copy Markdown
Collaborator

@davepacheco Here it be.

@davepacheco

Copy link
Copy Markdown
Collaborator Author

Thanks. It doesn't look to me like this changed did much.

@bnaecker

bnaecker commented Dec 1, 2021

Copy link
Copy Markdown
Collaborator

No, but if I'm understanding the issue correctly, I wouldn't expect to see a shift. If the issue is memory pressure leading to swap usage or something, then this should show an effect only if the system is heavily loaded.

@davepacheco davepacheco closed this Dec 2, 2021
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.

3 participants