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

Move CLI script to .sh file #2893

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Move CLI script to .sh file #2893

merged 1 commit into from
Jul 27, 2021

Conversation

dapplion
Copy link
Contributor

Motivation

Remove cli link in package.json. Running the node through yarn is very problematic because signals are not properly propagated potentially causing zombie processes.

Description

This script forces people to not use yarn to run this command, so signal handling is fine. It replaces the existing soft link so it can also extend the memory limit of node.

@codeclimate
Copy link

codeclimate bot commented Jul 27, 2021

Code Climate has analyzed commit 828cd34 and detected 0 issues on this pull request.

View more on Code Climate.

@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: b3e69c0 Previous: ebb6ef8 Ratio
getCommitteeAssignments - req 1000 vs - 250000 vc 8.3000 ms/op 9.6139 ms/op 0.86
epoch altair - 250000 vs - 7PWei - processJustificationAndFinalization 214.35 us/op 229.93 us/op 0.93
epoch altair - 250000 vs - 7PWei - processInactivityUpdates 2.4690 s/op 2.2515 s/op 1.10
epoch altair - 250000 vs - 7PWei - processRewardsAndPenalties 860.23 ms/op 940.99 ms/op 0.91
epoch altair - 250000 vs - 7PWei - processRegistryUpdates 17.896 us/op 12.671 us/op 1.41
epoch altair - 250000 vs - 7PWei - processSlashings 54.135 us/op 53.209 us/op 1.02
epoch altair - 250000 vs - 7PWei - processEffectiveBalanceUpdates 40.652 ms/op 69.875 ms/op 0.58
epoch altair - 250000 vs - 7PWei - processParticipationFlagUpdates 252.35 ms/op 272.98 ms/op 0.92
epoch altair - 250000 vs - 7PWei - prepareEpochProcessState 525.79 ms/op 548.44 ms/op 0.96
Process block - 250000 vs - 7PWei - with 0 validator exit 411.30 us/op 394.81 us/op 1.04
Process block - 250000 vs - 7PWei - with 1 validator exit 25.482 ms/op 33.377 ms/op 0.76
Process block - 250000 vs - 7PWei - with 16 validator exits 32.374 ms/op 24.469 ms/op 1.32
epoch phase0 - 250000 vs - 7PWei - processJustificationAndFinalization 91.211 us/op 117.04 us/op 0.78
epoch phase0 - 250000 vs - 7PWei - processRewardsAndPenalties 532.94 ms/op 537.36 ms/op 0.99
epoch phase0 - 250000 vs - 7PWei - processRegistryUpdates 12.658 us/op 15.204 us/op 0.83
epoch phase0 - 250000 vs - 7PWei - processSlashings 36.629 us/op 53.259 us/op 0.69
epoch phase0 - 250000 vs - 7PWei - processFinalUpdates 41.690 ms/op 44.352 ms/op 0.94
epoch phase0 - 250000 vs - 7PWei - prepareEpochProcessState 955.59 ms/op 1.0400 s/op 0.92
getAttestationDeltas - 250000 vs - 7PWei 125.32 ms/op 88.945 ms/op 1.41
processSlots - 250000 vs - 7PWei - 32 empty slots 6.2526 s/op 5.9673 s/op 1.05
shuffle list - 16384 els 1.7283 ms/op 3.6185 ms/op 0.48
shuffle list - 250000 els 24.669 ms/op 30.888 ms/op 0.80
getPubkeys - persistent - req 1000 vs - 250000 vc 16.549 us/op 19.775 us/op 0.84
BLS verify - blst-native 1.8654 ms/op 2.2196 ms/op 0.84
BLS verifyMultipleSignatures 3 - blst-native 3.7960 ms/op 4.5387 ms/op 0.84
BLS verifyMultipleSignatures 8 - blst-native 8.1794 ms/op 9.7287 ms/op 0.84
BLS verifyMultipleSignatures 32 - blst-native 32.352 ms/op 37.258 ms/op 0.87
BLS aggregatePubkeys 32 - blst-native 40.619 us/op 46.620 us/op 0.87
BLS aggregatePubkeys 128 - blst-native 155.50 us/op 179.84 us/op 0.86
getAttestationsForBlock 110.88 ms/op 110.15 ms/op 1.01
validate gossip signedAggregateAndProof - struct 4.7169 ms/op 6.0122 ms/op 0.78
validate gossip signedAggregateAndProof - treeBacked 4.4482 ms/op 5.0107 ms/op 0.89
validate gossip attestation - struct 2.0893 ms/op 2.3800 ms/op 0.88
validate gossip attestation - treeBacked 2.1258 ms/op 2.3941 ms/op 0.89

by benchmarkbot/action

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

@dapplion in chat:
From running testnets for +1 month we consistently stay in the 3.5-4.5GB and only leave it when something really bad happens
In that case the node should die and not drag along

@wemeetagain wemeetagain merged commit 6c2a1f0 into master Jul 27, 2021
@wemeetagain wemeetagain deleted the dapplion/cli-script branch July 27, 2021 14:39
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.

4 participants