Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize ELG with the number of affinitized cores #120

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

pushkarnk
Copy link
Contributor

The MultiThreadedEventLoopGroup that runs the HTTPServer is initialized with all the available cores. On Linux, it could be instead initialised to the number of affinitized cores. If the number of affinitized cores is lesser than the System.coreCount, initializing the MultiThreadedEventLoopGroup with the later comes with a performance penalty.

@pushkarnk
Copy link
Contributor Author

@djones6 Kindly review. The only premise for this pull request is the performance penalty that comes along if the number of _affinitised_ cores is lesser than the total core count and we initialise the MultiThreadedEventLoopGroup with the latter. Thanks!

Copy link
Contributor

@djones6 djones6 left a comment

Choose a reason for hiding this comment

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

The changes themselves look good, but the new files need a copyright header and possibly attribution if this code was copied from another source?

The MultiThreadedEventLoopGroup that runs the HTTPServer is initialized with all the available cores. On Linux, it could be instead initialised to the number of affinitized cores. If the number of affinitized cores is lesser than the `System.coreCount`, initializing the MultiThreadedEventLoopGroup with the later comes with a performance penalty.
@pushkarnk
Copy link
Contributor Author

Thanks @djones6 I've done the needful

@djones6 djones6 merged commit fad87da into Kitura:master Dec 19, 2018
@pushkarnk pushkarnk deleted the aff-cores branch May 26, 2020 07:48
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