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

Client Memory Optimizations #2675

Merged
merged 8 commits into from
May 4, 2023
Merged

Conversation

holgerd77
Copy link
Member

Memory optimizations for the client and in general, can either be directly merged or used as a base for additional pushes, don't really care, what fits better.

@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

❗ No coverage uploaded for pull request base (develop-v7@5520e31). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head c365804 differs from pull request most recent head 323d474. Consider uploading reports for the commit 323d474 to get more accurate results

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 90.30% <0.00%> (?)
blockchain 90.45% <0.00%> (?)
client 86.99% <0.00%> (?)
common 95.76% <0.00%> (?)
devp2p 91.72% <0.00%> (?)
ethash ∅ <0.00%> (?)
evm 79.35% <0.00%> (?)
statemanager 88.53% <0.00%> (?)
trie 90.01% <0.00%> (?)
tx 95.50% <0.00%> (?)
util 81.34% <0.00%> (?)
vm 84.39% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@@ -56,15 +56,21 @@ export abstract class Execution {
*/
async open(): Promise<void> {
this.started = true
this.config.logger.info('Setup EVM execution.')
if (this.config.execution) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we should not change the log UX here as the execution could still be triggered by beacon sync for e.g. and then stop would not log the stop message.

instead we should just add a log when we trigger execution run in full service start

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

Could you eventually directly push ah update?

@@ -162,7 +162,7 @@ export class FullEthereumService extends EthereumService {
}
await super.start()
this.miner?.start()
if (!this.config.execCommon.gteHardfork(Hardfork.Paris)) {
if (!this.config.execCommon.gteHardfork(Hardfork.Paris) && this.config.execution) {
void this.execution.run(true, true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
void this.execution.run(true, true)
this.logger.info("Triggering execution of already downloaded blocks if any")
void this.execution.run(true, true)

something like this...

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

lgtm!

@holgerd77 holgerd77 merged commit 9b85ff1 into develop-v7 May 4, 2023
@holgerd77 holgerd77 deleted the client-memory-optimizations branch May 4, 2023 06:52
@holgerd77
Copy link
Member Author

Will admin merge here for procedural reasons, we can see if codecov not reporting was eventually a one time thing on the next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants