# 2023-02-23 Notes ## Replay with original MPT Putting here the original (baseline) MPT result in my machine for reference. ``` INFO [02-23|15:41:26.358] Blockchain stopped Import done in 2m6.559019397s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 0 | 0.00000 | 1.55048 | 0.00000 | 235.08272 1 | 49 | 99.85828 | 1.92729 | 320.27705 | 170.27616 2 | 35 | 72.04562 | 0.00000 | 0.00000 | 0.00000 -------+------------+---------------+---------------+---------------+--------------- Total | 84 | 171.90390 | 3.47776 | 320.27705 | 405.35887 Read(MB):431.02830 Write(MB):815.31653 Object memory: 805.616 MB current, 1012.295 MB peak System memory: 1567.324 MB current, 1567.324 MB peak Allocations: 555.131 million GC pause: 13.714609ms Compacting entire database... Compaction done in 1.931479629s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 0 | 0.00000 | 1.69445 | 0.00000 | 257.21172 1 | 0 | 0.00000 | 2.66037 | 442.26434 | 248.58626 2 | 63 | 127.19440 | 1.03092 | 151.57240 | 128.41107 -------+------------+---------------+---------------+---------------+--------------- Total | 63 | 127.19440 | 5.38574 | 593.83674 | 634.20906 Read(MB):677.63974 Write(MB):1044.17919 ``` ## Replay with MPT but with `TriesInMemory ~= 0`: If you go to [this line](https://github.com/gballet/go-ethereum/blob/beverly-hills-head/core/blockchain.go#L1316) and change it with `current > 0` (i.e: "always"). See how disk IO 8x-10x. ``` Import done in 2m30.267120666s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 2 | 236.32520 | 5.16912 | 0.00000 | 1528.98333 1 | 51 | 98.12456 | 6.77011 | 1577.04688 | 1544.68519 2 | 504 | 998.47119 | 8.52539 | 2066.42584 | 1982.27654 3 | 84 | 166.37348 | 0.00000 | 0.00000 | 0.00000 -------+------------+---------------+---------------+---------------+--------------- Total | 641 | 1499.29443 | 20.46463 | 3643.47272 | 5055.94507 Read(MB):3891.00887 Write(MB):6741.48009 Object memory: 728.420 MB current, 1301.138 MB peak System memory: 2039.532 MB current, 2039.469 MB peak Allocations: 597.166 million GC pause: 13.84573ms Compacting entire database... Compaction done in 13.394261038s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 0 | 0.00000 | 5.26359 | 0.00000 | 1561.89446 1 | 0 | 0.00000 | 8.34303 | 1944.40777 | 1906.06173 2 | 0 | 0.00000 | 14.45043 | 3665.04421 | 3515.51904 3 | 739 | 1460.99063 | 5.75800 | 1494.23269 | 1494.37799 -------+------------+---------------+---------------+---------------+--------------- Total | 739 | 1460.99063 | 33.81505 | 7103.68467 | 8477.85321 Read(MB):7268.09121 Write(MB):10163.59291 ``` ## Latest replay with VKT Latest run with new serialization (which doesn't matter much) ``` INFO [02-23|15:17:48.790] Blockchain stopped Import done in 7m52.989521614s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 2 | 247.09683 | 13.10104 | 0.00000 | 5377.73004 1 | 64 | 98.81289 | 18.71275 | 6209.26510 | 6130.55773 2 | 556 | 999.25425 | 36.09512 | 12752.55525 | 12685.65068 3 | 1958 | 3928.76097 | 16.59365 | 5832.58076 | 5782.37197 -------+------------+---------------+---------------+---------------+--------------- Total | 2580 | 5273.92495 | 84.50256 | 24794.40111 | 29976.31043 Read(MB):24995.06616 Write(MB):35677.14737 Object memory: 1144.196 MB current, 1380.811 MB peak System memory: 1906.089 MB current, 1906.089 MB peak Allocations: 646.405 million GC pause: 21.416016ms Compacting entire database... INFO [02-23|15:18:08.058] Deep froze chain segment blocks=22164 elapsed=602.997ms number=410,000 hash=f6693b..9dd3ac Compaction done in 24.282769335s. Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 0 | 0.00000 | 13.26077 | 0.00000 | 5413.52640 1 | 0 | 0.00000 | 20.77295 | 6590.97117 | 6508.61006 2 | 0 | 0.00000 | 40.13251 | 14283.63460 | 14216.61760 3 | 2635 | 5278.40290 | 34.56882 | 12320.88214 | 12243.12114 -------+------------+---------------+---------------+---------------+--------------- Total | 2635 | 5278.40290 | 108.73505 | 33195.48791 | 38381.87520 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up