Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5698253ybe; Tue, 10 Sep 2019 07:35:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqdizurXoT/94LpM06k7YvOFvDu1/Waahd49ODGfDcX8/2Mi5VvYiZDU2Oi4PFMVM9lvX9 X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr24774373ejb.169.1568126101793; Tue, 10 Sep 2019 07:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568126101; cv=none; d=google.com; s=arc-20160816; b=FDMrMyFHBzfA4IqHQ+Vz9Jvnm97AsRJuAj/9iKgQoDbyXjFBwtPzBxQPbug6vnJA3D /4J+vsPmzn435FMM3rdp4+HmQRZNHGG824WySjdylp7CUkswVhqn6svTqmiO87+CHQUP xvnyJjLGFmHz1Kv0UCC3QILUBji9pVMmcmpjVx5H5/XyXz8blejuCANrvKc930+ogeXm jEmbFlGJWiq8hbAEvBNGp0d/VptuoaICCyJM7Sp7Qjb+KDSUFkKR0pJrkHaNZ3FIe+ZL ItrLaozJSHsmLxfBf2D+pXSkBSp0gQ0FkslYOnRhr3WuAoNZkKryQOtzGwwsheN1+VyE DqIQ== 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=svTfK8XVs7zcozaB1slOaxRqDQ/z/h8slzAfLwekH/0=; b=HpPMBAqEGj6X1x4h1pdTWkqHQQTI3kfW3oGk8HoFD5qc9APMRI5fHbqFuY+5L09yPZ TBQdGXwrUge7bwy9X+THapoNDnb4uphhhlBt3ChzTUOgy27MSAUxfEy+jLN11F5NE5cD Kr5mAW2nDw3qeub75HTvf560V0BAa+cj6N15PkSGjpqBlVA21u9zsjOw072idYBLMVN4 Qak5qXsJxdi64+AlmQ4dNznihKl08y2YB192bZpVYoEg7piZxh5++e9l88S6zFXT7xaN YJF50cvRzp1Q+unwYhiKlodlP/AeO5Q2SopLJ9Q4DHZCO1Es8RLvePXoTSnK9I/z3Pfo bPaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b="BjwE/NLn"; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id on24si9855295ejb.259.2019.09.10.07.34.37; Tue, 10 Sep 2019 07:35:01 -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=@digitalocean.com header.s=google header.b="BjwE/NLn"; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387530AbfIJO1b (ORCPT + 99 others); Tue, 10 Sep 2019 10:27:31 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36168 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbfIJO1b (ORCPT ); Tue, 10 Sep 2019 10:27:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id y19so20711496wrd.3 for ; Tue, 10 Sep 2019 07:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=svTfK8XVs7zcozaB1slOaxRqDQ/z/h8slzAfLwekH/0=; b=BjwE/NLnb5Cq/OR3pqpew/QLm3vmNoHfIfpotJzLcmLzNArKzgt/lsD5QdvF9yE+HC clUWKDeU6jN8CHM3yG1dq84pdttJ01xchYNaIA9AFUTYpFC+UwH0fv/6rH+rkJMbjQDs aRsVIDEc4nWtXEdzKHuVahH0vylOq7Eggibc0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=svTfK8XVs7zcozaB1slOaxRqDQ/z/h8slzAfLwekH/0=; b=n70zRKScW0MbLrhe3oHJGVliACVrvtkEvUzLRYsQXP+5dG9JL3iSsj57Y5DxZWsoJ6 SRJNwX6WW/XXMItbwYd7mV8gUqx0efIEBZElRY5lTuP+wW7XSiS0o6BLQKdlPrqtQm32 Wwk5JXd+sXPzTUHgMwYdo9bXw0/cp70YHhwLj3hyM6cuFZgjIEtL1YXg4+zFKRVTNjzL dQ/ViN7Y6uuFo1lClcCNwJjz2z1cEpvSHMKM5w8Mv8R4aJCpNJRnGLP0TDLpjy5bITJW m+HR77Tdtn3jLE6gYngsNgv17uMWGaM/c/ex7bWXzVoM456B8m1dAWrd4BqF/X9A2zaI u11w== X-Gm-Message-State: APjAAAXW4k7huTvlVPiRxqXooclgdXwOIdYDkpxgKaOxqWRPKis9nGbO 3DuMzBjVQRCc/1Y4ve3huZ1KOQ== X-Received: by 2002:a5d:5642:: with SMTP id j2mr17795069wrw.345.1568125649269; Tue, 10 Sep 2019 07:27:29 -0700 (PDT) Received: from sinkpad ([148.69.85.38]) by smtp.gmail.com with ESMTPSA id v7sm15915206wru.87.2019.09.10.07.27.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Sep 2019 07:27:28 -0700 (PDT) Date: Tue, 10 Sep 2019 10:27:17 -0400 From: Julien Desfossez To: Peter Zijlstra Cc: Phil Auld , Matthew Garrett , Vineeth Remanan Pillai , Nishanth Aravamudan , Tim Chen , mingo@kernel.org, tglx@linutronix.de, pjt@google.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, subhra.mazumdar@oracle.com, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Aaron Lu , Aubrey Li , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20190910142717.GA1855@sinkpad> References: <20190827211417.snpwgnhsu5t6u52y@srcf.ucam.org> <20190827215035.GH2332@hirez.programming.kicks-ass.net> <20190828153033.GA15512@pauld.bos.csb> <20190828160114.GE17205@worktop.programming.kicks-ass.net> <20190829143050.GA7262@pauld.bos.csb> <20190829143821.GX2369@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829143821.GX2369@hirez.programming.kicks-ass.net> X-Mailer: Mutt 1.9.4 (2018-02-28) User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-Aug-2019 04:38:21 PM, Peter Zijlstra wrote: > On Thu, Aug 29, 2019 at 10:30:51AM -0400, Phil Auld wrote: > > I think, though, that you were basically agreeing with me that the current > > core scheduler does not close the holes, or am I reading that wrong. > > Agreed; the missing bits for L1TF are ugly but doable (I've actually > done them before, Tim has that _somewhere_), but I've not seen a > 'workable' solution for MDS yet. Following the discussion we had yesterday at LPC, after we have agreed on a solution for fixing the current fairness issue, we will post the v4. We will then work on prototyping the other synchronisation points (syscalls, interrupts and VMEXIT) to evaluate the overhead in various use-cases. Depending on the use-case, we know the performance overhead maybe heavier than just disabling SMT, but the benchmarks we have seen so far indicate that there are valid cases for core scheduling. Core scheduling will continue to be unused by default, but with it, we will have the option to tune the system to be both secure and faster than disabling SMT for those cases. Thanks, Julien P.S: I think the branch that contains the VMEXIT handling is here https://github.com/pdxChen/gang/commits/sched_1.23-base