bsc icon indicating copy to clipboard operation
bsc copied to clipboard

Generating state snapshot

Open 90hacker opened this issue 5 years ago • 19 comments

Why does my program need to generate a state snapshot every time it starts. Is it because I didn't close the program correctly?

t=2021-11-17T09:38:59+0800 lvl=info msg="Generating state snapshot"             root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x001112241e39d94980b32b29443a7a1993725a810a3340dbf21b95a46ed145ae at=0x3e60c7f34b02b3b4f1508f9a7c70e2e9268503bca7a3939a1b6cd645079442c9 accounts=18863 slots=51480 storage="5.18 MiB" elapsed=8.000s      eta=8h31m48.285s
t=2021-11-17T09:39:01+0800 lvl=info msg="Block synchronisation started"
t=2021-11-17T09:39:07+0800 lvl=info msg="Generating state snapshot"             root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x001112241e39d94980b32b29443a7a1993725a810a3340dbf21b95a46ed145ae at=0xdc3050f9284b4efba95707427031368cfee3f2519c875fdf26cd53199c3a7bd3 accounts=18863 slots=93981 storage="8.64 MiB" elapsed=16.000s     eta=17h3m32.732s
t=2021-11-17T09:39:15+0800 lvl=info msg="Generating state snapshot"             root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x001905e9ebc07001984fcbd3ea849e66e747b326cd9f327aa1fa40b865e4e564 at=0x1f9ee1742e9140d0c0a3a8b8aa75d2892f654fe9515a891049d2bf1ea3d10335 accounts=27721 slots=369,926 storage="30.51 MiB" elapsed=24.001s     eta=17h27m17.715s
t=2021-11-17T09:39:21+0800 lvl=eror msg="Snapshot extension registration failed" peer=f96f7fb0 err="peer connected on snap without compatible eth support"
t=2021-11-17T09:39:23+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x0041335e18a249ca57076f972552ff2a270adf9a541c39f54b56caae7754d0bc at=0xd4674a8948cba16c03a56a55cb7e31b6aa09d5848b1e297206ba68f46e816e32 accounts=72303 slots=539,524 storage="46.69 MiB" elapsed=32.013s     eta=8h55m46.643s
t=2021-11-17T09:39:31+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 at=0x0060ba0c165303b90aff63fede3e976e035e246e576c34e595f10cc9ceda1ae1 accounts=107,591 slots=867,131 storage="72.18 MiB" elapsed=40.016s     eta=7h31m13.001s
t=2021-11-17T09:39:39+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 at=0x008601c1f38b649dc41c9db2fd25d852d86b90af996504989010c387218c4e3b accounts=149,338 slots=1,012,394 storage="85.70 MiB" elapsed=48.016s     eta=6h30m34.676s
t=2021-11-17T09:39:47+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x00afd4fe76fc862b0c1041ba9e22d2fe7c62b22cf3d816f204fcd4f10101079b at=0xbfde2b6d8bc9e7ef98e05bf06356dd0001564253698c7d2607b63a3963e84ecd accounts=196,334 slots=1,173,037 storage="101.21 MiB" elapsed=56.016s     eta=5h47m2.605s
t=2021-11-17T09:39:55+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 at=0x00c5649afa4aba3999135e64211c26ec41604a745ed2e6e787c3866b01ac444b accounts=220,413 slots=1,365,420 storage="119.34 MiB" elapsed=1m4.022s    eta=5h53m12.108s
t=2021-11-17T09:39:56+0800 lvl=eror msg="Snapshot extension registration failed" peer=8823437e err="peer connected on snap without compatible eth support"
t=2021-11-17T09:40:01+0800 lvl=eror msg="Ethereum peer removal failed"           peer=65f794c8 err="peer not registered"
t=2021-11-17T09:40:01+0800 lvl=eror msg="Ethereum peer removal failed"           peer=363ad5b1 err="peer not registered"
t=2021-11-17T09:40:01+0800 lvl=eror msg="Ethereum peer removal failed"           peer=bfb15d0b err="peer not registered"
t=2021-11-17T09:40:03+0800 lvl=info msg="Downloader queue stats"                 receiptTasks=0 blockTasks=541 itemSize="57.30 KiB" throttle=1144
t=2021-11-17T09:40:03+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x00f3277dbaefabf6039df32930a1537ce5f3996e50b1ffc0e6715727f2e07e03 at=0x0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9 accounts=271,553 slots=1,596,289 storage="139.80 MiB" elapsed=1m12.022s   eta=5h22m19.93s
t=2021-11-17T09:40:11+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 at=0x0125d7a4d915ef929ee3625db73b8f5bf0e2e903a2f723eed44b6eab67205743 accounts=328,176 slots=1,694,745 storage="150.82 MiB" elapsed=1m20.022s   eta=4h56m7.598s
t=2021-11-17T09:40:14+0800 lvl=info msg="Imported new chain segment"             blocks=2 txs=2308 mgas=184.064 elapsed=11.450s     mgasps=16.075 number=12,696,781 hash=0x1fe006e84800fe7b35ab547bd71a3c8d957cf274343ed6c5529f1490ef3e9448 age=12h51m32s dirty="16.55 MiB"
t=2021-11-17T09:40:14+0800 lvl=info msg="Unindexed transactions"                 blocks=2 txs=250  tail=10,346,782 elapsed=1.515ms
t=2021-11-17T09:40:15+0800 lvl=eror msg="Snapshot extension registration failed" peer=4512109c err="peer connected on snap without compatible eth support"
t=2021-11-17T09:40:19+0800 lvl=info msg="Generating state snapshot"              root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29 in=0x0139e73b95cbda28858672c7618ebf61c86788918c53198d54d2de45ccf3192a at=0xf8705f8c3b08c6e86fdf0d48d0f1a02d37f68eecf08d72e466d62719e17bab93 accounts=350,728 slots=1,904,925 storage="167.50 MiB" elapsed=1m28.022s   eta=5h4m49.216s

When I saw that the snapshot state was over, the sync block kept falling behind, and I had to restart the program. Restart the program and start to generate a snapshot state again, in an infinite loop.

90hacker avatar Nov 17 '21 03:11 90hacker

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

masayil avatar Nov 17 '21 03:11 masayil

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

90hacker avatar Nov 17 '21 03:11 90hacker

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

masayil avatar Nov 17 '21 04:11 masayil

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

90hacker avatar Nov 17 '21 04:11 90hacker

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

It is impossible to finish sync again. You must prune data or download the latest snapshot. tips: Prune data regularly in the future #502 直接中文交流吧

masayil avatar Nov 17 '21 04:11 masayil

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

It is impossible to finish sync again. You must prune data or download the latest snapshot. tips: Prune data regularly in the future #502 直接中文交流吧

有交流群吗,你的现在同步的怎么样了

90hacker avatar Nov 17 '21 04:11 90hacker

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

It is impossible to finish sync again. You must prune data or download the latest snapshot. tips: Prune data regularly in the future #502 直接中文交流吧

有交流群吗,你的现在同步的怎么样了

我把数据全部删除,去下载最新的快照重新同步 的,目前是完成同步的,后期使用的时候定期修剪数据就行了

masayil avatar Nov 17 '21 04:11 masayil

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

It is impossible to finish sync again. You must prune data or download the latest snapshot. tips: Prune data regularly in the future #502 直接中文交流吧

有交流群吗,你的现在同步的怎么样了

我把数据全部删除,去下载最新的快照重新同步 的,目前是完成同步的,后期使用的时候定期修剪数据就行了。不修剪数据肯定还会有同步问题。#502 具体看这里

masayil avatar Nov 17 '21 04:11 masayil

OK,谢谢你的帮助

90hacker avatar Nov 17 '21 04:11 90hacker

You need to wait for it to finish 。 "eta=5h4m49.216s" 5hours. You can add '--snapshot=false' to skip it.

t=2021-11-17T11:39:22+0800 lvl=info msg="Downloader queue stats"              receiptTasks=0 blockTasks=14365 itemSize="24.27 KiB" throttle=2701
t=2021-11-17T11:39:34+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=725 mgas=86.855 elapsed=11.802s  mgasps=7.359 number=12,697,881 hash=0x3c6e13a28ee1c28fcd937ac9064da45408b04f35426d364676b38fbd9de6a912 age=13h48m10s dirty="9.05 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=301 mgas=36.785 elapsed=4.041s   mgasps=9.101 number=12,697,882 hash=0x470b8bbc676de9465313da65a8e71a0cbf95d0ab4d281c6185012f6a4e5bcb64 age=13h48m11s dirty="13.00 MiB"
t=2021-11-17T11:39:38+0800 lvl=info msg="Unindexed transactions"              blocks=2 txs=267 tail=10,347,883 elapsed=2.279ms
t=2021-11-17T11:39:46+0800 lvl=eror msg="Ethereum peer removal failed"        peer=2a1565a0 err="peer not registered"
t=2021-11-17T11:39:48+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=815 mgas=98.831 elapsed=10.244s  mgasps=9.647 number=12,697,883 hash=0xff118b297ad7897d813967d2c1cbdf9d63d8d0eeaf03a0039537bd1ac23d5ef7 age=13h48m18s dirty="22.92 MiB"
t=2021-11-17T11:39:59+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=992 mgas=115.627 elapsed=10.195s  mgasps=11.341 number=12,697,885 hash=0xb5bcce6b425cc9bacfb32de16dde8e46ff278700d348dda440b5a402a6d2f63a age=13h48m23s dirty="35.55 MiB"
t=2021-11-17T11:40:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=26.348ms number=12,607,887 hash=0x6e65d41884ee36714b51b8b8ec85b4dd3f9f6ccce8631a6c8bcd0cc93aaf7b3a
t=2021-11-17T11:40:13+0800 lvl=info msg="Imported new chain segment"          blocks=3 txs=1401 mgas=167.774 elapsed=14.169s  mgasps=11.840 number=12,697,888 hash=0x62f4201259eecde525df164cba1ecc06afa28425a8575f291893162f49755e1c age=13h48m28s dirty="52.49 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=798  mgas=95.339  elapsed=7.744s   mgasps=12.310 number=12,697,889 hash=0xb63b1a2bb8e1f551449fa78869c50841144de7313f4cebfaac5a3c1b49c119c3 age=13h48m32s dirty="62.45 MiB"
t=2021-11-17T11:40:20+0800 lvl=info msg="Unindexed transactions"              blocks=7 txs=806  tail=10,347,890 elapsed=5.062ms
t=2021-11-17T11:40:40+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=780  mgas=97.816  elapsed=19.599s  mgasps=4.991  number=12,697,890 hash=0x16989e1d47079a3a5a3a884fdcb414a533edc073b461e75cec376eae6c8d60bb age=13h48m49s dirty="72.17 MiB"
t=2021-11-17T11:40:49+0800 lvl=info msg="Imported new chain segment"          blocks=1 txs=876  mgas=98.005  elapsed=8.366s   mgasps=11.714 number=12,697,891 hash=0x84ddb90001abbbea75dd6c231c26e9dc1405e44b156cd610102f5385414440fc age=13h48m55s dirty="82.90 MiB"
t=2021-11-17T11:41:03+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1564 mgas=172.692 elapsed=14.068s  mgasps=12.275 number=12,697,893 hash=0x51ff5b82e04740ba4c38e1f19c2f518a19c2f6cf46d9e7c3907d31534cfe8585 age=13h49m3s  dirty="101.85 MiB"
t=2021-11-17T11:41:11+0800 lvl=info msg="Deep froze chain segment"            blocks=7 elapsed=15.758ms number=12,607,894 hash=0x46a1604de7ea258191078a323947b8cc7048dc64014fd70f4849fb127c0b436a
t=2021-11-17T11:41:13+0800 lvl=info msg="Persisted trie from memory database" nodes=0 size="0.00 B" time="2.351µs" gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=264,573 livesize="92.77 MiB"
t=2021-11-17T11:41:13+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=1379 mgas=139.224 elapsed=10.524s  mgasps=13.229 number=12,697,895 hash=0x99fb12a64762439911a84495387eb51c0b89d54548de796cccb9ab856757ba6b age=13h49m7s  dirty="117.37 MiB"
t=2021-11-17T11:41:25+0800 lvl=info msg="Imported new chain segment"          blocks=2 txs=997  mgas=114.787 elapsed=12.044s  mgasps=9.530  number=12,697,897 hash=0xbeeb83925b50e868799482d24e6b41c14874de6c19c1ba162173a9ee70edf3ab age=13h49m13s dirty="130.15 MiB"

