Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5416911yba; Wed, 8 May 2019 13:01:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwufmMkFh6tJG4kBck2StWFZAt8tRj2g/SvYuXzYf4LAtfjgp2PazeoqqO5wk/Em3589fDm X-Received: by 2002:aa7:92d5:: with SMTP id k21mr51541922pfa.223.1557345675983; Wed, 08 May 2019 13:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557345675; cv=none; d=google.com; s=arc-20160816; b=uCTzm7vG8vdvFo9P+mCnlFGmiNr5Cdaxe5czGTUrcvFyiQ+RpdZpISYn7M5Fzu+x6t 1mrpvsSFHREnoGZz72yFvq8gM8Yv6bRLPqTlb4N24nVxb8m3JSPYPoEDaRH6F10+wLI0 2/DlHqif5INWMAVjF/mFixq7C0XObHodmQQm5fASLnx62+CtjfYWs6SjUURjQFeskudY PnIseR4eUunTFoNZImxxuCWuIEDwq94KcajzmdwxB6EqdXkV/SfNOyy3tdcoOXbixtrD DdeifKSTmGffRJaITYQSRQ/yMz6jRnTtbJmX9J6MSlPZDHRqorHVLQWiDUZ8J/Uzs6T8 cm7g== 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=MYokK5wm2I2ALJEgNMuacgIvUBpvCuKZvYIQRVxW+n4=; b=iTBMAAJpBC+UhAC9caJXWV52WBOparQ4J2zPYnJX6OZDQU9QhOtKBoVR6xAcd+H+2y 3+3YAI1tJ0BCPfb1FnQ6ZI2NOUKj09XTAW369WPsZtLIQ5LHCh5okaHbc3aMkHqmBNt3 BRoBjGTKcsujbppywFNrDkPhug8Ue9+J5nPtrYzY5QGK7fF0ZnzyoHEa+C8E5RjhRaqN Dc/wc7RAxeVrXsvLb5TuLV1O4hk2MBpc+aKv56g9kFQSD5/2j0WZHwIP8qoDNTeISK5v y+YBOPV4Ubfc4FKggskefRbk2R3eRwu28h0wId7mYNiXiCHLi4/uekRbTJ5mDyd0XMEq D3Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=cxzzcGAB; 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 j25si24157143pgl.215.2019.05.08.13.00.56; Wed, 08 May 2019 13:01:15 -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=cxzzcGAB; 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 S1727007AbfEHRtU (ORCPT + 99 others); Wed, 8 May 2019 13:49:20 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45099 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbfEHRtT (ORCPT ); Wed, 8 May 2019 13:49:19 -0400 Received: by mail-qt1-f193.google.com with SMTP id t1so4016064qtc.12 for ; Wed, 08 May 2019 10:49:19 -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:content-transfer-encoding:in-reply-to :user-agent; bh=MYokK5wm2I2ALJEgNMuacgIvUBpvCuKZvYIQRVxW+n4=; b=cxzzcGABhAO7WvvlBq3PxupkpQLtH7rV+VckH/4En1y7BYRa8ppp15DjkpiAiXY1d5 AbwzAR4zHINJeV4U+3BNsFYz+OwWGPL6h/5H2dEIjfxIYlUbFsNExKXbREdCJvER0Ogt 8wRoWFdWXFE9Q6SZc9i0bXTSlZm8qkXB/sMxM= 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:content-transfer-encoding :in-reply-to:user-agent; bh=MYokK5wm2I2ALJEgNMuacgIvUBpvCuKZvYIQRVxW+n4=; b=YY4tRO6nUUpXsELq3fwLx+IgzQqHVJ6jx+CPFWAe57lFT8udCZxLfMpW1FUz58cO9i ZNXZgX3gYZXQhXirUAi2z4nxef54FFHGde6honPwne5r0tAbRi0FP6aTZPUNVYPBj0mC 2tu2HxTy7eb0F5BWFKh0qiQ6fdXqQatymGeggZU4SiKHqaSOz4tPMPOyBvyxBlWQsNxZ Rt84X0sA9cyNKurcM5TyiCfEhSxwjCojJmJQWk9vVK+VdfBQJTFCT7zieU6yi7VUWFh0 jWbGCuvruBu/+xu2ZFJKZ0NGRsNuMwcqoFKkWWjsX7/4Y+kUxb91IGw+5GXClKjg7sT1 n/yA== X-Gm-Message-State: APjAAAWIcDKnbOF1qipB5s39RpZD2EQ0WliBdSRsp9bE2SIOw/rWsvrf IMGriAfEAPMabT7BUASYJHm5jA== X-Received: by 2002:a0c:96eb:: with SMTP id b40mr30408822qvd.188.1557337758833; Wed, 08 May 2019 10:49:18 -0700 (PDT) Received: from sinkpad (192-222-189-155.qc.cable.ebox.net. [192.222.189.155]) by smtp.gmail.com with ESMTPSA id n66sm9496354qkc.36.2019.05.08.10.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 10:49:18 -0700 (PDT) Date: Wed, 8 May 2019 13:49:09 -0400 From: Julien Desfossez To: Aaron Lu Cc: Vineeth Remanan Pillai , Phil Auld , Nishanth Aravamudan , Peter Zijlstra , 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 v2 00/17] Core scheduling v2 Message-ID: <20190508174909.GA18516@sinkpad> References: <20190423180238.GG22260@pauld.bos.csb> <20190423184527.6230-1-vpillai@digitalocean.com> <20190429035320.GB128241@aaronlu> <20190506193937.GA10264@sinkpad> <20190508023009.GA89792@aaronlu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190508023009.GA89792@aaronlu> X-Mailer: Mutt 1.5.24 (2015-08-30) User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-May-2019 10:30:09 AM, Aaron Lu wrote: > On Mon, May 06, 2019 at 03:39:37PM -0400, Julien Desfossez wrote: > > On 29-Apr-2019 11:53:21 AM, Aaron Lu wrote: > > > This is what I have used to make sure no two unmatched tasks being > > > scheduled on the same core: (on top of v1, I thinks it's easier to just > > > show the diff instead of commenting on various places of the patches :-) > > > > We imported this fix in v2 and made some small changes and optimizations > > (with and without Peter’s fix from https://lkml.org/lkml/2019/4/26/658) > > and in both cases, the performance problem where the core can end up > > By 'core', do you mean a logical CPU(hyperthread) or the entire core? No I really meant the entire core. I’m sorry, I should have added a little bit more context. This relates to a performance issue we saw in v1 and discussed here: https://lore.kernel.org/lkml/20190410150116.GI2490@worktop.programming.kicks-ass.net/T/#mb9f1f54a99bac468fc5c55b06a9da306ff48e90b We proposed a fix that solved this, Peter came up with a better one (https://lkml.org/lkml/2019/4/26/658), but if we add your isolation fix as posted above, the same problem reappears. Hope this clarifies your ask. I hope that we did not miss anything crucial while integrating your fix on top of v2 + Peter’s fix. The changes are conceptually similar, but we refactored it slightly to make the logic clear. Please have a look and let us know Thanks, Julien