Received: by 10.192.165.148 with SMTP id m20csp5222063imm; Tue, 1 May 2018 11:04:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWv7ASuoUvZNF8HfO8oclrGUweGmqTAyuykKIA5bUu+/ATaNpUtIjimJ2sL/XNhhG1hti1 X-Received: by 2002:a17:902:7441:: with SMTP id e1-v6mr3024129plt.238.1525197868972; Tue, 01 May 2018 11:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525197868; cv=none; d=google.com; s=arc-20160816; b=fHTH/ATx0C2QwDtqkMcMSC2Gz/5l6Sz0We7IoPqh1OBoB3wJFnLOiJ1gigZWawW0dq sLgzKpqI8ET877JZQG994X5eZZ2HK/xxsKYOfxXpg0X0rRzP9lxxt+zUbipOUcbVKQz+ 3p+0zwQ4re1hAurI+FJiIikS/7y7Fn51ernDxqe9EP03piUOP+oKlr4Tv7+E65OKFaoU XD0FZ4nTSUaZlKnb2dySXOBR2GEwd5yJHTlFwS1j+36OqTtT87WLTR/IKTi4ZHwY3cwu IggQsQzqqRMPU6lfxZDYxscQDSRUU1VQs5OONzywmivSwOPIvV0nUOC3xedpzbHM8KSZ PYOg== 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 :arc-authentication-results; bh=i5I1W8SMWHFrqgTBlcy4yMwKQy0LVCKZEu4qSkqjg5g=; b=rMwI9JgEz0SC+ReNcPb9cNYVpNRGR4uwOwdfQx6Jj98OEZoYq8l5yPIe4dQshbbWx2 Hp+DZ8vtBswkBREs6KCRehYTsRJCHHbJO8S+sFI1sPJSo/o/HTIDKaa4Bf1aUS6qo/j+ 0lHH3QDQ0Ubr/WswHuhHvZwTTVaU0V7+7FPdIDSWvu0UI0Bw5fqONVsWZ9plHqZoxlnz MMSctHVF5vZxq6m4ZWXUDTK28Nbo9vMI30BWUN22gV+9FTr8cWZstHLqL+ROPhQT5zcW XfQkd033+MtM9hWkQ6ABJdHSZrCLb4SI/iP+XZfJGfU+mnpt+WCRpWv3VhIJQzyT4sWK rRTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DV2mo8ev; 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 3-v6si9745647plm.59.2018.05.01.11.04.14; Tue, 01 May 2018 11:04: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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DV2mo8ev; 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 S1756236AbeEASEF (ORCPT + 99 others); Tue, 1 May 2018 14:04:05 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48460 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756060AbeEASED (ORCPT ); Tue, 1 May 2018 14:04:03 -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=i5I1W8SMWHFrqgTBlcy4yMwKQy0LVCKZEu4qSkqjg5g=; b=DV2mo8ev6gsVBH3htpcVTlJ/na UkZ/WNQ6Y9hfwt4MeQzg+97fWRuFiN5nBgxw0BjuJ5EfZFaMJ1fL7oR39Lo8UlA5T30z4b9wDrKPp HeikF6L4E1ZV1NqJCpnXHuyMXERwK+3ly7/8PQJC+itystYyg/XtxGmnzAs8z3VNQ8W5UrzUjk503 7P1s6xSCnOW2M26nGHnqaiHaiSgJ+fcuXYhFVTYjFgE/QuTzT3rtZFTq2MpqaopIvrXOCN1DT0DwC lNOjiUYSGGBSnHCMX7jwn24oqwMerUaq5xAzxv5vM4HYi/Jsu7u8mubg6oFV7rH/Kt6VXeBKKHucI MqzMifXw==; 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 1fDZd1-0006u8-9j; Tue, 01 May 2018 18:03:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9C88B2029FA14; Tue, 1 May 2018 20:03:48 +0200 (CEST) Date: Tue, 1 May 2018 20:03:48 +0200 From: Peter Zijlstra To: Subhra Mazumdar Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, daniel.lezcano@linaro.org, steven.sistare@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com Subject: Re: [PATCH 1/3] sched: remove select_idle_core() for scalability Message-ID: <20180501180348.GI12217@hirez.programming.kicks-ass.net> References: <20180424004116.28151-1-subhra.mazumdar@oracle.com> <20180424004116.28151-2-subhra.mazumdar@oracle.com> <20180424124621.GQ4082@hirez.programming.kicks-ass.net> <20180425174909.GB4043@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 04:38:42PM -0700, Subhra Mazumdar wrote: > I also noticed a possible bug later in the merge code. Shouldn't it be: > > if (busy < best_busy) { > ??????? best_busy = busy; > ??????? best_cpu = first_idle; > } Uhh, quite. I did say it was completely untested, but yes.. /me dons the brown paper bag.