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

gero keeps generating DAG #10

Open
apple601601601 opened this issue Jul 13, 2019 · 2 comments
Open

gero keeps generating DAG #10

apple601601601 opened this issue Jul 13, 2019 · 2 comments

Comments

@apple601601601
Copy link

gero keeps generating DAG and used 100% CPU of all cores and fiels starting to fill up my home/.ethash directory when I start it using the default startup.sh,
then I changed the parameter in startup.sh to the following:
cmd="bin/gero --config ${CONFIG_PATH} --datadir ${DATADIR_OPTION} --port ${PORT_OPTION} ${NET_OPTION} ${RPC_OPTION} ${KEYSTORE_OPTION} --ethash.dagdir ${DEFAULT_ETH_HASH_DAG_DIR} --cache 1024 --ethash.cachesinmem 1 --ethash.cachesondisk 10 --ethash.dagsinmem 1 --ethash.dagsondisk 4 --gcmode full --syncmode fast --fakepow --nousb"
Though the space now fills up slower, the program still tries to generage DAG after it started for a while and keeps using 100% CPU.
Could you pease help have a look?
Part of the logs below

INFO [07-13|21:06:28.376] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m40.129s
INFO [07-13|21:06:28.481] Generated ethash verification cache      epoch=33 elapsed=8m40.233s
INFO [07-13|21:06:29.201] Generating DAG in progress               epoch=34 percentage=1  elapsed=6.504s
INFO [07-13|21:06:29.491] Generating DAG in progress               epoch=33 percentage=93 elapsed=7m42.946s
INFO [07-13|21:06:30.325] Generating DAG in progress               epoch=34 percentage=2  elapsed=7.628s
INFO [07-13|21:06:30.573] Generating DAG in progress               epoch=33 percentage=98 elapsed=8m22.553s
INFO [07-13|21:06:30.640] Generating DAG in progress               epoch=33 percentage=94 elapsed=7m44.095s
INFO [07-13|21:06:31.405] Generating DAG in progress               epoch=34 percentage=3  elapsed=8.708s
INFO [07-13|21:06:31.820] Generating DAG in progress               epoch=33 percentage=95 elapsed=7m45.275s
INFO [07-13|21:06:32.354] Generating DAG in progress               epoch=34 percentage=4  elapsed=9.657s
INFO [07-13|21:06:32.502] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m44.604s
INFO [07-13|21:06:32.561] Generated ethash verification cache      epoch=33 elapsed=8m44.663s
INFO [07-13|21:06:33.022] Generating DAG in progress               epoch=33 percentage=96 elapsed=7m46.477s
INFO [07-13|21:06:33.048] Generating DAG in progress               epoch=34 percentage=5  elapsed=10.351s
INFO [07-13|21:06:33.658] Imported new chain segment               blocks=29  txs=3  mgas=0.075 elapsed=21.379s   mgasps=0.004 number=988882 hash=819e89…3a22dd cache=74.15mB
INFO [07-13|21:06:33.668] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m23.906s
INFO [07-13|21:06:33.792] Generated ethash verification cache      epoch=33 elapsed=8m24.030s
INFO [07-13|21:06:34.006] Generating DAG in progress               epoch=34 percentage=6  elapsed=11.309s
INFO [07-13|21:06:34.458] Generating DAG in progress               epoch=33 percentage=97 elapsed=7m47.913s
INFO [07-13|21:06:34.559] Generating DAG in progress               epoch=34 percentage=7  elapsed=11.862s
INFO [07-13|21:06:34.573] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m29.754s
INFO [07-13|21:06:34.617] Generated ethash verification cache      epoch=33 elapsed=8m29.798s
INFO [07-13|21:06:34.741] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m26.439s
INFO [07-13|21:06:34.757] Generated ethash verification cache      epoch=33 elapsed=8m26.456s
INFO [07-13|21:06:35.050] Generating DAG in progress               epoch=34 percentage=8  elapsed=12.353s
INFO [07-13|21:06:35.397] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m32.158s
INFO [07-13|21:06:35.411] Generated ethash verification cache      epoch=33 elapsed=8m32.172s
INFO [07-13|21:06:35.472] Generating DAG in progress               epoch=34 percentage=9  elapsed=12.775s
INFO [07-13|21:06:35.533] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m29.205s
INFO [07-13|21:06:35.544] Generated ethash verification cache      epoch=33 elapsed=8m29.215s
INFO [07-13|21:06:35.763] Generating DAG in progress               epoch=33 percentage=98 elapsed=7m49.217s
INFO [07-13|21:06:35.806] Generating DAG in progress               epoch=34 percentage=10 elapsed=13.108s
INFO [07-13|21:06:36.106] Generating DAG in progress               epoch=34 percentage=11 elapsed=13.409s
INFO [07-13|21:06:36.440] Generating DAG in progress               epoch=34 percentage=12 elapsed=13.743s
INFO [07-13|21:06:36.767] Generating DAG in progress               epoch=34 percentage=13 elapsed=14.070s
INFO [07-13|21:06:37.051] Generating DAG in progress               epoch=34 percentage=14 elapsed=14.354s
INFO [07-13|21:06:37.334] Generating DAG in progress               epoch=34 percentage=15 elapsed=14.637s
INFO [07-13|21:06:37.397] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m29.209s
INFO [07-13|21:06:37.427] Generated ethash verification cache      epoch=33 elapsed=8m29.240s
INFO [07-13|21:06:37.430] Generating DAG in progress               epoch=33 percentage=99 elapsed=8m29.409s
INFO [07-13|21:06:37.493] Generated ethash verification cache      epoch=33 elapsed=8m29.472s
INFO [07-13|21:06:37.632] Generating DAG in progress               epoch=34 percentage=16 elapsed=14.935s
INFO [07-13|21:06:37.861] Generating DAG in progress               epoch=34 percentage=17 elapsed=15.164s
INFO [07-13|21:06:38.089] Generating DAG in progress               epoch=34 percentage=18 elapsed=15.392s
INFO [07-13|21:06:38.322] Generating DAG in progress               epoch=34 percentage=19 elapsed=15.625s
INFO [07-13|21:06:38.565] Generating DAG in progress               epoch=34 percentage=20 elapsed=15.868s
INFO [07-13|21:06:38.807] Generating DAG in progress               epoch=34 percentage=21 elapsed=16.110s
INFO [07-13|21:06:39.039] Generating DAG in progress               epoch=34 percentage=22 elapsed=16.342s
INFO [07-13|21:06:39.276] Generating DAG in progress               epoch=34 percentage=23 elapsed=16.579s
INFO [07-13|21:06:39.507] Generating DAG in progress               epoch=34 percentage=24 elapsed=16.810s
INFO [07-13|21:06:39.745] Generating DAG in progress               epoch=34 percentage=25 elapsed=17.048s
INFO [07-13|21:06:39.978] Generating DAG in progress               epoch=34 percentage=26 elapsed=17.281s
INFO [07-13|21:06:40.213] Generating DAG in progress               epoch=34 percentage=27 elapsed=17.516s
INFO [07-13|21:06:40.410] Generating DAG in progress               epoch=33 percentage=99 elapsed=7m53.865s
INFO [07-13|21:06:40.422] Generated ethash verification cache      epoch=33 elapsed=7m53.877s
INFO [07-13|21:06:40.445] Generating DAG in progress               epoch=34 percentage=28 elapsed=17.748s

@gordon-sero
Copy link
Contributor

@apple601601601 thank you
now the v1.0.0-rc2 fixed this bug.

@apple601601601
Copy link
Author

@apple601601601 thank you
now the v1.0.0-rc2 fixed this bug.

Confirm fixed.
cmd changed to following and working fine.

cmd="bin/gero --config ${CONFIG_PATH} --datadir ${DATADIR_OPTION} --port ${PORT_OPTION} ${NET_OPTION} ${RPC_OPTION} ${KEYSTORE_OPTION} --ethash.dagdir ${DEFAULT_ETH_HASH_DAG_DIR} --nousb"

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

No branches or pull requests

2 participants