Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2544417yba; Sun, 28 Apr 2019 03:31:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyvbLfkfMEj4kh9l7d0NQkhWC7yD5eHnRBXd+Uc0IGC6hwKJ2GGic7EL5EN6BO2Z3aQpwg X-Received: by 2002:a65:608d:: with SMTP id t13mr29018269pgu.406.1556447497582; Sun, 28 Apr 2019 03:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556447497; cv=none; d=google.com; s=arc-20160816; b=hXssRDXxWbm0dJ3RyZOozch94vvqGPS8JOsY0Ju1loATjIvtkGRZkqQwxOGJN0AqsC IDO/yYRBnAeTrh3gzsewUPvImL4oz8xHt+gzuL4BrMoHTHxIYmAqCZ2eNwaZwODHX4Wu 1cSX8/YisN+JHgM8g3xytzWqeYLSGA0tF03EvpLV86MIx1V26K8NvcR5KAkp8B0Up9v7 Vpx6bcudj+JzeShffZzYidD0hhbjIA4qoCF1Ojarqet3DQiv6lf0C33T29wqw2I9oWW+ yA2TqcA08Dkx3oIQGJzDbhvdv9hqblL8Xk8LAtVyahjDRllq07f9ErCm8RNWFRDjZcJf JGIg== 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=orqbThcrTT265dedHcs4IGIq8jzMqEhBgUtDP8c9Bl4=; b=dxsn3Xrqqnynz2C4qhO3pKeQgqaJwuC7t1uRZyTW2i9SxndxglCNogKEi+UfKfi/0G R2JKgrUkThDfAZjDxFqBR4gShUMeuXpvFCS7WBFuKwVY6FWYi2yvQkKQaDZJCsybrvkp 2aWQ50eNLKwX+Q5Jjjj3b8r3zasXzS0QUVRPbszocx9MIbJ8ys+tgckfj5iZq2guNOL8 aIyOaM56P/IRwuAYQi6B5CT0vhlvaIhypts2YbI8XMg2+S91vg9KCIjiLsRQOKnH6zTJ aiskNoAvyh2fBMbuEnTq+eMrn0NeiiJ0hN64Dp+y5cOtoHZqRu0lU1jtd6l0F6jD0ini Qp3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uvhJeGyl; 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 cn4si27154605plb.386.2019.04.28.03.31.11; Sun, 28 Apr 2019 03:31:37 -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=uvhJeGyl; 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 S1726480AbfD1K3u (ORCPT + 99 others); Sun, 28 Apr 2019 06:29:50 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39166 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbfD1K3t (ORCPT ); Sun, 28 Apr 2019 06:29:49 -0400 Received: by mail-lf1-f65.google.com with SMTP id d12so5727747lfk.6 for ; Sun, 28 Apr 2019 03:29:47 -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=orqbThcrTT265dedHcs4IGIq8jzMqEhBgUtDP8c9Bl4=; b=uvhJeGylFCYqJSNKeqFI3jEYZG4TwE26QVpKl/mXkV+K2ND10HW/KulkUt/lkTuh/D bK+uFfHHqB5RO1+3rnwirvsGC/Bqb/SSFuxUu3GKhYSQtFhE6UUQQM8yqeulE+4mR1AO dwxdwc+pwg6TfKTTfp260G6L1+OO4/HaOdnGZtXDaM9ff/PO9nSMOPUUVkABMmBVhlhs igrjTvEbHo3COd74ESdH8v9E4OJptctShDBCPOK1LGovpU42X7ZSxWqJbLKyHVzCkaL7 zXQWW3oIr8+RIDA5sk5pBQ42UD+0ZWxnnRYg9DK0XY24PRJ1wypqt4yyaadpf15KglHq /yiA== 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=orqbThcrTT265dedHcs4IGIq8jzMqEhBgUtDP8c9Bl4=; b=BVQvt4zZ0qaQoZk1MGWsr77+jGvH9vwOxCmeA9uhQTrBUHNc23hApA7KGcFkcuyfAh Hywrcc7xgXq31XkWP5RK1VYp2200HN8HmB8VC4BvOxBvmzhzTeNzReGQJHzorHl3wolu Vl3BLq3XPlYHzqOzdWyVjZOJmbEikgMegi+LZtxmcyeZKNMFsCxvKpMe6iVO8Mc0HSdi 9t2zww4WyY7m/na3YTZ/AKaC9m0UXbBObxnjaJyYtSZ27KB/5xuzyGXwVXZqHPoMAso9 IxaB9VBSXw2HTIyL1N4Nd1dEUKcNElcVIowUiVEoemNMHrjzFE+1/BXGoxgBnbUV4HON Qnwg== X-Gm-Message-State: APjAAAX6FnUsh/Oq/FFmG3ILirfTZdSbv3INtuAc//hgNA9c1f662WBJ XBdwQSEN2iLtl/X+GT3LvGVYig4OT54j9UvMazQ= X-Received: by 2002:a19:c113:: with SMTP id r19mr29577708lff.64.1556447386889; Sun, 28 Apr 2019 03:29:46 -0700 (PDT) MIME-Version: 1.0 References: <20190424140013.GA14594@sinkpad> <20190425095508.GA8387@gmail.com> <20190427091716.GC99668@gmail.com> <20190427142137.GA72051@gmail.com> <20190428093304.GA7393@gmail.com> In-Reply-To: <20190428093304.GA7393@gmail.com> From: Aubrey Li Date: Sun, 28 Apr 2019 18:29:34 +0800 Message-ID: Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 To: Ingo Molnar 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 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 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. Do you have any suggestions? Or any other information I can provide? Thanks, -Aubrey