Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3865225imm; Mon, 17 Sep 2018 04:36:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYd9FALIBEnfTP+7/EsmB/yii1lxncIyU6r+oCk9oUuqzPUDN9aU47qJYvj8KKNKKdNoK1h X-Received: by 2002:a17:902:2e83:: with SMTP id r3-v6mr24469978plb.80.1537184182806; Mon, 17 Sep 2018 04:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537184182; cv=none; d=google.com; s=arc-20160816; b=UAfGWelepzhwxzx9RIxgBXmU4Lyx7Fy9kCzrUKbhgf2WMBPAzdYqvy7/eFiZ84nPMx s3oDnIaTOTScTywqlde0JLBDJ8cccY8ipZS88o0fWXOQ+TfgwuRDUGiFbUnsBndzAH// ersLI8otgFFdg56fX/eJc9HBisFwQPboahwrblzf/4D7VZo7g1eD/G08UqpDQnpNTZhR 1+odVXSiLIvJ92uZu9eMmWfhmUK8ciXvp/0+xCNp9j/VDUTI4vk61dz+nk6ybXia6Jiz KprYNYJwROZDAPRrSxd70LU3sHaTsVDikoykxyxPiSXMSJTPQMxCVBbke99+KAeRxPXz SK+A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EA6Nf0fYn1AK6GeVV3Kp3wCyzts6mhBWR/hAaZKU/rc=; b=f/bKV6aruH2sPc3BrGwGVlmV25WJal4zdqm7Uc+WQPPyZSDoBnO/yB6l2Hc1VD/lQM cgmTaVUP0cem0M0Jf3AOPWR7bKGJ70cJXtZcXTBGr1R/usl9j3jWXkEjvL9tGXeF9KrD RTYLSt30Gofqu3X6jg2rISsA8AanNkjb5WbalLGWqzfYqL62Leta5x3CcAZ+REtWpfTl GEnibuRxwFTRUBsXtxsqGluaxHj6U3c9HNiyiznq9+2/Qb3K5cvIiVBm2G6QFQYaIYdt hsIAZJi5Oo94c7K/yAls/0gagqCNkMZqvnpGFpEcnMM+qLDkzcnZy8yblbIDhpUz6kHP 5lUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ELqZJXDh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si14405419pfi.256.2018.09.17.04.35.56; Mon, 17 Sep 2018 04:36:22 -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=@infradead.org header.s=merlin.20170209 header.b=ELqZJXDh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbeIQRAY (ORCPT + 99 others); Mon, 17 Sep 2018 13:00:24 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36550 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbeIQRAY (ORCPT ); Mon, 17 Sep 2018 13:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EA6Nf0fYn1AK6GeVV3Kp3wCyzts6mhBWR/hAaZKU/rc=; b=ELqZJXDhse+pMMinsNpEDpqr7N bfoaH3WMSpJZMAWZdlzUj7NWd3MJeDJDG2zMb8/DKJfFNZb8HepLIbFkqo9KNL5FixF2UkCOeYuAa VhHddCausVn/P4eqXhzvVeCfIA7UJwyvldXr3sLFkyX2X8FePQcEw8TLV4wUc3pFATA1ivb3VtdXd yMpNMgRI8HflMORp6Fe4YUKhU28fKmrs0Tfdl1m1vkVH1p08C6AmM5fje6ne1k9OFQPnFv7KATvA8 60W8gE/yiDLa8DMMD5bPvI9AmrYnszXHzXcxgV5a9Gs3KhPxxFLwqJIsWZl/17uuPHQEB0eDNerbN dScmymJQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1rmI-0003Mq-I1; Mon, 17 Sep 2018 11:33:18 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CDFEB2058A20A; Mon, 17 Sep 2018 13:33:15 +0200 (CEST) Date: Mon, 17 Sep 2018 13:33:15 +0200 From: Peter Zijlstra To: Jan =?iso-8859-1?Q?H=2E_Sch=F6nherr?= Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Paul Turner , Vincent Guittot , Morten Rasmussen , Tim Chen Subject: Re: [RFC 00/60] Coscheduling for Linux Message-ID: <20180917113315.GS24124@hirez.programming.kicks-ass.net> References: <20180907214047.26914-1-jschoenh@amazon.de> <20180914111251.GC24106@hirez.programming.kicks-ass.net> <1d86f497-9fef-0b19-50d6-d46ef1c0bffa@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1d86f497-9fef-0b19-50d6-d46ef1c0bffa@amazon.de> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2018 at 06:25:44PM +0200, Jan H. Sch?nherr wrote: > On 09/14/2018 01:12 PM, Peter Zijlstra wrote: > > On Fri, Sep 07, 2018 at 11:39:47PM +0200, Jan H. Sch?nherr wrote: > >> B) Why would I want this? > > > >> In the L1TF context, it prevents other applications from loading > >> additional data into the L1 cache, while one application tries to leak > >> data. > > > > That is the whole and only reason you did this; > It really isn't. But as your mind seems made up, I'm not going to bother > to argue. > >> D) What can I *not* do with this? > >> --------------------------------- > >> > >> Besides the missing load-balancing within coscheduled task-groups, this > >> implementation has the following properties, which might be considered > >> short-comings. > >> > >> This particular implementation focuses on SCHED_OTHER tasks managed by CFS > >> and allows coscheduling them. Interrupts as well as tasks in higher > >> scheduling classes are currently out-of-scope: they are assumed to be > >> negligible interruptions as far as coscheduling is concerned and they do > >> *not* cause a preemption of a whole group. This implementation could be > >> extended to cover higher scheduling classes. Interrupts, however, are an > >> orthogonal issue. > >> > >> The collective context switch from one coscheduled set of tasks to another > >> -- while fast -- is not atomic. If a use-case needs the absolute guarantee > >> that all tasks of the previous set have stopped executing before any task > >> of the next set starts executing, an additional hand-shake/barrier needs to > >> be added. > > > > IOW it's completely friggin useless for L1TF. > > Do you believe me now, that L1TF is not "the whole and only reason" I did this? :D You did mention this work first to me in the context of L1TF, so I might have jumped to conclusions here. Also, I have, of course, been looking at (SMT) co-scheduling, specifically in the context of L1TF, myself. I came up with a vastly different approach. Tim - where are we on getting some of that posted? Note; that even though I wrote much of that code, I don't particularly like it either :-)