hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Yan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-2155) FairScheduler: Incorrect check when trigger a preemption
Date Thu, 12 Jun 2014 16:50:01 GMT

     [ https://issues.apache.org/jira/browse/YARN-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wei Yan updated YARN-2155:
--------------------------

    Description: 
{code}
private boolean shouldAttemptPreemption() {
  if (preemptionEnabled) {
    return (preemptionUtilizationThreshold < Math.max(
        (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(),
        (float) rootMetrics.getAvailableVirtualCores() /
            clusterResource.getVirtualCores()));
  }
  return false;
}
{code}

preemptionUtilizationThreshould should be compared with allocatedResource instead of availableResource.

  was:
{code}
private boolean shouldAttemptPreemption() {
    if (preemptionEnabled) {
      return (preemptionUtilizationThreshold < Math.max(
          (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(),
          (float) rootMetrics.getAvailableVirtualCores() /
              clusterResource.getVirtualCores()));
    }
    return false;
  }
{code}

preemptionUtilizationThreshould should be compared with allocatedResource instead of availableResource.


> FairScheduler: Incorrect check when trigger a preemption
> --------------------------------------------------------
>
>                 Key: YARN-2155
>                 URL: https://issues.apache.org/jira/browse/YARN-2155
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Wei Yan
>            Assignee: Wei Yan
>
> {code}
> private boolean shouldAttemptPreemption() {
>   if (preemptionEnabled) {
>     return (preemptionUtilizationThreshold < Math.max(
>         (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(),
>         (float) rootMetrics.getAvailableVirtualCores() /
>             clusterResource.getVirtualCores()));
>   }
>   return false;
> }
> {code}
> preemptionUtilizationThreshould should be compared with allocatedResource instead of
availableResource.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message