Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4343232yba; Mon, 29 Apr 2019 18:36:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5+RcR0CRqMJt3vPPRUYYYnWj6oLLi/Ap1I3vCmmnXF0f+MC1wSSoiNZ1k0msoTn5WtrPO X-Received: by 2002:a17:902:968c:: with SMTP id n12mr20921017plp.105.1556588210851; Mon, 29 Apr 2019 18:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556588210; cv=none; d=google.com; s=arc-20160816; b=QMP32aeLVn0tGms9agcMKQuH0rBF92K01cEAY68koWjaZ7KjIHooD73+2rNYhjMZc3 g0bCnCuxxfgFnSe+tTYbG+9gJ8zbrgoDUAQ5vKVTo4wdWTehsiqtCiSHzT6Eqx1nh4sj mkmS0L5AmgrP+3s8RllGjLqVQTLUaj+daIOGn2UE19MQ2R6ECc1fO+s0Dz8RqTy/Ex0w 0aJII5kKXJrPtTMuUViSboh79un5dEkaqbx/1YRDWubVPx0q6UqMTSQ1PDAfVocZenqn BQ9SHRfFc++DfGBZD8KfZJN9nXctBFpkltV6/4/m6OmGzQFRuXlq4qp89WSRRWkaa8OJ TWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Px2HDvlpr9ZJs28KIEGLc/qo2W8gInuIIUp/QPqQLO0=; b=czcoi01x+hn9mAhHKZ6poz0td4/FILXw+AooKY6ocqgh4OBIIMHmXM04U/SVU1J3n+ 5ua48HPQQ88RdD/hik9ACrHrSExclqUFAcoghRr0aPZmIPS8BlVfVpxPoGexmERFrSZY g7TbELdXHs3DNEKsZth8cOf1wJRV9iUX5djjI8xYs0YjPQAdPtLYvNeszzUkXlRAVvBA EnT+teZNyMbsdsRRk1uhFchsFrC6QPkkrlTAhbI/DsFMw2vse5m4v0YgORMD3Gzj7G+v uZ7j48haO9SX7RBzxq+TmcV/mSApQGdOx5xkj6XrDPp6LvKcM9w1CKzh5tKpHnONIY8P ccrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MAjeYmvA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r197si12298828pfc.247.2019.04.29.18.36.35; Mon, 29 Apr 2019 18:36:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MAjeYmvA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729835AbfD3Be0 (ORCPT + 99 others); Mon, 29 Apr 2019 21:34:26 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39596 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729758AbfD3BeZ (ORCPT ); Mon, 29 Apr 2019 21:34:25 -0400 Received: by mail-lf1-f68.google.com with SMTP id d12so9496748lfk.6 for ; Mon, 29 Apr 2019 18:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Px2HDvlpr9ZJs28KIEGLc/qo2W8gInuIIUp/QPqQLO0=; b=MAjeYmvAsjsesDrTfwF1D1uaWMmvkfK6xjwZvcj0e70ZlUrcLacS0rVZejX0cAVT8I C8vLGWq0fzGlf6zkPvxOqkiyCJU+DEYOVScOtRMzXxtXGHZM35Z8m8jY1el08zgZb0BC la6Y9ukyQLZRMPwQLttmyDWejfJgmWH+KHXNWAYj9g7ZGEoqcE42svz1bfwlCba078ac f5s++PXFhtWjA7KPsRice6+9nVzsXT7BK7N5qSeToU3MTJoyku/PKFQRHwBZlZHJrapb 7Dqb9U3l2Rpc/1+4O8ixTgiDPIHGU1MD3Jqao6X71CtY2TouZK2d/GXBWXki2tIhNLoK cCYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Px2HDvlpr9ZJs28KIEGLc/qo2W8gInuIIUp/QPqQLO0=; b=B+9Y2JsR4eSVSTrKbLl1Csu7OsvzSaWoPYqntpUiidhSd/WWhx+9V5NTr9qoTfMIVN kWYFZnMVF17jwQjlgfuFSbCTqnIagOzg8T1tqu5+gYmJ7cODbBvDXsMbdj9OjQQkpvKf V/mIw/yYYjvGujAXInfXxIzghRHGekeOkWK/CdflFp978ykGZXIXZxfD191m4GHwKK+h L4gbVPV2kJP+3FMBIz3Oh4OaxvdpSRvDMicZOmCYh2UVPWqUKUaKZNkl/Ws9Sy6UIehX s8rqGdWISmZr2uK53gGINUcOSTmaVtVQVaPMActUC60JVoz3n8XRcG23AhKNzuOHfKpo 62Cw== X-Gm-Message-State: APjAAAVgXXYlaKwmQiWWnmOkBprZR1+5Au+bpfxXhi8/Rld8S38HDWhn 7yLgR6S1QJ+owGKL9A2xMAJqQels/c4aJjWpTSs= X-Received: by 2002:a19:6a06:: with SMTP id u6mr35537795lfu.26.1556588063599; Mon, 29 Apr 2019 18:34:23 -0700 (PDT) MIME-Version: 1.0 References: <20190427091716.GC99668@gmail.com> <20190427142137.GA72051@gmail.com> <20190428093304.GA7393@gmail.com> <20190428121721.GA121434@gmail.com> <20190429061422.GA20939@gmail.com> <24bca399-5370-c4b5-725f-979db06bfc29@linux.intel.com> <20190429160058.GA82935@gmail.com> In-Reply-To: <20190429160058.GA82935@gmail.com> From: Aubrey Li Date: Tue, 30 Apr 2019 09:34:12 +0800 Message-ID: Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 To: Ingo Molnar Cc: "Li, Aubrey" , Julien Desfossez , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 12:01 AM Ingo Molnar wrote: > * Li, Aubrey wrote: > > > > I.e. showing the approximate CPU thread-load figure column would be > > > very useful too, where '50%' shows half-loaded, '100%' fully-loaded, > > > '200%' over-saturated, etc. - for each row? > > > > See below, hope this helps. > > .--------------------------------------------------------------------------------------------------------------------------------------. > > |NA/AVX vanilla-SMT [std% / sem%] cpu% |coresched-SMT [std% / sem%] +/- cpu% | no-SMT [std% / sem%] +/- cpu% | > > |--------------------------------------------------------------------------------------------------------------------------------------| > > | 1/1 508.5 [ 0.2%/ 0.0%] 2.1% | 504.7 [ 1.1%/ 0.1%] -0.8% 2.1% | 509.0 [ 0.2%/ 0.0%] 0.1% 4.3% | > > | 2/2 1000.2 [ 1.4%/ 0.1%] 4.1% | 1004.1 [ 1.6%/ 0.2%] 0.4% 4.1% | 997.6 [ 1.2%/ 0.1%] -0.3% 8.1% | > > | 4/4 1912.1 [ 1.0%/ 0.1%] 7.9% | 1904.2 [ 1.1%/ 0.1%] -0.4% 7.9% | 1914.9 [ 1.3%/ 0.1%] 0.1% 15.1% | > > | 8/8 3753.5 [ 0.3%/ 0.0%] 14.9% | 3748.2 [ 0.3%/ 0.0%] -0.1% 14.9% | 3751.3 [ 0.4%/ 0.0%] -0.1% 30.5% | > > | 16/16 7139.3 [ 2.4%/ 0.2%] 30.3% | 7137.9 [ 1.8%/ 0.2%] -0.0% 30.3% | 7049.2 [ 2.4%/ 0.2%] -1.3% 60.4% | > > | 32/32 10899.0 [ 4.2%/ 0.4%] 60.3% | 10780.3 [ 4.4%/ 0.4%] -1.1% 55.9% | 10339.2 [ 9.6%/ 0.9%] -5.1% 97.7% | > > | 64/64 15086.1 [11.5%/ 1.2%] 97.7% | 14262.0 [ 8.2%/ 0.8%] -5.5% 82.0% | 11168.7 [22.2%/ 1.7%] -26.0% 100.0% | > > |128/128 15371.9 [22.0%/ 2.2%] 100.0% | 14675.8 [14.4%/ 1.4%] -4.5% 82.8% | 10963.9 [18.5%/ 1.4%] -28.7% 100.0% | > > |256/256 15990.8 [22.0%/ 2.2%] 100.0% | 12227.9 [10.3%/ 1.0%] -23.5% 73.2% | 10469.9 [19.6%/ 1.7%] -34.5% 100.0% | > > '--------------------------------------------------------------------------------------------------------------------------------------' > > Very nice, thank you! > > What's interesting is how in the over-saturated case (the last three > rows: 128, 256 and 512 total threads) coresched-SMT leaves 20-30% CPU > performance on the floor according to the load figures. Yeah, I found the next focus. > > Is this true idle time (which shows up as 'id' during 'top'), or some > load average artifact? > vmstat periodically reported intermediate CPU utilization in one second, it was running simultaneously when the benchmarks run. The cpu% is computed by the average of (100-idle) series. Thanks, -Aubrey