You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Radim Kolar (JIRA)" <ji...@apache.org> on 2012/11/19 01:29:00 UTC

[jira] [Created] (YARN-223) Change processTree interface to work better with native code

Radim Kolar created YARN-223:
--------------------------------

             Summary: Change processTree interface to work better with native code
                 Key: YARN-223
                 URL: https://issues.apache.org/jira/browse/YARN-223
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Radim Kolar
            Priority: Critical


Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.

replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment: pstree-update3.txt
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update2.txt, pstree-update3.txt, pstree-update.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (YARN-223) Change processTree interface to work better with native code

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505638#comment-13505638 ] 

Hadoop QA commented on YARN-223:
--------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12554602/pstree-update6.txt
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 4 new or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-YARN-Build/171//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/171//console

This message is automatically generated.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Assignee: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment:     (was: pstree-update3.txt)
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar reassigned YARN-223:
--------------------------------

    Assignee: Radim Kolar
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Assignee: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment: pstree-update2.txt

Also remove getProcResourceValues from Resource Calculator API because it is not used anywhere and pluggable pstree has same functionality
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update2.txt, pstree-update.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502534#comment-13502534 ] 

Radim Kolar commented on YARN-223:
----------------------------------

will leave it as it is. version 6 passed QA bot checks.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500432#comment-13500432 ] 

Radim Kolar commented on YARN-223:
----------------------------------

problems with old code: if you are using some system resources such as file handles in native library implementation of process tree then java can create kinda lot of objects of processTree type which are not garbage collected and temporary leaks system resources.

If you start chaining references to original object, then you will have allocated system resources just once but you will create long chain on objects which could not be GC'd by java until all of them are unreferenced at end of container life.

I tried both and didn't liked it, after inspection of code calling psTree it was discovered that simply updating object will be enough because code do not keeps old copy around while creating a new one.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (YARN-223) Change processTree interface to work better with native code

Posted by "Chris Nauroth (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502483#comment-13502483 ] 

Chris Nauroth commented on YARN-223:
------------------------------------

+1 patch looks good

I successfully applied the patch to current trunk, compiled, and ran tests.  A potential improvement is to add @Override annotations to the methods of TestResourceCalculatorProcessTree.EmptyProcessTree.  This isn't directly related to your current change though, so I leave it up to you whether or not you want to update the patch.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment: pstree-update4.txt

Migrated Task from ResourceCalculator to PsTree API.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update2.txt, pstree-update3.txt, pstree-update4.txt, pstree-update.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment: pstree-update.txt
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment:     (was: pstree-update2.txt)
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment:     (was: pstree-update.txt)
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radim Kolar updated YARN-223:
-----------------------------

    Attachment: pstree-update6.txt
    
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (YARN-223) Change processTree interface to work better with native code

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502494#comment-13502494 ] 

Radim Kolar commented on YARN-223:
----------------------------------

Just commit it before YARN-234 patch goes in. YARN-234 contains ResouceCalculator API change because of not understanding usage of getProcResourceValues. As this patch removes it, no changes are needed anymore.
                
> Change processTree interface to work better with native code
> ------------------------------------------------------------
>
>                 Key: YARN-223
>                 URL: https://issues.apache.org/jira/browse/YARN-223
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Radim Kolar
>            Priority: Critical
>         Attachments: pstree-update4.txt, pstree-update6.txt
>
>
> Problem is that on every update of processTree new object is required. This is undesired when working with processTree implementation in native code.
> replace ProcessTree.getProcessTree() with updateProcessTree(). No new object allocation is needed and it simplify application code a bit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira