Warning: Every calculation assumed every factor is linearly related.
Goerli | Mainnet | |
---|---|---|
Block Number | ||
Account # |
Assuming linearity, amplifier for
- Block Number:
$A_{B} = 103529821 / 4061223 \simeq 25.49$ - Account # :
$A_{S} = 4071701 / 127608 \simeq 31.91$
Goerli | Mainnet | |
---|---|---|
Blocks |
|
|
Receipts |
|
|
Total Difficulty |
|
|
World State Trie |
|
|
DB in tar gz |
|
|
DB |
|
|
New DB |
|
|
New DB in tar gz |
|
|
Goerli | Mainnet | |
---|---|---|
Storage Needed for Migration |
|
|
New DB |
|
|
New DB in tar gz |
|
|
Summation of estimation for data export and data import.
(Export)
Linearity comes from below observations:
Export Blocks | Export Total Difficulty | Export Receipts | |
---|---|---|---|
quad |
|
|
|
quad * 2 |
|
|
|
quad * 3 |
|
|
|
quad * 4 |
|
|
|
Here, quad * 4
equals total prebedrock blocks for optimism goerli.
Import Blocks | Import Total Difficulty | Import Receipts | Recover Log Index | Recover Senders | |
---|---|---|---|---|---|
quad |
|
|
|
|
|
quad * 2 |
|
|
|
|
|
quad * 3 |
|
|
|
|
|
quad * 4 |
|
|
|
|
|
Here, quad * 4
equals total prebedrock blocks for optimism goerli.
Import State | |
---|---|
quad |
|
quad * 2 |
|
quad * 3 |
|
quad * 4 |
|
Here, quad * 4
equals total prebedrock accounts for optimism goerli.
Goerli | Mainnet | |
---|---|---|
Export Blocks |
|
|
Export Total Difficulty |
|
|
Export Receipts |
|
|
Export State (jsonl) |
|
|
Total Time |
|
|
Parallelizable to reduce to
Goerli | Mainnet | |
---|---|---|
Import Blocks |
|
|
Import Total Difficulty |
|
|
Import Receipts |
|
|
Import State |
|
|
Recover Log Index |
|
|
Recover Senders |
|
|
Total Time |
|
|
This experiment finds relation between number of accounts and state import memory consumption.
Above screenshot records memory graph from trial 1 to 7.
There are
Trial | Start | End | Max Memory |
---|---|---|---|
1 | start |
end |
|
2 | start |
half |
|
3 | start |
half |
|
4 | half |
end |
|
5 | start |
quad |
|
6 | start |
quad * 3 |
|
7 | quad * 3 |
end |
|
8 | start |
end |
|
9 | start |
end |
|
10 | start |
end |
|
Analyzing results from trial 1, 2, 3, 4:
Analyzing results from trial 1, 6, 7:
If we assume that memory consumption relation is linear, optimism mainnet memory requirement be
Used x2idn.16xlarge
instance.
Goerli takes