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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce head state copy for attester and aggregator #5961

Closed
terencechain opened this issue May 22, 2020 · 1 comment 路 Fixed by #6025
Closed

Reduce head state copy for attester and aggregator #5961

terencechain opened this issue May 22, 2020 · 1 comment 路 Fixed by #6025
Assignees
Labels
Enhancement New feature or request Priority: High High priority item

Comments

@terencechain
Copy link
Member

馃殌 Feature Request

Local memory for 4k validators slowly grow:
Screen Shot 2020-05-22 at 10 39 08 AM

From profiling heap, one weakness is the amount of head state copy in RPC to service attester and aggregator:
Screen Shot 2020-05-21 at 8 27 08 PM

This can be greatly improved by caching only one head state and use that across attester and aggregator

@terencechain terencechain added Needs Design Enhancement New feature or request Priority: Low Low priority item labels May 22, 2020
@terencechain terencechain self-assigned this May 25, 2020
@terencechain
Copy link
Member Author

terencechain commented May 28, 2020

Started to look into this. I think there's seriously gain we can achieve. Imagine all the highlighted flame goes away (2GB). Depends on how many validators the beacon node serves, This will reduce state copy from assigned_committees_count to 1 every slot.

Screen Shot 2020-05-26 at 7 11 09 AM

@terencechain terencechain added Priority: High High priority item and removed Priority: Low Low priority item labels May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Priority: High High priority item
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant