Fast Sync State Entries Statistics
Hi there,
Creating this issue thread to provide information similar to https://github.com/ethereum/go-ethereum/issues/15616
This is technically not an issue but just a thread in case people wonder why their fast sync takes 'forever'. Once you see Deallocated fast sync bloom items in your log, it means fast sync has stopped and full sync has started and the node has reached its peak sync state at that time.
Fast Sync state entry as of 3 March 2021 ~ 163237136
INFO [03-03|10:28:21.538] Committed new head block number=5355700 hash=0148bf…0ec9bd
INFO [03-03|10:28:21.569] Imported new block headers count=1 elapsed=443.41µs number=5355815 hash=e3b9bb…dcd325
INFO [03-03|10:28:21.572] Deallocated fast sync bloom items=163237136 errorrate=0.001
Fast Sync Disk Usage - 3 March 2021
/dev/sdc 491.2G 34.6G 456.5G 7% /root
/dev/sdd 491.2G 26.5G 464.6G 5% /ancient
Full Sync Disk Usage - 4 March 2021
/dev/sdd 491.2G 189.7G 301.5G 39% /root
/dev/sdc 491.2G 27.8G 463.3G 6% /ancient
INFO [03-26|08:06:57.036] Imported new state entries count=687 elapsed=8.397ms processed=186264751 pending=0 retry=0 duplicate=285 unexpected=17638
INFO [03-26|08:06:57.038] Imported new block receipts count=1 elapsed=1.039ms number=6012177 hash=66d6ba…26b360 age=5m34s size=68.85KiB
INFO [03-26|08:06:57.041] Committed new head block number=6012177 hash=66d6ba…26b360
INFO [03-26|08:06:57.052] Deallocated fast sync bloom items=185025677 errorrate=0.000
So it's 185M on 26th of March.
Took almost 3 days to sync on i3en.large. 3 days, Karl....
BSC currently occupies as of 31.03.2021:
chaindata: 239G
ancient: 48G
You can't run BSC on HDD, only NVME/ssd is suitable, however you can keep ancient on HDD.
There is a snapshot provided by Binance in order to get a faster sync, get it here: https://docs.binance.org/smart-chain/validator/snapshot.html
I've been syncing for 7 days, on an amazon EC2 using NVMe, 10gb ram 4cores, maxpeers = 300. Never reach knownStates, currently it's 332964109 =(
Total took about 11h.
INFO [04-15|11:14:36.101] Deallocated fast sync bloom items=193505139 errorrate=0.001 INFO [04-15|11:16:26.160] Fast sync complete, auto disabling
Chaindata - 42GB Ancient - 63GB
@erickcrus you may wan to restart your sync? Use 1.0.7 though i don't think it makes much of a difference.
I kinda get same issue, after fast sync finished, it switch to full sync mode, and the usage of disk increases extremely fast(70-80G per day),
the ancient is not that much, but chaindata never reduce itself, as i know the client will remove old data from levedb and save to ancient.
It seems it didn't happen.
same issuse, high disk usage I can't afford
Ancient disk will increase very very slowly. Geth 1.10 decreases more space on chaindata by limiting the no of transaction it keeps (1year by default)
Ancient disk will increase very very slowly. Geth 1.10 decreases more space on chaindata by limiting the no of transaction it keeps (1year by default)
yes, Ancient disk increases very very slowly. but the chaindata keeps growing very fast, is there any way to reduce it for current bsc version
My BSC node has been running for around 6 hours, finished the sync and on 50,500,000 state entries.
My server has 64GB of RAM, SSD with a 16 core AMD EPYC 7282
EDIT: Has been running for another ~12 hours and is currently on 90,000,000 state entries. EDIT 2: Has been running for 4 more days and is on 155,017,712 state entries
Just another data point -- in the past 24 hours, my BSC node running the upgrade_1.10.2 branch has went from 264,241,710 knownStates to 286,136,429. Storage space used so far is in the neighborhood of 166GiB.
FYI, knownStates at 303238120 at 2021.05.18 14:20 UTC, chain data at 209GiB, version 1.0.7-hf.3, sync took 6 hours to complete.
Could someone please update with the current knownStates count?
Can knownStates info be found somewhere on BscScan ?
Can knownStates info be found somewhere on BscScan ?
nope
knownStates will vary across nodes, and will only really be representative of fast sync progress if your node is fast enough to handle the sync process (especially the state trie entry sync process)
iirc a month ago you probably wouldn't exceed ~350M knownStates before sync completion (again, provided that your node hardware is up to scratch), so if you're seeing 500M+ knownStates (or state trie entries still being downloaded even though your node's already downloading block headers and receipts for the newest blocks) then there's probably something wrong with your setup
currently I'm at ~270M ... wanted to understand the ETA
Already at ~340M..
@freaker2k7 paste the last ~50ish lines of your log here
try=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:38.209] Imported new state entries count=384 elapsed=2.981ms processed=399,899,141 pending=33935 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:38.712] Imported new block headers count=1 elapsed="489.485µs" number=9,324,464 hash=7fe2ad..9aa5ad
INFO [07-20|14:33:38.782] Imported new state entries count=384 elapsed=3.693ms processed=399,899,525 pending=33813 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:39.585] Imported new state entries count=384 elapsed=1.639ms processed=399,899,909 pending=33964 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:40.172] Imported new state entries count=384 elapsed=5.076ms processed=399,900,293 pending=33709 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:41.322] Imported new state entries count=384 elapsed=2.198ms processed=399,900,677 pending=33760 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:42.081] Imported new block headers count=1 elapsed="467.42µs" number=9,324,465 hash=dcba37..b97d65
INFO [07-20|14:33:42.372] Imported new state entries count=384 elapsed=1.702ms processed=399,901,061 pending=33994 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:43.413] Imported new state entries count=384 elapsed=1.545ms processed=399,901,445 pending=34185 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:44.383] Imported new state entries count=384 elapsed=1.828ms processed=399,901,829 pending=34293 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:45.413] Imported new state entries count=768 elapsed=6.811ms processed=399,902,597 pending=33971 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:45.452] Imported new block headers count=1 elapsed="468.861µs" number=9,324,466 hash=833821..d8b24e
INFO [07-20|14:33:46.436] Imported new state entries count=384 elapsed="688.338µs" processed=399,902,981 pending=34610 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:47.147] Imported new state entries count=384 elapsed=4.804ms processed=399,903,365 pending=34525 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:48.826] Imported new block headers count=2 elapsed="951.489µs" number=9,324,468 hash=ba8cd2..85494a
INFO [07-20|14:33:48.873] Imported new state entries count=768 elapsed=8.657ms processed=399,904,133 pending=34701 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:50.412] Imported new state entries count=768 elapsed=2.968ms processed=399,904,901 pending=35078 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:51.270] Imported new state entries count=768 elapsed=6.682ms processed=399,905,669 pending=35042 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:52.195] Imported new block headers count=1 elapsed="484.243µs" number=9,324,469 hash=8aee47..b6ebec
INFO [07-20|14:33:52.633] Imported new state entries count=768 elapsed=9.408ms processed=399,906,437 pending=34190 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:53.742] Imported new state entries count=384 elapsed=1.331ms processed=399,906,821 pending=34374 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:54.963] Imported new state entries count=384 elapsed=1.134ms processed=399,907,205 pending=34626 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:55.522] Imported new state entries count=384 elapsed=4.252ms processed=399,907,589 pending=34534 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:55.565] Imported new block headers count=1 elapsed="387.42µs" number=9,324,470 hash=402b56..98e531
INFO [07-20|14:33:56.286] Imported new state entries count=384 elapsed=1.676ms processed=399,907,973 pending=35295 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:56.488] Imported new state entries count=384 elapsed=2.669ms processed=399,908,357 pending=36920 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:56.987] Imported new state entries count=768 elapsed=10.613ms processed=399,909,125 pending=36006 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:57.964] Imported new state entries count=1152 elapsed=11.376ms processed=399,910,277 pending=35265 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:59.261] Imported new state entries count=768 elapsed=2.636ms processed=399,911,045 pending=35595 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:59.335] Imported new block headers count=1 elapsed="511.942µs" number=9,324,471 hash=b13c70..04ca54
INFO [07-20|14:33:59.957] Imported new state entries count=384 elapsed=3.805ms processed=399,911,429 pending=35655 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:33:59.960] Downloader queue stats receiptTasks=0 blockTasks=0 itemSize=349.10KiB throttle=188
INFO [07-20|14:34:00.604] Imported new state entries count=384 elapsed="925.756µs" processed=399,911,813 pending=36089 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:01.147] Imported new state entries count=384 elapsed="149.936µs" processed=399,912,197 pending=36646 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:02.094] Imported new state entries count=768 elapsed=5.313ms processed=399,912,965 pending=36814 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:02.698] Imported new state entries count=384 elapsed=2.833ms processed=399,913,349 pending=37061 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:02.706] Imported new block headers count=1 elapsed="866.023µs" number=9,324,472 hash=8e4477..f434aa
INFO [07-20|14:34:03.359] Imported new state entries count=384 elapsed="90.245µs" processed=399,913,733 pending=37653 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:03.844] Imported new state entries count=384 elapsed=2.596ms processed=399,914,117 pending=37811 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:04.320] Imported new state entries count=768 elapsed=9.071ms processed=399,914,885 pending=37048 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:04.687] Imported new state entries count=384 elapsed=4.238ms processed=399,915,269 pending=36896 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:06.076] Imported new block headers count=1 elapsed="461.728µs" number=9,324,473 hash=d561e5..3f3ee5
INFO [07-20|14:34:06.226] Imported new state entries count=384 elapsed="147.428µs" processed=399,915,653 pending=37276 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:07.805] Imported new state entries count=384 elapsed="95.059µs" processed=399,916,037 pending=37653 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:08.737] Imported new state entries count=384 elapsed=5.326ms processed=399,916,421 pending=37185 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:09.447] Imported new block headers count=1 elapsed="647.812µs" number=9,324,474 hash=15e073..baec34
INFO [07-20|14:34:10.320] Imported new state entries count=384 elapsed="684.137µs" processed=399,916,805 pending=37497 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:11.719] Imported new state entries count=384 elapsed="425.472µs" processed=399,917,189 pending=37848 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:12.817] Imported new block headers count=2 elapsed="883.414µs" number=9,324,476 hash=673d19..ebc684
INFO [07-20|14:34:12.882] Imported new state entries count=384 elapsed="162.011µs" processed=399,917,573 pending=38216 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:14.095] Imported new state entries count=384 elapsed=1.178ms processed=399,917,957 pending=38488 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:14.601] Imported new state entries count=384 elapsed=5.339ms processed=399,918,341 pending=37993 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:15.354] Imported new state entries count=384 elapsed=4.410ms processed=399,918,725 pending=37710 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:16.186] Imported new block headers count=1 elapsed="489.783µs" number=9,324,477 hash=a081f2..fc5644
INFO [07-20|14:34:16.364] Imported new state entries count=384 elapsed="843.388µs" processed=399,919,109 pending=37967 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:16.773] Imported new state entries count=768 elapsed=1.001ms processed=399,919,877 pending=38623 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:17.485] Imported new state entries count=768 elapsed=2.396ms processed=399,920,645 pending=39075 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:17.912] Imported new state entries count=768 elapsed="992.631µs" processed=399,921,413 pending=39761 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:18.653] Imported new state entries count=768 elapsed=2.915ms processed=399,922,181 pending=40090 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:19.074] Imported new state entries count=768 elapsed=8.180ms processed=399,922,949 pending=39385 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:19.424] Imported new state entries count=1536 elapsed=19.445ms processed=399,924,485 pending=37366 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:19.853] Imported new state entries count=1920 elapsed=31.446ms processed=399,926,405 pending=33670 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:19.864] Imported new block headers count=1 elapsed="504.646µs" number=9,324,478 hash=e8b4c0..37f6a6
INFO [07-20|14:34:20.092] Imported new state entries count=768 elapsed=11.391ms processed=399,927,173 pending=32706 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:20.455] Imported new state entries count=384 elapsed=3.726ms processed=399,927,557 pending=32610 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:20.884] Imported new state entries count=1152 elapsed=20.054ms processed=399,928,709 pending=30295 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:21.597] Imported new state entries count=768 elapsed=10.085ms processed=399,929,477 pending=29254 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:22.011] Imported new state entries count=384 elapsed=4.605ms processed=399,929,861 pending=28931 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:22.779] Imported new state entries count=768 elapsed=6.663ms processed=399,930,629 pending=28748 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:23.158] Imported new state entries count=384 elapsed=4.261ms processed=399,931,013 pending=28542 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:23.234] Imported new block headers count=1 elapsed="497.802µs" number=9,324,479 hash=4c9d30..7cf942
INFO [07-20|14:34:23.742] Imported new state entries count=384 elapsed=2.368ms processed=399,931,397 pending=28565 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:24.388] Imported new state entries count=384 elapsed=1.523ms processed=399,931,781 pending=29305 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:25.090] Imported new state entries count=384 elapsed=1.712ms processed=399,932,165 pending=30113 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:25.582] Imported new state entries count=384 elapsed=2.996ms processed=399,932,549 pending=30844 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:26.015] Imported new state entries count=384 elapsed=2.168ms processed=399,932,933 pending=33075 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:26.604] Imported new block headers count=1 elapsed="534.253µs" number=9,324,480 hash=ae639f..ddd1f8
INFO [07-20|14:34:26.720] Imported new state entries count=384 elapsed="252.631µs" processed=399,933,317 pending=34911 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
INFO [07-20|14:34:27.300] Imported new state entries count=384 elapsed=2.995ms processed=399,933,701 pending=35594 trieretry=0 coderetry=0 duplicate=405 unexpected=3806
{ currentBlock: 9324370, highestBlock: 9324493, knownStates: 400215462, pulledStates: 400119557, startingBlock: 0 }
@freaker2k7 the fact that it's still downloading state entries at this point is a little worrying, but if you've been syncing it for less than a day i'd wait a bit more
what sort of hardware are you running your node on? do you have dedicated, directly-attached (e.g. not AWS EBS) SSD storage, preferably NVMe?