Skip to content

Set default senders as min(4, number of cores on host)#752

Merged
phillip-stephens merged 6 commits intomainfrom
phillip/set-default-senders
Dec 11, 2023
Merged

Set default senders as min(4, number of cores on host)#752
phillip-stephens merged 6 commits intomainfrom
phillip/set-default-senders

Conversation

@phillip-stephens
Copy link
Contributor

@phillip-stephens phillip-stephens commented Dec 9, 2023

This should give us a more sane default, especially on hosts with less cores.

  • update manages
  • updated --help

Testing

Ran on Mac, compiles and runs correctly

To test if it picks up cores correctly, ran on a Ubuntu VM with 2 cores, it detected this correctly.

@phillip-stephens phillip-stephens marked this pull request as ready for review December 9, 2023 00:08
@zakird
Copy link
Member

zakird commented Dec 9, 2023

Sorry, I was totally backwards in that last comment (deleted). Should have coffee before looking at it. That said, I think we might want to default to one less than the number of cores so that there is one core available for the receiver thread.

@zakird
Copy link
Member

zakird commented Dec 9, 2023

@phillip-stephens I have pushed slightly updated logic. Can you take a quick look, and if it looks good to you too, we can merge?

@phillip-stephens
Copy link
Contributor Author

@zakird LGTM, thanks! Merging now

@phillip-stephens phillip-stephens merged commit 6defec7 into main Dec 11, 2023
@phillip-stephens phillip-stephens deleted the phillip/set-default-senders branch December 11, 2023 17:41
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