Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4336316yba; Mon, 29 Apr 2019 18:27:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqGhQL3KArJuecDZPerPs6XlLWd5uvaWcXS3Y4kAspluXzLn8Ee4cfJ0M55HAVxTw3UGRH X-Received: by 2002:a17:902:8306:: with SMTP id bd6mr31222513plb.134.1556587653362; Mon, 29 Apr 2019 18:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556587653; cv=none; d=google.com; s=arc-20160816; b=y07OKdHuFX9QDF6HJ8Z74tTxxGPT4vNvBYjxfMgu6D9EsOBt7qMOohtfypG6PbJepH btBC/+krNjZGdeEmHHZe1gyMm8Vbg0YJDqWZif/XK1jHrGWDejx4X8uhj0s8BZd2OYsQ 6xaAFn7pQIDryfXlGJzrDzgdvY2JSNyjnJHAafi1/tEbHi1/5wSVjAdiGr+TU+BxnZe8 3mYYWEtRRL+ble0MxrkPKj0Oou0Jug8QA0SKLX7ePuXpK4Ufw7bicSbeDHLrUI+YrpZF 9rbsM6rIwuqFhefXNbOKx6r4uVBpwumsiCTUUPpDjmn9lBqFFo2dmiaRgIyPyHr+ZYGs vPsw== 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=46L6eXe4RML6HEmnWiBfNC91mI6xVPDAh1z5zZsGazo=; b=Hlady5Os2u+Jy+dp/DcjIpVpYLpzjxcd3e6mWQHJyuqeSj0fcH1wWNPHicodV9HyJ5 lpdENaaC9QsTmeHhEYIdpKOyeOs/RaacnqrIVy9fseQT8NSbWp2z1Xaagfd2yz36fZQt +1nuX/iFMs/jfODSUyZTvNYGls6UVG59r0opFJ0cc2Dk+LIKyZ+zRH+WweiqcBSbX0hY 64AeaEbfjFWcJCerjxH6Bu9hsYb5ikGrvnBwnhiBC1b4z97uUIJnO9MjKaGadykcL/wo WLTNPHlfjD7zcBjQEW0QSkG7wQTZ6VyZkSuH69nt49mXPhP19tACInBMHxotNkP5cn7f 3njg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SDsGb1GP; 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 u37si34704752pga.301.2019.04.29.18.27.16; Mon, 29 Apr 2019 18:27:33 -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=SDsGb1GP; 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 S1729814AbfD3BZA (ORCPT + 99 others); Mon, 29 Apr 2019 21:25:00 -0400 Received: from mail-lj1-f177.google.com ([209.85.208.177]:42487 "EHLO mail-lj1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729626AbfD3BZA (ORCPT ); Mon, 29 Apr 2019 21:25:00 -0400 Received: by mail-lj1-f177.google.com with SMTP id r72so6801438ljb.9 for ; Mon, 29 Apr 2019 18:24:58 -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=46L6eXe4RML6HEmnWiBfNC91mI6xVPDAh1z5zZsGazo=; b=SDsGb1GPwQgNgKpKbSygafBW/pgKbimw8lbnAy03Nzrf/TSYC0bYNNeoHhkuiPZS1N rt2bZziWH0toD71eYItMP3f7ILu0dtOU5fGBeN+FMnl1H8ZWzBuBlUvg80VX1w45LzM3 XtOVVlC6yE2Y5iaO/iz9yU7Llk9j86CPB37VwtDIWSWLxaLCUEn++vCtkZ7jUKXwmD1x 3q2oFIctOmuj/JFmGvI4H6kTZGz0FpSSTotvUWNdbBsAR2y42ZSnLzMWURdtQiWQGWd0 o9XWpGHSryY3HPJRZtjE7V+q+WX6jd/Uh3k2EpIM3+cSHHy/Ka3TIYJbtphApMttUWZH Mlww== 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=46L6eXe4RML6HEmnWiBfNC91mI6xVPDAh1z5zZsGazo=; b=jI9buyHFISfRHab4w0K/vi2671IqfmRW2yv+FFh6KMBrtYja8RXu6ii9oaq4i/XCaW 98klA2qc389GN+9BXrUc132znnCbAp59eULr4x17YM50sjnKwsMHaee0RusbYl793aLx AAB1DXltP8ct6tz9erqqsDn2+txPPyTqDoA6dWwSm9DswaGFgQYV1xN88m0rhCt5eVNT SDq3ArgizYMOGdeRfwNgx9OCLlnMtvScNFmvrJ3Y8I4MAP7Vz8VDEgCb0cOuRDo4YNX4 rj4iuSk7o+4HyAuN8eg5GlHfcDXE8U9GJMFYc0+spQYGiRieGg91rMNzFnx9qOfY9Z1L 9gMQ== X-Gm-Message-State: APjAAAXY/qhwJAZwRU43ZbI8PI9+FHFXpat3BGuSBU0cpF0F364oyQWW Rp6ESYZ4VS94gblLiKRiWybSJbRnor4eG/V6E+U= X-Received: by 2002:a2e:2b16:: with SMTP id q22mr34984426lje.20.1556587497889; Mon, 29 Apr 2019 18:24:57 -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> <20190429153916.GB26806@pauld.bos.csb> In-Reply-To: <20190429153916.GB26806@pauld.bos.csb> From: Aubrey Li Date: Tue, 30 Apr 2019 09:24:46 +0800 Message-ID: Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 To: Phil Auld Cc: "Li, Aubrey" , Ingo Molnar , 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 , 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 Mon, Apr 29, 2019 at 11:39 PM Phil Auld wrote: > > On Mon, Apr 29, 2019 at 09:25:35PM +0800 Li, Aubrey wrote: > > .--------------------------------------------------------------------------------------------------------------------------------------. > > |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% | > > '--------------------------------------------------------------------------------------------------------------------------------------' > > > > That's really nice and clear. > > We start to see the penalty for the coresched at 32/32, leaving some cpus more idle than otherwise. > But it's pretty good overall, for this benchmark at least. > > Is this with stock v2 or with any of the fixes posted after? I wonder how much the fixes for > the race that violates the rule effects this, for example. > Yeah, this data is based on v2 without any fixes after. I also tried some fixes potential to performance impact but no luck so far. Please let me know if anything I missed. Thanks, -Aubrey