age=13h48m10s ~~~13h49m23s After the boastful fall of the block size of my own ward, I was not able to pursue it. use command nohup ./geth --config ./config.toml --datadir ./node --ws --ws.addr "0.0.0.0" --graphql --graphql.vhosts "0.0.0.0" --cache 18000 --diffsync --snapshot=false Computer configuration CPU :8 core , RAM 64G ,ssd 3T

My Computer configuration: 24C 128G 5T ssd cannot sync. This is already a global problem. What is the size of your data? #502 some tips. Prune data regularly is the most important. --cache 32000 Increase the cache appropriately

Disk data is used 1.9T Now according to the log, it can be seen that each synchronization block blocks=3 or blocks=2 Very slow

不可能再次完成同步。您必须修剪数据或下载最新的快照。提示:以后定期修剪数据#502直接中文交流吧

有交流群吗,你现在的同步怎么样了

#502具体问题在这里。

INFO [11-17|04:35:51.161] Imported new chain segment blocks=5 txs=1996 mgas=312.113 elapsed=8.851s mgasps=35.259 number=12,681,183 hash=94ecff..30088e age=1d5h33m dirty=392.71MiB INFO [11-17|04:35:59.859] Imported new chain segment blocks=5 txs=1777 mgas=287.680 elapsed=8.698s mgasps=33.073 number=12,681,188 hash=888d32..2c6105 age=1d5h32m dirty=424.77MiB INFO [11-17|04:36:08.897] Imported new chain segment blocks=4 txs=1618 mgas=288.825 elapsed=9.038s mgasps=31.956 number=12,681,192 hash=5700c4..e45732 age=1d5h32m dirty=455.36MiB 我现在的同步速度。还差34000个块,感觉遥遥无期。。。。前天下载的最新快照。。

heidan123 avatar Nov 17 '21 04:11 heidan123

我在修建快照时 /geth --datadir ./node snapshot prune-state 发生这种错误 ,这是为啥

INFO [11-17|12:43:40.971] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-17|12:43:40.971] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-17|12:43:40.971] Set global gas cap                       cap=25,000,000
INFO [11-17|12:43:40.971] Allocated cache and file handles         database=/data/bsc/node/geth/chaindata cache=408.00MiB handles=32767
INFO [11-17|12:43:46.103] Opened ancient database                  database=/data/bsc/node/geth/chaindata/ancient readonly=false
ERROR[11-17|12:43:46.201] Failed to open snapshot tree             err="head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd"
head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd

90hacker avatar Nov 17 '21 04:11 90hacker

我在修建快照时 /geth --datadir ./node snapshot prune-state 发生这种错误 ,这是为啥

INFO [11-17|12:43:40.971] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-17|12:43:40.971] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-17|12:43:40.971] Set global gas cap                       cap=25,000,000
INFO [11-17|12:43:40.971] Allocated cache and file handles         database=/data/bsc/node/geth/chaindata cache=408.00MiB handles=32767
INFO [11-17|12:43:46.103] Opened ancient database                  database=/data/bsc/node/geth/chaindata/ancient readonly=false
ERROR[11-17|12:43:46.201] Failed to open snapshot tree             err="head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd"
head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd

