Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A242F200ACB for ; Sun, 29 May 2016 17:11:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0785160A2C; Sun, 29 May 2016 15:11:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DEC8616099F for ; Sun, 29 May 2016 17:11:13 +0200 (CEST) Received: (qmail 99457 invoked by uid 500); 29 May 2016 15:11:13 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 99445 invoked by uid 99); 29 May 2016 15:11:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 May 2016 15:11:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C74FD2C1F5A for ; Sun, 29 May 2016 15:11:12 +0000 (UTC) Date: Sun, 29 May 2016 15:11:12 +0000 (UTC) From: "Zhongkai Mi (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-5179) Issue of CPU usage of containers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 29 May 2016 15:11:14 -0000 Zhongkai Mi created YARN-5179: --------------------------------- Summary: Issue of CPU usage of containers Key: YARN-5179 URL: https://issues.apache.org/jira/browse/YARN-5179 Project: Hadoop YARN Issue Type: Bug Components: nodemanager Affects Versions: 2.7.0 Environment: Both on Windows and Linux Reporter: Zhongkai Mi // Multiply by 1000 to avoid losing data when converting to int int milliVcoresUsed = (int) (cpuUsageTotalCoresPercentage * 1000 * maxVCoresAllottedForContainers /nodeCpuPercentageForYARN); This formula will not get right CPU usage based vcore if vcores != physical cores. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-dev-help@hadoop.apache.org