{"action":"opened","number":1459,"pull_request":{"url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459","id":229734450,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NzM0NDUw","html_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/1459","diff_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/1459.diff","patch_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/1459.patch","issue_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/1459","number":1459,"state":"open","locked":false,"title":"Change settings in leveldb to prevent write pauses during reindex or …","user":{"login":"ptschip","id":12862928,"node_id":"MDQ6VXNlcjEyODYyOTI4","avatar_url":"https://avatars0.githubusercontent.com/u/12862928?v=4","gravatar_id":"","url":"https://api.github.com/users/ptschip","html_url":"https://github.com/ptschip","followers_url":"https://api.github.com/users/ptschip/followers","following_url":"https://api.github.com/users/ptschip/following{/other_user}","gists_url":"https://api.github.com/users/ptschip/gists{/gist_id}","starred_url":"https://api.github.com/users/ptschip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptschip/subscriptions","organizations_url":"https://api.github.com/users/ptschip/orgs","repos_url":"https://api.github.com/users/ptschip/repos","events_url":"https://api.github.com/users/ptschip/events{/privacy}","received_events_url":"https://api.github.com/users/ptschip/received_events","type":"User","site_admin":false},"body":"…initial sync\r\n\r\nThe reindex or sync process can be severely lengthened in time due to\r\nthe compaction process falling behind. There are settings in leveldb\r\nthat prevent writing to the database in the event that there are 12\r\nuncompacted Level-0 files. This causes bitcoin to halt the sync/reindex\r\nprocess until compaction has reduced the number of files neededing\r\ncompaction. This causes delays and hangups in the bitcoin process which\r\ngives the appearance that the node is hung...and indeed it is for a\r\ntime.  Furthermore this halting process is very apparent when running\r\nwith -tindex=1, which creates even more compaction which then conflicts\r\nwith the compaction happening in the utxo set.\r\n\r\nSet the leveldb stop write trigger to 4096 files (up from just 12). This\r\nshould prevent, even on slower and memory deficient systems, from\r\nhitting the limits and stopping the sync or reindex process.\r\n\r\nNOTE: this halting process can be easily seen by running with txindex=1 and syncing or reindexing on a spinning disk. This issues was first brought up a few months back from, I believe @digitsu ,  who was having a very slow sync when running with txindex=1. \r\n\r\nTESTING NOTE:  Testing without this patch and reindexing on a spinning disk with -txindex=1, yeilded took 9hr 12min, while with the patch 4hr 10 min; And while the reindex with patch finished much faster, there is a period of time after the reindex is complete where performance is slightly degraded until the compactions are complete. However by running a few getrawtransactions which hit the txindex the degradation is not all that much, (still sub second retrievals) and block processing performance doesn't seem to be impacted during this compaction period.","created_at":"2018-11-09T15:46:09Z","updated_at":"2018-11-09T15:46:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459/commits","review_comments_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459/comments","review_comment_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/1459/comments","statuses_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/statuses/abceb27bce6b2a64db392c345a998d7ee78c11a0","head":{"label":"ptschip:dev_leveldb_settings","ref":"dev_leveldb_settings","sha":"abceb27bce6b2a64db392c345a998d7ee78c11a0","user":{"login":"ptschip","id":12862928,"node_id":"MDQ6VXNlcjEyODYyOTI4","avatar_url":"https://avatars0.githubusercontent.com/u/12862928?v=4","gravatar_id":"","url":"https://api.github.com/users/ptschip","html_url":"https://github.com/ptschip","followers_url":"https://api.github.com/users/ptschip/followers","following_url":"https://api.github.com/users/ptschip/following{/other_user}","gists_url":"https://api.github.com/users/ptschip/gists{/gist_id}","starred_url":"https://api.github.com/users/ptschip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptschip/subscriptions","organizations_url":"https://api.github.com/users/ptschip/orgs","repos_url":"https://api.github.com/users/ptschip/repos","events_url":"https://api.github.com/users/ptschip/events{/privacy}","received_events_url":"https://api.github.com/users/ptschip/received_events","type":"User","site_admin":false},"repo":{"id":131705434,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE3MDU0MzQ=","name":"BitcoinUnlimited","full_name":"ptschip/BitcoinUnlimited","private":false,"owner":{"login":"ptschip","id":12862928,"node_id":"MDQ6VXNlcjEyODYyOTI4","avatar_url":"https://avatars0.githubusercontent.com/u/12862928?v=4","gravatar_id":"","url":"https://api.github.com/users/ptschip","html_url":"https://github.com/ptschip","followers_url":"https://api.github.com/users/ptschip/followers","following_url":"https://api.github.com/users/ptschip/following{/other_user}","gists_url":"https://api.github.com/users/ptschip/gists{/gist_id}","starred_url":"https://api.github.com/users/ptschip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptschip/subscriptions","organizations_url":"https://api.github.com/users/ptschip/orgs","repos_url":"https://api.github.com/users/ptschip/repos","events_url":"https://api.github.com/users/ptschip/events{/privacy}","received_events_url":"https://api.github.com/users/ptschip/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ptschip/BitcoinUnlimited","description":"Bitcoin Unlimited integration/staging tree","fork":true,"url":"https://api.github.com/repos/ptschip/BitcoinUnlimited","forks_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/forks","keys_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/teams","hooks_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/hooks","issue_events_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/issues/events{/number}","events_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/events","assignees_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/assignees{/user}","branches_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/branches{/branch}","tags_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/tags","blobs_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/git/refs{/sha}","trees_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/statuses/{sha}","languages_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/languages","stargazers_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/stargazers","contributors_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/contributors","subscribers_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/subscribers","subscription_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/subscription","commits_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/commits{/sha}","git_commits_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/git/commits{/sha}","comments_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/comments{/number}","issue_comment_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/issues/comments{/number}","contents_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/contents/{+path}","compare_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/merges","archive_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/downloads","issues_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/issues{/number}","pulls_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/pulls{/number}","milestones_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/milestones{/number}","notifications_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/labels{/name}","releases_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/releases{/id}","deployments_url":"https://api.github.com/repos/ptschip/BitcoinUnlimited/deployments","created_at":"2018-05-01T11:26:54Z","updated_at":"2018-05-01T11:27:01Z","pushed_at":"2018-11-09T15:34:24Z","git_url":"git://github.com/ptschip/BitcoinUnlimited.git","ssh_url":"git@github.com:ptschip/BitcoinUnlimited.git","clone_url":"https://github.com/ptschip/BitcoinUnlimited.git","svn_url":"https://github.com/ptschip/BitcoinUnlimited","homepage":"http://www.bitcoinunlimited.info/download.html","size":97223,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"BitcoinCash"}},"base":{"label":"BitcoinUnlimited:dev","ref":"dev","sha":"dee3a88b65ae4c71fa2fee080148ccce9a721f85","user":{"login":"BitcoinUnlimited","id":14125627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTI1NjI3","avatar_url":"https://avatars0.githubusercontent.com/u/14125627?v=4","gravatar_id":"","url":"https://api.github.com/users/BitcoinUnlimited","html_url":"https://github.com/BitcoinUnlimited","followers_url":"https://api.github.com/users/BitcoinUnlimited/followers","following_url":"https://api.github.com/users/BitcoinUnlimited/following{/other_user}","gists_url":"https://api.github.com/users/BitcoinUnlimited/gists{/gist_id}","starred_url":"https://api.github.com/users/BitcoinUnlimited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BitcoinUnlimited/subscriptions","organizations_url":"https://api.github.com/users/BitcoinUnlimited/orgs","repos_url":"https://api.github.com/users/BitcoinUnlimited/repos","events_url":"https://api.github.com/users/BitcoinUnlimited/events{/privacy}","received_events_url":"https://api.github.com/users/BitcoinUnlimited/received_events","type":"Organization","site_admin":false},"repo":{"id":18613259,"node_id":"MDEwOlJlcG9zaXRvcnkxODYxMzI1OQ==","name":"BitcoinUnlimited","full_name":"BitcoinUnlimited/BitcoinUnlimited","private":false,"owner":{"login":"BitcoinUnlimited","id":14125627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTI1NjI3","avatar_url":"https://avatars0.githubusercontent.com/u/14125627?v=4","gravatar_id":"","url":"https://api.github.com/users/BitcoinUnlimited","html_url":"https://github.com/BitcoinUnlimited","followers_url":"https://api.github.com/users/BitcoinUnlimited/followers","following_url":"https://api.github.com/users/BitcoinUnlimited/following{/other_user}","gists_url":"https://api.github.com/users/BitcoinUnlimited/gists{/gist_id}","starred_url":"https://api.github.com/users/BitcoinUnlimited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BitcoinUnlimited/subscriptions","organizations_url":"https://api.github.com/users/BitcoinUnlimited/orgs","repos_url":"https://api.github.com/users/BitcoinUnlimited/repos","events_url":"https://api.github.com/users/BitcoinUnlimited/events{/privacy}","received_events_url":"https://api.github.com/users/BitcoinUnlimited/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited","description":"Bitcoin Unlimited integration/staging tree","fork":false,"url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited","forks_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/forks","keys_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/teams","hooks_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/hooks","issue_events_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/events{/number}","events_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/events","assignees_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/assignees{/user}","branches_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/branches{/branch}","tags_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/tags","blobs_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/git/refs{/sha}","trees_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/statuses/{sha}","languages_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/languages","stargazers_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/stargazers","contributors_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/contributors","subscribers_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/subscribers","subscription_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/subscription","commits_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/commits{/sha}","git_commits_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/git/commits{/sha}","comments_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/comments{/number}","issue_comment_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/comments{/number}","contents_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/contents/{+path}","compare_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/merges","archive_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/downloads","issues_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues{/number}","pulls_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls{/number}","milestones_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/milestones{/number}","notifications_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/labels{/name}","releases_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/releases{/id}","deployments_url":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/deployments","created_at":"2014-04-09T21:03:00Z","updated_at":"2018-11-08T21:02:59Z","pushed_at":"2018-11-09T14:17:00Z","git_url":"git://github.com/BitcoinUnlimited/BitcoinUnlimited.git","ssh_url":"git@github.com:BitcoinUnlimited/BitcoinUnlimited.git","clone_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited.git","svn_url":"https://github.com/BitcoinUnlimited/BitcoinUnlimited","homepage":"http://www.bitcoinunlimited.info/download.html","size":70268,"stargazers_count":388,"watchers_count":388,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":171,"mirror_url":null,"archived":false,"open_issues_count":89,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":171,"open_issues":89,"watchers":388,"default_branch":"release"}},"_links":{"self":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459"},"html":{"href":"https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/1459"},"issue":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/1459"},"comments":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/issues/1459/comments"},"review_comments":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459/comments"},"review_comment":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/pulls/1459/commits"},"statuses":{"href":"https://api.github.com/repos/BitcoinUnlimited/BitcoinUnlimited/statuses/abceb27bce6b2a64db392c345a998d7ee78c11a0"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"ptschip"}}