"Generating state snapshot" 要等这个完成才能修剪。所以--snapshot=false也不能加

masayil avatar Nov 17 '21 04:11 masayil

我在修建快照时 /geth --datadir ./node snapshot prune-state 发生这种错误 ,这是为啥

INFO [11-17|12:43:40.971] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-17|12:43:40.971] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-17|12:43:40.971] Set global gas cap                       cap=25,000,000
INFO [11-17|12:43:40.971] Allocated cache and file handles         database=/data/bsc/node/geth/chaindata cache=408.00MiB handles=32767
INFO [11-17|12:43:46.103] Opened ancient database                  database=/data/bsc/node/geth/chaindata/ancient readonly=false
ERROR[11-17|12:43:46.201] Failed to open snapshot tree             err="head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd"
head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd

"Generating state snapshot" 要等这个完成才能修剪。所以--snapshot=false也不能加

所以我得去掉 --snapshot=false 参数 运行同步区块一段时间,然后在结束程序,进行修剪操作吗

90hacker avatar Nov 17 '21 04:11 90hacker

我在修建快照时 /geth --datadir ./node snapshot prune-state 发生这种错误 ,这是为啥

INFO [11-17|12:43:40.971] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-17|12:43:40.971] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-17|12:43:40.971] Set global gas cap                       cap=25,000,000
INFO [11-17|12:43:40.971] Allocated cache and file handles         database=/data/bsc/node/geth/chaindata cache=408.00MiB handles=32767
INFO [11-17|12:43:46.103] Opened ancient database                  database=/data/bsc/node/geth/chaindata/ancient readonly=false
ERROR[11-17|12:43:46.201] Failed to open snapshot tree             err="head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd"
head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd

"Generating state snapshot" 要等这个完成才能修剪。所以--snapshot=false也不能加

所以我得去掉 --snapshot=false 参数 运行同步区块一段时间,然后在结束程序,进行修剪操作吗

是的。必须等待完成 "Generating state snapshot"

masayil avatar Nov 17 '21 04:11 masayil

我在修建快照时 /geth --datadir ./node snapshot prune-state 发生这种错误 ,这是为啥

INFO [11-17|12:43:40.971] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-17|12:43:40.971] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-17|12:43:40.971] Set global gas cap                       cap=25,000,000
INFO [11-17|12:43:40.971] Allocated cache and file handles         database=/data/bsc/node/geth/chaindata cache=408.00MiB handles=32767
INFO [11-17|12:43:46.103] Opened ancient database                  database=/data/bsc/node/geth/chaindata/ancient readonly=false
ERROR[11-17|12:43:46.201] Failed to open snapshot tree             err="head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd"
head doesn't match snapshot: have 0xf61baf196c57db096fb2e7c75b47b464466b6c8960e1f08655c8f8d1891c25fe, want 0x9eff975121603388e606bdbd0fc2e4fb0ae0adfe98fa3a3eed41628123f143dd

"Generating state snapshot" 要等这个完成才能修剪。所以--snapshot=false也不能加

所以我得去掉 --snapshot=false 参数 运行同步区块一段时间,然后在结束程序,进行修剪操作吗

是的。必须等待完成 "Generating state snapshot"

我试试,现在显示 "Generating state snapshot" 大概需要5个多小时

90hacker avatar Nov 17 '21 04:11 90hacker

有没有群啊,github聊天好麻烦。

heidan123 avatar Nov 17 '21 05:11 heidan123

It seems this problem has been resolved, I'm going to close this issue.

keefel avatar Dec 03 '21 03:12 keefel

我也遇到了同样的问题

xokashi avatar Oct 22 '22 22:10 xokashi

有没有人遇到,每次一更新geth版本,同步速度就会变得特别慢的情况啊

kemorebiyyj avatar Jun 20 '23 02:06 kemorebiyyj