Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp716222imd; Fri, 26 Oct 2018 16:07:04 -0700 (PDT) X-Google-Smtp-Source: AJdET5crRIZ+hPn2j+XKaH0qj5QERPUXTWyn5xCgjgWRxqsykfI4R5oZDuxcjP5xaZDG6B29cIti X-Received: by 2002:a62:c60a:: with SMTP id m10-v6mr5715832pfg.15.1540595224278; Fri, 26 Oct 2018 16:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540595224; cv=none; d=google.com; s=arc-20160816; b=JlMxSwT1QIz+ZoaA6mPJv554jmqMuxNXxSVFxVloMuQQQ6vauiuhDUTNmLjlhl1bl0 wxmCZMPRY3oX/yoEm1YcdawpBdSJZwumtvB2+ngxdFLt/DV3HXxJpIK/26NYl8I1plTD ud0s2jAil5Ez8gcyTIPC9e5H6mgZyjlOZ+wbQvu4nn5x4RMvXSipnEH5Z2QE8TcWVqbZ lPyLjh1RSTTZo2tZP7F5Yfujo38n7JaIhBa2Sk0s5AlHRkd2fkShu4Ksp4MY84rJE8ap rjQjQVbx0SeT9ndFMW+fHE/PdsPm+L0/2FFdglB4x+W2ReWqiSy/m2QYnwzcQ77mX1BP O/qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=E2TBzyRn4FlZDssLAOxZ1HbDJPookG1+ECYnRV9id/A=; b=0sXXAbZ4EzMC2qHE48ozdBuf494JYR9qiVWFIwKsn26PaC/7jZTu9bIt+of6ge+ube 9vuXiMj8gHOc0T3xzCoYCG9kqos4sn7If7DpRdHnG+Ed88h4IF/+6olBe5hfVb8p3ZWg rDf7zClkQsbqfdEuI45m2cKuZssn6tEPxzbDd4MGq3AWnCKiW53MV1Iyh0z4myD7HR0m ubtqjuo1d0deLAyIkDt0moYfTFCNnPGw9ieZOpOAzhZkg2mBPbyN5RH4CjQTdZjXmfEE eGU9SHN8lIQVgrNupT9MdEdokvC3DO4PfOBuJOKSdn2TT3Atj9D952ZD857KPObZIIR6 jgMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=U31uksvd; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22-v6si7573215pfi.279.2018.10.26.16.06.46; Fri, 26 Oct 2018 16:07:04 -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=@oracle.com header.s=corp-2018-07-02 header.b=U31uksvd; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728185AbeJ0HpS (ORCPT + 99 others); Sat, 27 Oct 2018 03:45:18 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:57518 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbeJ0HpS (ORCPT ); Sat, 27 Oct 2018 03:45:18 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9QN4ICE116328; Fri, 26 Oct 2018 23:05:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=E2TBzyRn4FlZDssLAOxZ1HbDJPookG1+ECYnRV9id/A=; b=U31uksvdoYOnWiyTkL18NMEqLO/sUBppiU8JaG09naPwnKkM6s+0PAcPPoxehdUpcxs3 Ghg1BoIsVwgW2DJ6eSc/PqwwQO1Tz1j1NweSjDOa5gojiRT4ZoGMSOE8TCXF6VTD46P5 2UVoTRsiXsnQ0x1A3cUU6cZ1SImEEwDVHK6Em4eA2Q/hi7J5Ya6j1lrWJco0S5Mrkg81 4VoG7NyJbJ8pY9OGu9jk7qCcTFtynkGhcLRMs6We18kgaAxHV+53EQyEZ0wb4ByCEcqt +cszmW8889HReK7+1Y2DWfRq67IckUikU7XtSVCHTh7SDFgWA8f9aGd7JNQK6XprTTzu bw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2n7ususj03-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Oct 2018 23:05:54 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9QN5sKL005016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Oct 2018 23:05:54 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9QN5rkp008015; Fri, 26 Oct 2018 23:05:54 GMT Received: from [10.132.91.175] (/10.132.91.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Oct 2018 16:05:52 -0700 Subject: Re: [RFC 00/60] Coscheduling for Linux To: =?UTF-8?Q?Jan_H=2e_Sch=c3=b6nherr?= , Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org References: <20180907214047.26914-1-jschoenh@amazon.de> From: Subhra Mazumdar Message-ID: <65abfba5-7c51-fd99-898e-f6e74969fea3@oracle.com> Date: Fri, 26 Oct 2018 16:05:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20180907214047.26914-1-jschoenh@amazon.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9058 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810260192 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. > The leader doesn't kick the other cpus _immediately_ to switch to a different cosched group. So threads from previous cosched group will keep running in other HTs till their sched_slice is over (in worst case). This can still keep the window of L1TF vulnerability open?