Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp439510yba; Fri, 26 Apr 2019 02:49:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh6fDVARuLIcVHXNv2sRfvz/oqjP9N4/R0ZJa32ZBtVEm+zfvBnJHvrpHfk+OYn+iZkdZ/ X-Received: by 2002:a65:6541:: with SMTP id a1mr41054403pgw.233.1556272170872; Fri, 26 Apr 2019 02:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556272170; cv=none; d=google.com; s=arc-20160816; b=MDOvBEeWROUDmS4L9YSZUZxHaq4kSXX7oLGliT6tDMFkCyls04Q4TEmHTx8p7Du5BO QmiEUq2DurULldbMArI8rGTRjiN7T//xSQjcXj56zSXdveq1yizdgUXU5fKLe2D4shYD 0j+HONdakiCgWHbfFXgNtXVkGMSfl5unwRM/rDMS9he65468sjEsnsJtXTZ42IuQ7gBw 0Tk5pdx2A2k6P6LBKqTVAx9F6iYI9cFHDQXwoAKd3HjoU+RN5UvmQeRa7t5BWowfi6YR ZVDWZxKL96jXEmjfG21jjp3HWs6r1HwgiJ4izxhbh2BeqQ5TtYTs9gDqQpbs/3aGdHm8 84/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eaJiPLeHd+s83MgD/3Fmktbq/gtm4kNAtMchl1QcyoI=; b=XxhQFmo9GM1tbN3hFfHQtXybaAvuIGUpUsRleiGCkZdvcvtHg8/dt0A2bJHCpXbdf/ edvuCDeGJNxl5PjP5n29wXERqhfCg8Li7qb9jeyuWEGpN2ZoALIrrKbz/+pqUQDSmfmL KHB0AjMsV9VbQYMN6V6b2nGOUMLYB54c0OZujIjjK/M5b2626VYO1tWZZrSHel/CQVEA Q1W3mFmpGwkOcyfKWsOz11N6wrOxUGEajgpWQSd+dGXPtps/MKu/818o8cvgcJFsa0Xm NJyjGjJYXZafwpP5zqqCPWpKGgbJXrAf+MoZF+qopsmNeuEZn2lb6gkuvxXaOVxjkRYz I6oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="V/vHwgvC"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si5101093pll.248.2019.04.26.02.49.16; Fri, 26 Apr 2019 02:49:30 -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=fail header.i=@gmail.com header.s=20161025 header.b="V/vHwgvC"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbfDZJqq (ORCPT + 99 others); Fri, 26 Apr 2019 05:46:46 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46366 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbfDZJpv (ORCPT ); Fri, 26 Apr 2019 05:45:51 -0400 Received: by mail-wr1-f67.google.com with SMTP id t17so3482083wrw.13 for ; Fri, 26 Apr 2019 02:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eaJiPLeHd+s83MgD/3Fmktbq/gtm4kNAtMchl1QcyoI=; b=V/vHwgvCj9WPXHqOzniwQl6WhblT0Dq8n9BUmzk278lU6HWIJ5LD0vVfMkyL82Mf66 QnTaKArUoDizhJ47lvB2arjpDM97JzI2NMly9zHuE4JYx2az5PS2ej445V4fgmicEMxd MgTL3EDhJZT66+ennlgBUBHhgod4u+Vpoue0VmsaygC6vskrP1ei31Sg/tBMpvaWKPrR hfvuCSyvuLuiUg9ArLM5aYuFyFMt9B/lXkK0r7n/3CY3Gkag6XbYHAF7QwhocC8lay7S n7FKrokga7/EQSKHqq5ZLxz6AkeyZa5a0qHVhjRSWvltFkTvLygQAAG875BgN9cEVLvx oSpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=eaJiPLeHd+s83MgD/3Fmktbq/gtm4kNAtMchl1QcyoI=; b=IlmYtl5fhipxiPKReVVJXiGqgK7Af5fg7S/NfrIvW2TAm51bPSpHRmE4zJi8/8EN0N kHbAe9ggwWpgLk5jO/n+OJU9lAER4L9XOCWI+ahE7sYWWc/V/hUNOmuKSBAsXqNfjCw/ 9ZCccvHDIiYx0HIVqM3Iz2ZnbKBX4Y4nMSm6VI9ogwJCaBozA+IH8PTFtnnG3E0iHr6Z pif64UB9NyF8c8zduRTs1JaRDEFm9XuDyycAlNum2bdG4oxn8EFlFV4J2rsEVg6hkz1r juRIuR8EaeLDiUdHQvPmBUnJOZa36zyrsIdSNHESTMHBseNEtRlmz5xhhaPI3H5fZy3m kx4g== X-Gm-Message-State: APjAAAXGfKLbX3rAXj7+Uu29lOFYMTA0ns+XC/8L+amFg3XrM9h4+Up4 Eev2pEW48vgu6NI3EvIuRZk= X-Received: by 2002:adf:f709:: with SMTP id r9mr624986wrp.89.1556271949129; Fri, 26 Apr 2019 02:45:49 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 204sm30841621wmc.1.2019.04.26.02.45.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 02:45:48 -0700 (PDT) Date: Fri, 26 Apr 2019 11:45:45 +0200 From: Ingo Molnar To: Mel Gorman Cc: Aubrey Li , Julien Desfossez , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , Fr?d?ric Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Pawan Gupta , Paolo Bonzini , Jiri Kosina Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 Message-ID: <20190426094545.GD126896@gmail.com> References: <20190424140013.GA14594@sinkpad> <20190425095508.GA8387@gmail.com> <20190425144619.GX18914@techsingularity.net> <20190425185343.GA122353@gmail.com> <20190425213145.GY18914@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190425213145.GY18914@techsingularity.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mel Gorman wrote: > > > I can show a comparison with equal levels of parallelisation but with > > > HT off, it is a completely broken configuration and I do not think a > > > comparison like that makes any sense. > > > > I would still be interested in that comparison, because I'd like > > to learn whether there's any true *inherent* performance advantage to > > HyperThreading for that particular workload, for exactly tuned > > parallelism. > > > > It really isn't a fair comparison. MPI seems to behave very differently > when a machine is saturated. It's documented as changing its behaviour > as it tries to avoid the worst consequences of saturation. > > Curiously, the results on the 2-socket machine were not as bad as I > feared when the HT configuration is running with twice the number of > threads as there are CPUs > > Amean bt 771.15 ( 0.00%) 1086.74 * -40.93%* > Amean cg 445.92 ( 0.00%) 543.41 * -21.86%* > Amean ep 70.01 ( 0.00%) 96.29 * -37.53%* > Amean is 16.75 ( 0.00%) 21.19 * -26.51%* > Amean lu 882.84 ( 0.00%) 595.14 * 32.59%* > Amean mg 84.10 ( 0.00%) 80.02 * 4.84%* > Amean sp 1353.88 ( 0.00%) 1384.10 * -2.23%* Yeah, so what I wanted to suggest is a parallel numeric throughput test with few inter-process data dependencies, and see whether HT actually improves total throughput versus the no-HT case. No over-saturation - but exactly as many threads as logical CPUs. I.e. with 20 physical cores and 40 logical CPUs the numbers to compare would be a 'nosmt' benchmark running 20 threads, versus a SMT test running 40 threads. I.e. how much does SMT improve total throughput when the workload's parallelism is tuned to utilize 100% of the available CPUs? Does this make sense? Thanks, Ingo