Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1471934imp; Fri, 22 Feb 2019 04:19:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IZuev3TRrmu+pswrY2IrUaEIB1FsgfSBywTsM/ZMJlZ37YULFtpU3XnKocZLNaGeZqGCa5m X-Received: by 2002:aa7:8d53:: with SMTP id s19mr4089679pfe.16.1550837954252; Fri, 22 Feb 2019 04:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550837954; cv=none; d=google.com; s=arc-20160816; b=SF0gwrdvLyEsYBgAfLPeMcnFZooy3xiedhygZRHQKuD8LpYxWBNQ0zUOFil2/O0Ov9 86slzE8enUBR1bNl03AnvMQdWIpYu9yQsHR4fFXXyJj6bPMnL2MlhiFil6l7Q5hRoxzh RVjiAeDErcTgIzUOADOYpWoS9cP3A5D7Mp0tLWpccNJUcdiZkjXEJpPrGi4QigkPl28b 6DqPDsQnXtR3Z28tBCCdWnk2AIOUgRQCfcE8hNJK2kozOK+2FADzo1Hz+WKxm4OLKRMS xHSwita71a4xVeSGgeyn05F0mgX0pKd3oELQhjK9j6azMo6nYOwPs465xfhnFYuwyIBq MN4g== 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:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=88k1qREMR7rkQ2BECIV4vVkB/qIPs9/VIanwy81cpKo=; b=cEJ3XbugFxNHrLHqBdpM/imDMZ9HuvLn/tX3pDtPdI+q9kCy0BYYqOvZY+W8npdRp/ 7UxZorNuUmeFVl5Nq+SW6cMTGKAp1B1MxOcFIZ/OFfA1QV/Ar15NBc3QRr+p7yO70FlC yG38Tn4WHtNI7XgTNRZTgULgJHRI1Wzywn17Fk+IzwUFjSvIxbna2ubDDdwbCOYlwm3S KBOQdP9P9yQopM5RFR3VJK0EI52AXKrZprVdHZH13I+6Bx6w7JKnBvzBVBiwPUI3az5r NEYfaQIp7VMxfqA3F3jfI9finxjjLulKl++PImB04bqxIWmYsIVkCeX63AEh592TWXWm ZlxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bGiwfiPG; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si1295878plh.79.2019.02.22.04.18.57; Fri, 22 Feb 2019 04:19:14 -0800 (PST) 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=bGiwfiPG; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbfBVMRG (ORCPT + 99 others); Fri, 22 Feb 2019 07:17:06 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37274 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbfBVMRG (ORCPT ); Fri, 22 Feb 2019 07:17:06 -0500 Received: by mail-wm1-f66.google.com with SMTP id x10so1761861wmg.2 for ; Fri, 22 Feb 2019 04:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=88k1qREMR7rkQ2BECIV4vVkB/qIPs9/VIanwy81cpKo=; b=bGiwfiPGLzIWmy/+brtPMsDOCtHhEZN0FDH/rZrmvZB4q5pQlkqJd+aodH5e+y8K2o uiONryZh2Bmfr720G3jHFt0FzcVqFL/Uw8q9FM4Abu0g8mZ6+1Nq+rVKwGKIQDYkYGRv E4NrsEmvpOFepUWaBRkq5C6zqIxjkpTG5vF/UlIEQ3e8i94cy7oXBs0sHYLYlw/gIgLZ 8lEKMoWbKek6ys+TMA91PhXy7+vbOOOQUAkwtcuaw/H+Pcgbc2tBpPGNNNHW0Gex2vlU l+oQJsCsu3lSvwLIYQtEsqmlVzPTK9pHzsAahbF1qAppirWdg+Snjb2R1zLg/ruu0pc7 Wsmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=88k1qREMR7rkQ2BECIV4vVkB/qIPs9/VIanwy81cpKo=; b=SMhn/ceOUABi+7WC5n2wvftkA+HMgr8vaPBgzDKLTWIo/93GhV9iscLxvEgKpG6O/c dB/WkojAcjGP3OvQdpwD2Rt9aGdVYy5PHE0yPqMmjiOmostQudUK4jHkij5Tb6FGZfEG 8eiouh6YwsdB+IDs7UGPq+qRc3KoizQUL9qfESyJwbM3h2trHAEOnJEr9A25U30U9QSQ 7r3SkM256Wl+joVlkZSWEEOUJP38P5bZX1kTpdsxwVyCwZRDSSVoHqJ0X+VwapUMuXJO pD+sDqSeOx8DMwwA1gqgkNTh/8L4lLdFQzu6nYv0HoGywAxta/baJ0z6c6+hqgCTWftD oazA== X-Gm-Message-State: AHQUAuYWnCA7/eacA0GirNm/WH/0V6KFo3plLV/FBmEhpopdJd0Az2yK DrQCIr2SR1QqeXvuUBvd+2Q= X-Received: by 2002:a05:600c:21d9:: with SMTP id x25mr2410190wmj.136.1550837823963; Fri, 22 Feb 2019 04:17:03 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:68f1:cc8f:5e64:a7e? ([2001:b07:6468:f312:68f1:cc8f:5e64:a7e]) by smtp.googlemail.com with ESMTPSA id b197sm2871812wmd.23.2019.02.22.04.17.02 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 04:17:03 -0800 (PST) Subject: Re: [RFC][PATCH 00/16] sched: Core scheduling To: Peter Zijlstra , Linus Torvalds Cc: Ingo Molnar , Thomas Gleixner , Paul Turner , Tim Chen , Linux List Kernel Mailing , subhra.mazumdar@oracle.com, =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , kerrnel@google.com References: <20190218165620.383905466@infradead.org> <20190218204020.GV32494@hirez.programming.kicks-ass.net> From: Paolo Bonzini Openpgp: preference=signencrypt Autocrypt: addr=pbonzini@redhat.com; keydata= mQHhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0P9dwptwLEgTEd3Fo UdhAQyRXGYO8oROiuh+RZ1lXp6AQ4ZjoyH8WLfTLf5g1EKCTc4C1sy1vQSdzIRu3rBIjAvnC tGZADei1IExLqB3uzXKzZ1BZ+Z8hnt2og9hb7H0y8diYfEk2w3R7wEr+Ehk5NQsT2MPI2QBd wEv1/Aj1D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Fv3ToO53DliFMkVTecLptsXaes uUHgL9dKIfvpm+rNXRn9wAwGjk0X/A== Message-ID: <407b6589-1801-20b5-e3b7-d7458370cfc0@redhat.com> Date: Fri, 22 Feb 2019 13:17:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190218204020.GV32494@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/19 21:40, Peter Zijlstra wrote: > On Mon, Feb 18, 2019 at 09:49:10AM -0800, Linus Torvalds wrote: >> On Mon, Feb 18, 2019 at 9:40 AM Peter Zijlstra wrote: >>> >>> However; whichever way around you turn this cookie; it is expensive and nasty. >> >> Do you (or anybody else) have numbers for real loads? >> >> Because performance is all that matters. If performance is bad, then >> it's pointless, since just turning off SMT is the answer. > > Not for these patches; they stopped crashing only yesterday and I > cleaned them up and send them out. > > The previous version; which was more horrible; but L1TF complete, was > between OK-ish and horrible depending on the number of VMEXITs a > workload had. > > If there were close to no VMEXITs, it beat smt=off, if there were lots > of VMEXITs it was far far worse. Supposedly hosting people try their > very bestest to have no VMEXITs so it mostly works for them (with the > obvious exception of single VCPU guests). If you are giving access to dedicated cores to guests, you also let them do PAUSE/HLT/MWAIT without vmexits and the host just thinks it's a CPU bound workload. In any case, IIUC what you are looking for is: 1) take a benchmark that *is* helped by SMT, this will be something CPU bound. 2) compare two runs, one without SMT and without core scheduler, and one with SMT+core scheduler. 3) find out whether performance is helped by SMT despite the increased overhead of the core scheduler Do you want some other load in the host, so that the scheduler actually does do something? Or is the point just that you show that the performance isn't affected when the scheduler does not have anything to do (which should be obvious, but having numbers is always better)? Paolo