Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45B01DC4A for ; Wed, 19 Dec 2012 18:17:15 +0000 (UTC) Received: (qmail 33273 invoked by uid 500); 19 Dec 2012 18:17:14 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 33232 invoked by uid 500); 19 Dec 2012 18:17:14 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 33181 invoked by uid 99); 19 Dec 2012 18:17:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 18:17:14 +0000 Date: Wed, 19 Dec 2012 18:17:14 +0000 (UTC) From: "Luke Lu (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-223) Change processTree interface to work better with native code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536228#comment-13536228 ] Luke Lu commented on YARN-223: ------------------------------ # The changes to eliminate usage of ResourceCalculatorPlugin is incorrect. Process tree is an impl detail of ResourceCalculatorPlugin. Many systems don't have process tree or equivalent at all. # You only need to change the interface of ResourceCalculatorProcessTree and impl of ProcfsBasedProcessTree. > 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, 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