Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4466015yba; Tue, 7 May 2019 19:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8edSErhmM2iKOQBQNNtucQ7sw9gH1PQFY+tp/MVYdzXXDpvmKzgsuILrVlklwwiYhnq8a X-Received: by 2002:a62:4852:: with SMTP id v79mr45688691pfa.72.1557282688414; Tue, 07 May 2019 19:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557282688; cv=none; d=google.com; s=arc-20160816; b=qq8EIhaVpezV6KKpyfLv12eEl0wi3Nf47QB34f2G7MRCa12PZMMarHs+DfeE5VRmYn QDmU03zx/k4kExXvGBElT8w9HiIGkKD7F85AH7bjstPpou/Z5SbqfuNhuD9l7+1PBIcU SSNWixeO2LLtmCTnRCh+QPZfQ0iSNTnJsoWOOs6vdKSyGofUDSzmczOsntrRByBWC/Wl 1QAP7PMFVX9YdXtacTGc2tcOysU9hXMIuYd1uRkUu39BZuB5vzYiAV+blR8Kdrm54N0x 83d6zOybd7+Ih43j1jcmTWuIiVi9w1mqV5WH/D4EoxlI/sah5GAXnfWcZougAqFf/HFW +Lvw== 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; bh=f6OTzAIj4THJXVi3WB2JLG4NNbnNOqVV81GWz2wYJso=; b=gmLa8WnuFgMhS9qi5JB200ELPPw8nVITZTODiN7EMQyXHAy57n3OTvnqPBbPQ6JMtx Fu0KeSOuT+KcJSiJ4cys6GgqjN/Z8AKwg5oDRfibEnyoNe4mnDX+aO9+9bneAkZn+U/u F0lZEpy58Ndi/QYTuImxEvS+BLQYB0W5+JaejNWuAaw1u0/mXHn+9kXV9IBFNc37tf3T d/UjOkI6wsDwfmZ9MpJnNT41f4KZij85FD+iAxcAqOeRwqpB/wzft31evyKsavUMfT0V Uf/WAQeFJz6I867s6a2KOkpmHax9kDFwvTJObyRrovq5w3B1oJd0jYXGNG/EMX6bhvLy 4Rtg== ARC-Authentication-Results: i=1; mx.google.com; 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si12484887pgb.107.2019.05.07.19.31.12; Tue, 07 May 2019 19:31:28 -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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726448AbfEHCaY (ORCPT + 99 others); Tue, 7 May 2019 22:30:24 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:46875 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfEHCaX (ORCPT ); Tue, 7 May 2019 22:30:23 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R511e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0TR8smSK_1557282609; Received: from aaronlu(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0TR8smSK_1557282609) by smtp.aliyun-inc.com(127.0.0.1); Wed, 08 May 2019 10:30:16 +0800 Date: Wed, 8 May 2019 10:30:09 +0800 From: Aaron Lu To: Julien Desfossez 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: <20190508023009.GA89792@aaronlu> References: <20190423180238.GG22260@pauld.bos.csb> <20190423184527.6230-1-vpillai@digitalocean.com> <20190429035320.GB128241@aaronlu> <20190506193937.GA10264@sinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190506193937.GA10264@sinkpad> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > idle with tasks in its runqueues came back. Assume you meant a hyperthread, then the question is: when a hyperthread is idle with tasks sitting in its runqueue, do these tasks match with the other hyperthread's rq->curr? If so, then it is a problem that need to be addressed; if not, then this is due to the constraint imposed by the mitigation of L1TF. Thanks.