{"action":"created","issue":{"url":"https://api.github.com/repos/getlantern/lantern_aws/issues/141","repository_url":"https://api.github.com/repos/getlantern/lantern_aws","labels_url":"https://api.github.com/repos/getlantern/lantern_aws/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/getlantern/lantern_aws/issues/141/comments","events_url":"https://api.github.com/repos/getlantern/lantern_aws/issues/141/events","html_url":"https://github.com/getlantern/lantern_aws/issues/141","id":150081929,"number":141,"title":"High disk activity in proxies with RAM to spare","user":{"login":"aranhoide","id":2204867,"avatar_url":"https://avatars.githubusercontent.com/u/2204867?v=3","gravatar_id":"","url":"https://api.github.com/users/aranhoide","html_url":"https://github.com/aranhoide","followers_url":"https://api.github.com/users/aranhoide/followers","following_url":"https://api.github.com/users/aranhoide/following{/other_user}","gists_url":"https://api.github.com/users/aranhoide/gists{/gist_id}","starred_url":"https://api.github.com/users/aranhoide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranhoide/subscriptions","organizations_url":"https://api.github.com/users/aranhoide/orgs","repos_url":"https://api.github.com/users/aranhoide/repos","events_url":"https://api.github.com/users/aranhoide/events{/privacy}","received_events_url":"https://api.github.com/users/aranhoide/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getlantern/lantern_aws/labels/Epic","name":"Epic","color":"3E4B9E"}],"state":"open","locked":false,"assignee":{"login":"uaalto","id":12701448,"avatar_url":"https://avatars.githubusercontent.com/u/12701448?v=3","gravatar_id":"","url":"https://api.github.com/users/uaalto","html_url":"https://github.com/uaalto","followers_url":"https://api.github.com/users/uaalto/followers","following_url":"https://api.github.com/users/uaalto/following{/other_user}","gists_url":"https://api.github.com/users/uaalto/gists{/gist_id}","starred_url":"https://api.github.com/users/uaalto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uaalto/subscriptions","organizations_url":"https://api.github.com/users/uaalto/orgs","repos_url":"https://api.github.com/users/uaalto/repos","events_url":"https://api.github.com/users/uaalto/events{/privacy}","received_events_url":"https://api.github.com/users/uaalto/received_events","type":"User","site_admin":false},"milestone":null,"comments":26,"created_at":"2016-04-21T13:54:39Z","updated_at":"2016-05-02T13:30:44Z","closed_at":null,"body":"Some proxies are displaying high disk activity, which results in high CPU usage (netdata lists this as `iowait`).  In proxies that are overloaded but not saturated with load, this manifests as an intermittent pattern: a few seconds with high activity and the CPU pegged, then about 2 minutes with apparently low activity overall.\r\n\r\nThe strange thing is that this is not necessarily correlated with maxed out RAM.  A server with ~200 free MBs displays this behavior (and fails fallback checks). "},"comment":{"url":"https://api.github.com/repos/getlantern/lantern_aws/issues/comments/216234794","html_url":"https://github.com/getlantern/lantern_aws/issues/141#issuecomment-216234794","issue_url":"https://api.github.com/repos/getlantern/lantern_aws/issues/141","id":216234794,"user":{"login":"aranhoide","id":2204867,"avatar_url":"https://avatars.githubusercontent.com/u/2204867?v=3","gravatar_id":"","url":"https://api.github.com/users/aranhoide","html_url":"https://github.com/aranhoide","followers_url":"https://api.github.com/users/aranhoide/followers","following_url":"https://api.github.com/users/aranhoide/following{/other_user}","gists_url":"https://api.github.com/users/aranhoide/gists{/gist_id}","starred_url":"https://api.github.com/users/aranhoide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranhoide/subscriptions","organizations_url":"https://api.github.com/users/aranhoide/orgs","repos_url":"https://api.github.com/users/aranhoide/repos","events_url":"https://api.github.com/users/aranhoide/events{/privacy}","received_events_url":"https://api.github.com/users/aranhoide/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T13:30:44Z","updated_at":"2016-05-02T13:30:44Z","body":"So it seems `pconn.br` and `pconn.bw` dominate RAM usage here.  IIUC, while this memory is billed to `dialConn` because that's where those objects are created, it's actually used for the lifetime of the returned connection.  I wonder whether the default buffer sizes could be reduced and whether that'd help with performance in our case."}}