Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3172642yba; Sun, 28 Apr 2019 19:18:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFHCNppDxhjJMg7Zcdde6TwEvgxoIRmyRx68jBe6kv53s2mZTPeOPDjdAbR1P0mn0/coNQ X-Received: by 2002:a62:e00e:: with SMTP id f14mr3163217pfh.257.1556504314923; Sun, 28 Apr 2019 19:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556504314; cv=none; d=google.com; s=arc-20160816; b=Lgr5EbM67z87qN+7GknRMsxqc+3l/uNjWg41LwzStuvBYMR4j3pcN0PlGYg64Jz1RX DU8xgWKQU8dDSyxd6+D4DdrmfX+BnPTIzPdQTcUXTtUwal0YuZgKQaZ/ZQSxBegB11Hn cSAnxg0iK5T/EMG2CP2Nrig5X8iQ8RAu7AqY8nF2pCQm3YVC+0ddrbc/8nATJ9g6U4rB DAEbTuGs/cJukEaqmg8OE5Jg/bIftRPcNlzueGQV40guFzeNyxxpLGIbH1q2r8YWtbUL N8A0yjzWxSs+kPeTGPdLkOR3t3i4CU8gq3sMX8T902oyDkh8ONULWIHVERyYsn/nMeFI wJQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=wjfkQGc3MOOSIMl04jaXi8Uyp3wcH/1TE8WSYHntHNo=; b=vmZCukmAVZb9v4h34Y6LfEWFURbbuIDdhizX528HIsXsaqwYMbd0Nipwp+jRSv1DCG 6rsRiqb4W44dD05CxreXsj6Xth1yXVb3iufXGwhZOz/hwfbTrUc6MHrofP16pBVy/VEP laN376wKfgJPfqk6J/MOy3Nggbxv9EOVMTWX3wMnbn6LReRjpzw3lW6upJqLcKu2br3b BXKHQKEnFjSiTCzfDOhVjxb34Ao+4ZsAclFwUvZvzyAXtb3pw+xJaqrbYys4NBlJdTZC u767QYbDDX0pU8b4v1w+HGAUVBfAOwvESefDX1dJbOo+9PdVEpwQqcXAXaPQKQwb348r pM8w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si33222976pfn.40.2019.04.28.19.18.20; Sun, 28 Apr 2019 19:18:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727344AbfD2CRH (ORCPT + 99 others); Sun, 28 Apr 2019 22:17:07 -0400 Received: from mga03.intel.com ([134.134.136.65]:46408 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbfD2CRG (ORCPT ); Sun, 28 Apr 2019 22:17:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 19:17:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,408,1549958400"; d="scan'208";a="139632022" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by orsmga006.jf.intel.com with ESMTP; 28 Apr 2019 19:17:02 -0700 Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 To: Ingo Molnar , Aubrey Li Cc: 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 References: <20190424140013.GA14594@sinkpad> <20190425095508.GA8387@gmail.com> <20190427091716.GC99668@gmail.com> <20190427142137.GA72051@gmail.com> <20190428093304.GA7393@gmail.com> <20190428121721.GA121434@gmail.com> From: "Li, Aubrey" Message-ID: Date: Mon, 29 Apr 2019 10:17:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20190428121721.GA121434@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/4/28 20:17, Ingo Molnar wrote: > > * Aubrey Li wrote: > >> On Sun, Apr 28, 2019 at 5:33 PM Ingo Molnar wrote: >>> So because I'm a big fan of presenting data in a readable fashion, here >>> are your results, tabulated: >> >> I thought I tried my best to make it readable, but this one looks much better, >> thanks, ;-) >>> >>> # >>> # Sysbench throughput comparison of 3 different kernels at different >>> # load levels, higher numbers are better: >>> # >>> >>> .--------------------------------------|----------------------------------------------------------------. >>> | NA/AVX vanilla-SMT [stddev%] |coresched-SMT [stddev%] +/- | no-SMT [stddev%] +/- | >>> |--------------------------------------|----------------------------------------------------------------| >>> | 1/1 508.5 [ 0.2% ] | 504.7 [ 1.1% ] 0.8% | 509.0 [ 0.2% ] 0.1% | >>> | 2/2 1000.2 [ 1.4% ] | 1004.1 [ 1.6% ] 0.4% | 997.6 [ 1.2% ] 0.3% | >>> | 4/4 1912.1 [ 1.0% ] | 1904.2 [ 1.1% ] 0.4% | 1914.9 [ 1.3% ] 0.1% | >>> | 8/8 3753.5 [ 0.3% ] | 3748.2 [ 0.3% ] 0.1% | 3751.3 [ 0.4% ] 0.1% | >>> | 16/16 7139.3 [ 2.4% ] | 7137.9 [ 1.8% ] 0.0% | 7049.2 [ 2.4% ] 1.3% | >>> | 32/32 10899.0 [ 4.2% ] | 10780.3 [ 4.4% ] -1.1% | 10339.2 [ 9.6% ] -5.1% | >>> | 64/64 15086.1 [ 11.5% ] | 14262.0 [ 8.2% ] -5.5% | 11168.7 [ 22.2% ] -26.0% | >>> | 128/128 15371.9 [ 22.0% ] | 14675.8 [ 14.4% ] -4.5% | 10963.9 [ 18.5% ] -28.7% | >>> | 256/256 15990.8 [ 22.0% ] | 12227.9 [ 10.3% ] -23.5% | 10469.9 [ 19.6% ] -34.5% | >>> '--------------------------------------|----------------------------------------------------------------' >>> >>> One major thing that sticks out is that if we compare the stddev numbers >>> to the +/- comparisons then it's pretty clear that the benchmarks are >>> very noisy: in all but the last row stddev is actually higher than the >>> measured effect. >>> >>> So what does 'stddev' mean here, exactly? The stddev of multipe runs, >>> i.e. measured run-to-run variance? Or is it some internal metric of the >>> benchmark? >>> >> >> The benchmark periodically reports intermediate statistics in one second, >> the raw log looks like below: >> [ 11s ] thds: 256 eps: 14346.72 lat (ms,95%): 44.17 >> [ 12s ] thds: 256 eps: 14328.45 lat (ms,95%): 44.17 >> [ 13s ] thds: 256 eps: 13773.06 lat (ms,95%): 43.39 >> [ 14s ] thds: 256 eps: 13752.31 lat (ms,95%): 43.39 >> [ 15s ] thds: 256 eps: 15362.79 lat (ms,95%): 43.39 >> [ 16s ] thds: 256 eps: 26580.65 lat (ms,95%): 35.59 >> [ 17s ] thds: 256 eps: 15011.78 lat (ms,95%): 36.89 >> [ 18s ] thds: 256 eps: 15025.78 lat (ms,95%): 39.65 >> [ 19s ] thds: 256 eps: 15350.87 lat (ms,95%): 39.65 >> [ 20s ] thds: 256 eps: 15491.70 lat (ms,95%): 36.89 >> >> I have a python script to parse eps(events per second) and lat(latency) >> out, and compute the average and stddev. (And I can draw a curve locally). >> >> It's noisy indeed when tasks number is greater than the CPU number. >> It's probably caused by high frequent load balance and context switch. > > Ok, so it's basically an internal workload noise metric, it doesn't > represent the run-to-run noise. > > So it's the real stddev of the workload - but we don't know whether the > measured performance figure is exactly in the middle of the runtime > probability distribution. > >> Do you have any suggestions? Or any other information I can provide? > > Yeah, so we don't just want to know the "standard deviation" of the > measured throughput values, but also the "standard error of the mean". > > I suspect it's pretty low, below 1% for all rows? Hope my this mail box works for this... .-------------------------------------------------------------------------------------------------------------. |NA/AVX vanilla-SMT [std% / sem%] | coresched-SMT [std% / sem%] +/- | no-SMT [std% / sem%] +/- | |-------------------------------------------------------------------------------------------------------------| | 1/1 508.5 [ 0.2%/ 0.0%] | 504.7 [ 1.1%/ 0.1%] -0.8%| 509.0 [ 0.2%/ 0.0%] 0.1% | | 2/2 1000.2 [ 1.4%/ 0.1%] | 1004.1 [ 1.6%/ 0.2%] 0.4%| 997.6 [ 1.2%/ 0.1%] -0.3% | | 4/4 1912.1 [ 1.0%/ 0.1%] | 1904.2 [ 1.1%/ 0.1%] -0.4%| 1914.9 [ 1.3%/ 0.1%] 0.1% | | 8/8 3753.5 [ 0.3%/ 0.0%] | 3748.2 [ 0.3%/ 0.0%] -0.1%| 3751.3 [ 0.4%/ 0.0%] -0.1% | | 16/16 7139.3 [ 2.4%/ 0.2%] | 7137.9 [ 1.8%/ 0.2%] -0.0%| 7049.2 [ 2.4%/ 0.2%] -1.3% | | 32/32 10899.0 [ 4.2%/ 0.4%] | 10780.3 [ 4.4%/ 0.4%] -1.1%| 10339.2 [ 9.6%/ 0.9%] -5.1% | | 64/64 15086.1 [11.5%/ 1.2%] | 14262.0 [ 8.2%/ 0.8%] -5.5%| 11168.7 [22.2%/ 1.7%] -26.0% | |128/128 15371.9 [22.0%/ 2.2%] | 14675.8 [14.4%/ 1.4%] -4.5%| 10963.9 [18.5%/ 1.4%] -28.7% | |256/256 15990.8 [22.0%/ 2.2%] | 12227.9 [10.3%/ 1.0%] -23.5%| 10469.9 [19.6%/ 1.7%] -34.5% | '-------------------------------------------------------------------------------------------------------------' Thanks, -Aubrey