From dev-return-112301-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Fri Dec 28 09:24:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B16F4180652 for ; Fri, 28 Dec 2018 09:24:19 +0100 (CET) Received: (qmail 29487 invoked by uid 500); 28 Dec 2018 08:24:13 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 29475 invoked by uid 99); 28 Dec 2018 08:24:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2018 08:24:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 93A11C0349 for ; Fri, 28 Dec 2018 08:24:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.797 X-Spam-Level: * X-Spam-Status: No, score=1.797 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MZ4-Nj0KG4Un for ; Fri, 28 Dec 2018 08:24:10 +0000 (UTC) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5C4D35F3D0 for ; Fri, 28 Dec 2018 08:24:10 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id f23so16984197edb.3 for ; Fri, 28 Dec 2018 00:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=s5KOiWSXSqTauedwnIBolF60iOo06TuFqDs68vzJajE=; b=VAaO3l0Em9eMgzbh0ObaLNM6FYX/Kj4UfRAemfjoeNyZ29BlMJeKh5vrhTcASvl+8a rgmRsAba/LbO49vHmDLeOO4VQl8o62aFEGyAZFctjwyQHk/d3p5hJQzzW84E85eMgWMU +us3/gJYNOBlSwTm9mjLR1wzFCj5JC1NhZbsY9CnABx465RteVkyoCIaFoIf9O61c2H3 xTG3T5OnJorpdVUKeifuCknBGKj5MS0ahnj04Ev1H28yQ446Ej7uurZFZGK9YWK3S6m9 vDcZFJDuPJExlbhaODIuHtu6V6M0867YG388UlBq0CYlotzhDF7rFp2WtgeAX4qPYUSY nwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=s5KOiWSXSqTauedwnIBolF60iOo06TuFqDs68vzJajE=; b=gY/fUJpsZAEuJ6EyBiL+ApyRfnfNzWmmd0DjtF8fnEFY1/DNdlhbqOmsFRemOImJt6 5wiOVYdM6/NhXTNrNvfUrfsnZpCZ9kHdHl5R6naRbfBwlCZHfSmtcakf4qZUjb47Qzke ys+IJP6JFdIgtDXhpBTXf69uX4MMC01anWfR8mbXTH6cS+SMPmWkcp4cVKtGZp5i+SBZ 36NSEjced+Fw7PLL3KZZNwpjgl3hIEh9QMQyw6X+ZPc+gvqt+/c8HfeouMhu+49VflXP cm38bR7SHShxEJywyE99suB+XGYtqYMOKLD60ajRWeKGUZiVw/abLgqlrqgr0jgtXxCs Lqzg== X-Gm-Message-State: AA+aEWYlDPQMwLTWTkD76RnSTZzWelP/eFjmeThj/tLBUfn3KuuJNs9Z g4rn4bk47HDmP0WKicxZMWyLs9XGZfm8mN4jJjVC5kv0hYY= X-Google-Smtp-Source: AFSGD/UuYuQUvjoC9A+uw8lKqOfyMOhnvy/JBSwiRwQHcoA+t/QEE94CVE5x4JFsXTzYpEUSaYAco/jKLqH5zWi6AwA= X-Received: by 2002:a17:906:590a:: with SMTP id h10-v6mr18496193ejq.102.1545985449038; Fri, 28 Dec 2018 00:24:09 -0800 (PST) MIME-Version: 1.0 From: Andrija Panic Date: Fri, 28 Dec 2018 09:23:53 +0100 Message-ID: Subject: KVM wrong CPU speed reported To: dev Content-Type: multipart/alternative; boundary="0000000000008496e8057e10c993" --0000000000008496e8057e10c993 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi guys, https://github.com/apache/cloudstack/commit/29e389eb872ffa816be99aa66ff20bd= ec56d3187 this one gets above gets CPU frequency with "effectively "cat sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" which gives the TurboBoost CPU frequency (in case of Intel CPU) and similar for AMD. Problem is that TurboBoost can only boost frequency of a very small number of CPU cores for a period of time - not by any means all cores. CPU frequency is wrongly reported here as i.e. 3.4 GHz instead of 2.6 GHZ (example of Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz) We here thus have effective over-provisioning of 30% by default. Can we fix this somehow to actually read the base CPU frequency ? i.e. Xen reports correct CPU frequency (base/nominal one) Best, --=20 Andrija Pani=C4=87 --0000000000008496e8057e10c993--