[jira] [Commented] (YARN-3612) Resource calculation in child tasks is CPU-heavy
[ https://issues.apache.org/jira/browse/YARN-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617391#comment-14617391 ] Chris Douglas commented on YARN-3612: - bq. Moreover, I have not added the config as I do not see anyone disabling it. Thoughts ? The config change could be useful for MR jobs that want to avoid the CPU overhead. Suggest changing calls to {{nanoTime}} from {{currentTimeMillis}} since it's measuring durations. +1 overall, even without the change to {{Task}}. > Resource calculation in child tasks is CPU-heavy > > > Key: YARN-3612 > URL: https://issues.apache.org/jira/browse/YARN-3612 > Project: Hadoop YARN > Issue Type: Bug >Affects Versions: 2.7.0 >Reporter: Todd Lipcon > Labels: BB2015-05-RFC, performance > Attachments: MAPREDUCE-4469.patch, MAPREDUCE-4469_rev2.patch, > MAPREDUCE-4469_rev3.patch, MAPREDUCE-4469_rev4.patch, > MAPREDUCE-4469_rev5.patch, YARN-3612.01.patch, YARN-3612.02.patch > > > In doing some benchmarking on a hadoop-1 derived codebase, I noticed that > each of the child tasks was doing a ton of syscalls. Upon stracing, I noticed > that it's spending a lot of time looping through all the files in /proc to > calculate resource usage. > As a test, I added a flag to disable use of the ResourceCalculatorPlugin > within the tasks. On a CPU-bound 500G-sort workload, this improved total job > runtime by about 10% (map slot-seconds by 14%, reduce slot seconds by 8%) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3612) Resource calculation in child tasks is CPU-heavy
[ https://issues.apache.org/jira/browse/YARN-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537208#comment-14537208 ] Varun Saxena commented on YARN-3612: [~chris.douglas], rebased the patch and moved the JIRA to YARN as code change is primarily there. > Resource calculation in child tasks is CPU-heavy > > > Key: YARN-3612 > URL: https://issues.apache.org/jira/browse/YARN-3612 > Project: Hadoop YARN > Issue Type: Bug >Affects Versions: 2.7.0 >Reporter: Todd Lipcon >Assignee: Varun Saxena > Labels: BB2015-05-TBR > Attachments: MAPREDUCE-4469.patch, MAPREDUCE-4469_rev2.patch, > MAPREDUCE-4469_rev3.patch, MAPREDUCE-4469_rev4.patch, > MAPREDUCE-4469_rev5.patch > > > In doing some benchmarking on a hadoop-1 derived codebase, I noticed that > each of the child tasks was doing a ton of syscalls. Upon stracing, I noticed > that it's spending a lot of time looping through all the files in /proc to > calculate resource usage. > As a test, I added a flag to disable use of the ResourceCalculatorPlugin > within the tasks. On a CPU-bound 500G-sort workload, this improved total job > runtime by about 10% (map slot-seconds by 14%, reduce slot seconds by 8%) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3612) Resource calculation in child tasks is CPU-heavy
[ https://issues.apache.org/jira/browse/YARN-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537210#comment-14537210 ] Varun Saxena commented on YARN-3612: Moreover, I have not added the config as I do not see anyone disabling it. Thoughts ? > Resource calculation in child tasks is CPU-heavy > > > Key: YARN-3612 > URL: https://issues.apache.org/jira/browse/YARN-3612 > Project: Hadoop YARN > Issue Type: Bug >Affects Versions: 2.7.0 >Reporter: Todd Lipcon >Assignee: Varun Saxena > Labels: BB2015-05-TBR > Attachments: MAPREDUCE-4469.patch, MAPREDUCE-4469_rev2.patch, > MAPREDUCE-4469_rev3.patch, MAPREDUCE-4469_rev4.patch, > MAPREDUCE-4469_rev5.patch > > > In doing some benchmarking on a hadoop-1 derived codebase, I noticed that > each of the child tasks was doing a ton of syscalls. Upon stracing, I noticed > that it's spending a lot of time looping through all the files in /proc to > calculate resource usage. > As a test, I added a flag to disable use of the ResourceCalculatorPlugin > within the tasks. On a CPU-bound 500G-sort workload, this improved total job > runtime by about 10% (map slot-seconds by 14%, reduce slot seconds by 8%) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3612) Resource calculation in child tasks is CPU-heavy
[ https://issues.apache.org/jira/browse/YARN-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537236#comment-14537236 ] Hadoop QA commented on YARN-3612: - \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 14m 39s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:green}+1{color} | tests included | 0m 0s | The patch appears to include 1 new or modified test files. | | {color:green}+1{color} | javac | 7m 33s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 9m 34s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 22s | The applied patch does not increase the total number of release audit warnings. | | {color:red}-1{color} | checkstyle | 0m 51s | The applied patch generated 3 new checkstyle issues (total was 43, now 41). | | {color:green}+1{color} | whitespace | 0m 0s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 37s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 33s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 24s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | yarn tests | 1m 57s | Tests passed in hadoop-yarn-common. | | | | 38m 34s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12731802/YARN-3612.01.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 4536399 | | checkstyle | https://builds.apache.org/job/PreCommit-YARN-Build/7854/artifact/patchprocess/diffcheckstylehadoop-yarn-common.txt | | hadoop-yarn-common test log | https://builds.apache.org/job/PreCommit-YARN-Build/7854/artifact/patchprocess/testrun_hadoop-yarn-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/7854/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf905.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/7854/console | This message was automatically generated. > Resource calculation in child tasks is CPU-heavy > > > Key: YARN-3612 > URL: https://issues.apache.org/jira/browse/YARN-3612 > Project: Hadoop YARN > Issue Type: Bug >Affects Versions: 2.7.0 >Reporter: Todd Lipcon > Labels: BB2015-05-RFC, performance > Attachments: MAPREDUCE-4469.patch, MAPREDUCE-4469_rev2.patch, > MAPREDUCE-4469_rev3.patch, MAPREDUCE-4469_rev4.patch, > MAPREDUCE-4469_rev5.patch, YARN-3612.01.patch > > > In doing some benchmarking on a hadoop-1 derived codebase, I noticed that > each of the child tasks was doing a ton of syscalls. Upon stracing, I noticed > that it's spending a lot of time looping through all the files in /proc to > calculate resource usage. > As a test, I added a flag to disable use of the ResourceCalculatorPlugin > within the tasks. On a CPU-bound 500G-sort workload, this improved total job > runtime by about 10% (map slot-seconds by 14%, reduce slot seconds by 8%) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3612) Resource calculation in child tasks is CPU-heavy
[ https://issues.apache.org/jira/browse/YARN-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537309#comment-14537309 ] Hadoop QA commented on YARN-3612: - \\ \\ | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 14m 29s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:green}+1{color} | tests included | 0m 0s | The patch appears to include 1 new or modified test files. | | {color:green}+1{color} | javac | 7m 31s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 9m 32s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 22s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 0m 52s | There were no new checkstyle issues. | | {color:green}+1{color} | whitespace | 0m 0s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 37s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 33s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 24s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | yarn tests | 1m 56s | Tests passed in hadoop-yarn-common. | | | | 38m 19s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12731807/YARN-3612.02.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 4536399 | | hadoop-yarn-common test log | https://builds.apache.org/job/PreCommit-YARN-Build/7856/artifact/patchprocess/testrun_hadoop-yarn-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/7856/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf906.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/7856/console | This message was automatically generated. > Resource calculation in child tasks is CPU-heavy > > > Key: YARN-3612 > URL: https://issues.apache.org/jira/browse/YARN-3612 > Project: Hadoop YARN > Issue Type: Bug >Affects Versions: 2.7.0 >Reporter: Todd Lipcon > Labels: BB2015-05-RFC, performance > Attachments: MAPREDUCE-4469.patch, MAPREDUCE-4469_rev2.patch, > MAPREDUCE-4469_rev3.patch, MAPREDUCE-4469_rev4.patch, > MAPREDUCE-4469_rev5.patch, YARN-3612.01.patch, YARN-3612.02.patch > > > In doing some benchmarking on a hadoop-1 derived codebase, I noticed that > each of the child tasks was doing a ton of syscalls. Upon stracing, I noticed > that it's spending a lot of time looping through all the files in /proc to > calculate resource usage. > As a test, I added a flag to disable use of the ResourceCalculatorPlugin > within the tasks. On a CPU-bound 500G-sort workload, this improved total job > runtime by about 10% (map slot-seconds by 14%, reduce slot seconds by 8%) -- This message was sent by Atlassian JIRA (v6.3.4#6332)