{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/18317","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/18317/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/18317/comments","events_url":"https://api.github.com/repos/apache/spark/issues/18317/events","html_url":"https://github.com/apache/spark/pull/18317","id":236325401,"number":18317,"title":"[SPARK-21113][CORE] Read ahead input stream to amortize disk IO cost …","user":{"login":"sitalkedia","id":11507549,"avatar_url":"https://avatars2.githubusercontent.com/u/11507549?v=4","gravatar_id":"","url":"https://api.github.com/users/sitalkedia","html_url":"https://github.com/sitalkedia","followers_url":"https://api.github.com/users/sitalkedia/followers","following_url":"https://api.github.com/users/sitalkedia/following{/other_user}","gists_url":"https://api.github.com/users/sitalkedia/gists{/gist_id}","starred_url":"https://api.github.com/users/sitalkedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitalkedia/subscriptions","organizations_url":"https://api.github.com/users/sitalkedia/orgs","repos_url":"https://api.github.com/users/sitalkedia/repos","events_url":"https://api.github.com/users/sitalkedia/events{/privacy}","received_events_url":"https://api.github.com/users/sitalkedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-06-15T21:56:14Z","updated_at":"2017-09-12T03:27:30Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/18317","html_url":"https://github.com/apache/spark/pull/18317","diff_url":"https://github.com/apache/spark/pull/18317.diff","patch_url":"https://github.com/apache/spark/pull/18317.patch"},"body":"Profiling some of our big jobs, we see that around 30% of the time is being spent in reading the spill files from disk. In order to amortize the disk IO cost, the idea is to implement a read ahead input stream which asynchronously reads ahead from the underlying input stream when specified amount of data has been read from the current buffer. It does it by maintaining two buffer - active buffer and read ahead buffer. The active buffer contains data which should be returned when a read() call is issued. The read-ahead buffer is used to asynchronously read from the underlying input stream and once the active buffer is exhausted, we flip the two buffers so that we can start reading from the read ahead buffer without being blocked in disk I/O.\r\n\r\n## How was this patch tested?\r\n\r\nTested by running a job on the cluster and could see up to 8% CPU improvement. \r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/328724290","html_url":"https://github.com/apache/spark/pull/18317#issuecomment-328724290","issue_url":"https://api.github.com/repos/apache/spark/issues/18317","id":328724290,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T03:27:30Z","updated_at":"2017-09-12T03:27:30Z","author_association":"NONE","body":"Merged build finished. Test FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}