Skip to content

feat: add config for reserved CPU cores Resolves paradigmxyz/reth#15633 #15710

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

Merged

Conversation

Hunter-Plus
Copy link

@Hunter-Plus Hunter-Plus commented Apr 13, 2025

Dear cores,

This is my first PR! Thanks for your time in reviewing and I will be happy to do any further optimization for this little adding.

I also noticed that RPC server also has a fixed number 2 for reserving CPU cores.

const RESERVED: usize = 2;

As per my user experience, the Sender Recovery stage was the only one with performance issue when there were a lot of syncing to do. The best way to prevent any performance concern should be adding a global configuration for the reserved CPU cores. However, in respect to the modular design, I decided not to touch the RPC part as it had never ate too much CPU.

@kevaundray
Copy link
Contributor

kevaundray commented Apr 13, 2025

Resolves #15633

You can put this is in the PR description instead of the title btw

(Just a passing comment, have not checked the PR)

@emhane emhane added A-rpc Related to the RPC implementation C-enhancement New feature or request A-cli Related to the reth CLI and removed A-rpc Related to the RPC implementation labels Apr 14, 2025
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

makes sense, ty.

smol nits

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Apr 14, 2025
@Hunter-Plus Hunter-Plus requested a review from mattsse April 15, 2025 03:35
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

ty,

I changed the arg to usize, which makes this easier to use

@mattsse mattsse added this pull request to the merge queue Apr 15, 2025
Merged via the queue into paradigmxyz:main with commit c79b638 Apr 15, 2025
43 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Apr 15, 2025
07Vaishnavi-Singh pushed a commit to 07Vaishnavi-Singh/reth that referenced this pull request May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI C-enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants