{"action":"closed","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/14712","repository_url":"https://api.github.com/repos/ethereum/go-ethereum","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/14712/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/14712/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/14712/events","html_url":"https://github.com/ethereum/go-ethereum/issues/14712","id":238746829,"node_id":"MDU6SXNzdWUyMzg3NDY4Mjk=","number":14712,"title":"initial sync unusably slow","user":{"login":"akosmaroy","id":333140,"node_id":"MDQ6VXNlcjMzMzE0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/333140?v=4","gravatar_id":"","url":"https://api.github.com/users/akosmaroy","html_url":"https://github.com/akosmaroy","followers_url":"https://api.github.com/users/akosmaroy/followers","following_url":"https://api.github.com/users/akosmaroy/following{/other_user}","gists_url":"https://api.github.com/users/akosmaroy/gists{/gist_id}","starred_url":"https://api.github.com/users/akosmaroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akosmaroy/subscriptions","organizations_url":"https://api.github.com/users/akosmaroy/orgs","repos_url":"https://api.github.com/users/akosmaroy/repos","events_url":"https://api.github.com/users/akosmaroy/events{/privacy}","received_events_url":"https://api.github.com/users/akosmaroy/received_events","type":"User","site_admin":false},"labels":[{"id":856638432,"node_id":"MDU6TGFiZWw4NTY2Mzg0MzI=","url":"https://api.github.com/repos/ethereum/go-ethereum/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-27T06:13:16Z","updated_at":"2018-08-14T14:43:13Z","closed_at":"2018-08-14T14:43:13Z","author_association":"NONE","body":"#### System information\r\n\r\nGeth version: `geth version`\r\n\r\n```\r\n$ geth version\r\nGeth\r\nVersion: 1.6.6-stable\r\nGit Commit: 10a45cb59bd9bc9f717817afc029a57b222e558d\r\nArchitecture: amd64\r\nProtocol Versions: [63 62]\r\nNetwork Id: 1\r\nGo Version: go1.8.1\r\nOperating System: linux\r\nGOPATH=\r\nGOROOT=/usr/lib/go-1.8\r\n\r\n```\r\n\r\nOS & Version: Windows/Linux/OSX\r\n\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 17.04\r\nRelease:\t17.04\r\nCodename:\tzesty\r\n\r\n```\r\n\r\nCommit hash : (if `develop`)\r\n\r\n#### Expected behaviour\r\n\r\ngeth after initial startup should sync in a reasonable timeframe, so that it can be used.\r\n\r\nor that one could download a recent snapshot and import it, and then sync the rest.\r\n\r\n#### Actual behaviour\r\n\r\ngeth crashes on a regular basis due to running out of file descriptors. thus the --fast option, which only works with a clean setup, only speeds things up until the first crash. on each start afterwards, sync will be slow.\r\n\r\ncurrently it does cca 1000 blocks / 15 minutes, that is  **the sync speed is cca 4000 blocks / hour**. as I have cca. 300000 blocks left, the remaining sync would take 72 more hours.\r\n\r\n\r\n it will also be full of rolled back / failed syncs like this one:\r\n\r\n```\r\nWARN [06-27|07:59:24] Rolled back headers                      count=732 header=3648398->3647684 fast=3646096->3646096 block=0->0\r\nWARN [06-27|07:59:24] Synchronisation failed, dropping peer    peer=5ff56dd7517e145f err=\"retrieved hash chain is invalid\"\r\nWARN [06-27|07:59:39] Synchronisation failed, dropping peer    peer=697c8a28c4b39423 err=\"action from bad peer ignored\"\r\n```\r\nand the following:\r\n\r\n```\r\nWARN [06-27|08:08:28] Lied about chain head                    peer=d9794b3d00ccee32 reported=2131871 found=2132047\r\nWARN [06-27|08:08:28] Synchronisation failed, dropping peer    peer=d9794b3d00ccee32 err=\"peer is stalling\"\r\nWARN [06-27|08:08:58] Synchronisation failed, retrying         err=\"block download canceled (requested)\"\r\n\r\nWARN [06-27|08:09:26] Synchronisation failed, retrying         err=\"block download canceled (requested)\"\r\nWARN [06-27|08:10:07] Synchronisation failed, retrying         err=\"block download canceled (requested)\"\r\n\r\n```\r\n\r\n\r\nre file handles:\r\n\r\n```\r\n$ ulimit -n\r\n4096\r\n```\r\nbut still at startup I get:\r\n\r\n`INFO [06-27|07:53:17] Allocated cache and file handles         database=/home/akos/.ethereum/geth/chaindata cache=1024 handles=1024\r\n`\r\n(note: handles=1024)\r\n\r\nalso see:\r\n\r\n```\r\n$ lsof | awk '{print $1}' | uniq -c | sort -rn | head -n 1\r\n  16170 geth\r\n```\r\n\r\nonly torrents that appear to offer a recent state are stale and cannot be used. so one can't speed up that way either.\r\n\r\n\r\n#### Steps to reproduce the behaviour\r\n\r\ninstall geth from the ubuntu PPA and try to start to use it\r\n\r\n#### Backtrace\r\n\r\n````\r\nn/a\r\n````\r\n"}}
{"actor":{"display_login":"stale"}}