{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7486","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7486/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7486/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7486/events","html_url":"https://github.com/bitcoin/bitcoin/issues/7486","id":132293572,"number":7486,"title":"getnewaddress very slow to respond: python-bitcoinrpc often times-out","user":{"login":"pinheadmz","id":2084648,"avatar_url":"https://avatars.githubusercontent.com/u/2084648?v=3","gravatar_id":"","url":"https://api.github.com/users/pinheadmz","html_url":"https://github.com/pinheadmz","followers_url":"https://api.github.com/users/pinheadmz/followers","following_url":"https://api.github.com/users/pinheadmz/following{/other_user}","gists_url":"https://api.github.com/users/pinheadmz/gists{/gist_id}","starred_url":"https://api.github.com/users/pinheadmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinheadmz/subscriptions","organizations_url":"https://api.github.com/users/pinheadmz/orgs","repos_url":"https://api.github.com/users/pinheadmz/repos","events_url":"https://api.github.com/users/pinheadmz/events{/privacy}","received_events_url":"https://api.github.com/users/pinheadmz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/RPC","name":"RPC","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-09T00:04:04Z","updated_at":"2016-02-09T02:28:08Z","closed_at":null,"body":"Bitcoin 0.11 on a Raspberry Pi 2\r\n\r\nFrom the command line, `bitcoin-cli getnewaddress` can take up to 1 minute to respond.\r\n\r\nWhen using [jgarzik's python bitcoin RPC module](https://github.com/jgarzik/python-bitcoinrpc) to make this RPC call, it often times out.\r\n\r\nSometimes after it times-out on `getnewaddress`, even stranger behavior follows: `getmempoolinfo` reports NO INCREASE in mempool size until the original script that timed-out is interrupted and killed. Even when requesting `bitcoin-cli getmempoolinfo` from a separate terminal session, without the python RPC module.\r\n\r\n`bitcoin-cli dumpwallet` still responds immediately. Wallet is unencrypted, only 100 keys, only 327kB"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/181673583","html_url":"https://github.com/bitcoin/bitcoin/issues/7486#issuecomment-181673583","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7486","id":181673583,"user":{"login":"pstratem","id":620611,"avatar_url":"https://avatars.githubusercontent.com/u/620611?v=3","gravatar_id":"","url":"https://api.github.com/users/pstratem","html_url":"https://github.com/pstratem","followers_url":"https://api.github.com/users/pstratem/followers","following_url":"https://api.github.com/users/pstratem/following{/other_user}","gists_url":"https://api.github.com/users/pstratem/gists{/gist_id}","starred_url":"https://api.github.com/users/pstratem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstratem/subscriptions","organizations_url":"https://api.github.com/users/pstratem/orgs","repos_url":"https://api.github.com/users/pstratem/repos","events_url":"https://api.github.com/users/pstratem/events{/privacy}","received_events_url":"https://api.github.com/users/pstratem/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T02:28:08Z","updated_at":"2016-02-09T02:28:08Z","body":"@pinheadmz getnewaddress triggers a flush of the wallet which causes bdb to issue a number of fsync calls which trigger a flush of the entire write cache\r\n\r\nthe problem is almost certainly just very very slow io from using a flash drive."}}