[jira] [Updated] (YARN-2756) use static variable (Resources.none()) for not-running Node.resource in CommonNodeLabelsManager to save memory.
[ https://issues.apache.org/jira/browse/YARN-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated YARN-2756: Issue Type: Sub-task (was: Improvement) Parent: YARN-2492 > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. > --- > > Key: YARN-2756 > URL: https://issues.apache.org/jira/browse/YARN-2756 > Project: Hadoop YARN > Issue Type: Sub-task >Reporter: zhihai xu >Assignee: zhihai xu >Priority: Minor > Attachments: YARN-2756.000.patch > > > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. When a Node is not activated, the > resource is never used, When a Node is activated, a new resource will be > assigned to it in RMNodeLabelsManager#activateNode (nm.resource = resource) > So it would be better to use static variable Resources.none() instead of > allocating a new variable(Resource.newInstance(0, 0)) for each node > deactivation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-2756) use static variable (Resources.none()) for not-running Node.resource in CommonNodeLabelsManager to save memory.
[ https://issues.apache.org/jira/browse/YARN-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated YARN-2756: Attachment: YARN-2756.000.patch > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. > --- > > Key: YARN-2756 > URL: https://issues.apache.org/jira/browse/YARN-2756 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: zhihai xu >Assignee: zhihai xu >Priority: Minor > Attachments: YARN-2756.000.patch > > > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. When a Node is not activated, the > resource is never used, When a Node is activated, a new resource will be > assigned to it in RMNodeLabelsManager#activateNode (nm.resource = resource) > So it would be better to use static variable Resources.none() instead of > allocating a new variable(Resource.newInstance(0, 0)) for each node > deactivation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (YARN-2756) use static variable (Resources.none()) for not-running Node.resource in CommonNodeLabelsManager to save memory.
[ https://issues.apache.org/jira/browse/YARN-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated YARN-2756: Description: use static variable (Resources.none()) for not-running Node.resource in CommonNodeLabelsManager to save memory. When a Node is not activated, the resource is never used, When a Node is activated, a new resource will be assigned to it in RMNodeLabelsManager#activateNode (nm.resource = resource) So it would be better to use static variable Resources.none() instead of allocating a new variable(Resource.newInstance(0, 0)) for each node deactivation. (was: use static variable (Resources.none()) for not-running Node.resource in CommonNodeLabelsManager to save memory. When a Node is not activated, the resource is never used, When a Node is activated, a new resource will be assigned to it in RMNodeLabelsManager#activateNode (nm.resource = resource;) So it would be better to use static variable Resources.none() instead of allocating a new variable(Resource.newInstance(0, 0)) for each node deactivation.) > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. > --- > > Key: YARN-2756 > URL: https://issues.apache.org/jira/browse/YARN-2756 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: zhihai xu >Assignee: zhihai xu >Priority: Minor > > use static variable (Resources.none()) for not-running Node.resource in > CommonNodeLabelsManager to save memory. When a Node is not activated, the > resource is never used, When a Node is activated, a new resource will be > assigned to it in RMNodeLabelsManager#activateNode (nm.resource = resource) > So it would be better to use static variable Resources.none() instead of > allocating a new variable(Resource.newInstance(0, 0)) for each node > deactivation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)