Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7263841ybl; Wed, 15 Jan 2020 19:04:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxmy3/eqMG5uy2sTGg8Zek7ra0CsWTyUlI7e6E6URqRv76O2eH23BgHbxKaLub7VNOUximH X-Received: by 2002:a05:6808:907:: with SMTP id w7mr2509497oih.137.1579143849331; Wed, 15 Jan 2020 19:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579143849; cv=none; d=google.com; s=arc-20160816; b=0rmuIoXrVHFuukRXPFpnTmB48d1oLkHN/6kKzLo2CQvfRzTzzw5yt9WtBkmd17cPnt agmnQPnIrlL6A3fxtnKCIMEilbbtd6kmC0ou7x3dxSR6XCHuuTuw47LHFABcsH68jhi4 WnyGL31Kl96SlaNOamFBgIDfudtALWCyGLDQXk/NQ7dkRgD+aU1yE+wlRKafx7SkCJ7F n2YVPBYlQ2iGyILv08paVS/yyfYmFzdmHl0j6a4tUcIfHvz8MM7ON0vkq9zYSWR1twB5 m526+xzo+7uDKPnHsTkUEQztzqd9xjKqfcwahDJfvpxbqCHIx6hhQ+9QCz06C98omQEj CXwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=U+RQyzgBTq/ON6P2+wJSZt2wyW+FlNHJHg+NSKeDmFE=; b=Ni5pGT2hTpT0Zf0lC6HKMzCA2poAUdENu7C0avP8IVnm42C1St7yKH8S/3DxhrwiOc 5tFnpjuRJZMp1fT+Z0r/DEIQ8nue2LU60PQEOtbSWczyGilBJnMyAWXOLjDfuQr7BOPY Ior+jwuITqcKOzjKyFA1vKTzyUaMShx2UD69o7FGAvkcvI9bct1EKS4pGQfUKEir/aKv L2C6A93iVvGWlnqF/y5bN1rKJbyKnAHAkzv1f5sM/wkenFGLhL5tt9vvuVRqadkFS3ZC 69whXCA+fkXqi+op3HR0KzFAhOm2wADRXFZUNd4sthss8IglhM3RzBViTAJ6PEkDNgEv PquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NUQfXiZb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si10456064oij.125.2020.01.15.19.03.54; Wed, 15 Jan 2020 19:04:09 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=NUQfXiZb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730343AbgAPBpr (ORCPT + 99 others); Wed, 15 Jan 2020 20:45:47 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42218 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730153AbgAPBpr (ORCPT ); Wed, 15 Jan 2020 20:45:47 -0500 Received: by mail-lj1-f193.google.com with SMTP id y4so20751672ljj.9 for ; Wed, 15 Jan 2020 17:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U+RQyzgBTq/ON6P2+wJSZt2wyW+FlNHJHg+NSKeDmFE=; b=NUQfXiZb7391JB22uSyaFTtB4xoyTOL60AdEkWdUh9rxn3xgqHIqBIQpQ9yOWzqBXs 62FYnY/2uSynVunTrZJ8JYuDmTz8jZF6jOn7HOVMhJX3z4m9s9bL73CXe8BKLMOz5YIl XdYCgmMNvQZ4n6Byp11D9S9bCCS57BSDMynfZrfNaOJW3E2ExHmELrlRs0lQfUqAN4DL dgzBx3qRnlKImZtiOQ+nKIbLa1FIbL49mGsAeLkZYfgs75BdTKc8gPPNQiPaI1v71Lyw sBSAjPQWnIw+uXBomVWjbWzV4XSeoiHgMQe1nO0SmAkMDbfva4H1eLJRCVuMFArrQrPI dbFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U+RQyzgBTq/ON6P2+wJSZt2wyW+FlNHJHg+NSKeDmFE=; b=fsPxyRl/HySQ/U+52Yh9zGowtzldQmW3l/jm9GqxDZLZWksifygIy+AN9PE8yD7Nvd s2kVur2OkbgHnosbKfPKF0b20oT18JPPmu8sCOUxmwDsdWDy10aPn0wJ8X18EkGbQaQf FYc4EKjp6A/ur3IHs9v8bB+uVJKT30baI9vGzVz6f0ETH4IO7c9tANp+80ZcmXsaDFPC LN1lxc1WqeCuGJrWBjk7v0hFVFpDG4hveSN43Q0e5+aLbiHKoBhXqudts7fEpQRHrHVN qbomFWbTjBIUiyQ5VWkjSVc2y64+E7URHm8KvASsikGf4wGyImOQiU22hWmnRfPyEEuR kP+Q== X-Gm-Message-State: APjAAAVSFLdK9jbhzlX1g8lwoS8AVAV138Od2FL1XoUYtF5YrFV6OnhS BD7Jxj8C9ev6YkaSrNN1Kl095Il5lqtxCwkvsPI= X-Received: by 2002:a2e:9d90:: with SMTP id c16mr669463ljj.264.1579139144680; Wed, 15 Jan 2020 17:45:44 -0800 (PST) MIME-Version: 1.0 References: <5e3cea14-28d1-bf1e-cabe-fb5b48fdeadc@linux.intel.com> <3c3c56c1-b8dc-652c-535e-74f6dcf45560@linux.intel.com> <8f9acfb3-28e0-8d3e-08e0-77f04410cf38@linux.intel.com> <1cc62dbe-348e-affa-8740-c162e1454510@linux.intel.com> In-Reply-To: <1cc62dbe-348e-affa-8740-c162e1454510@linux.intel.com> From: Aubrey Li Date: Thu, 16 Jan 2020 09:45:29 +0800 Message-ID: Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 To: Tim Chen Cc: Aubrey Li , Vineeth Remanan Pillai , Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Dario Faggioli , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 3:33 AM Tim Chen wrote: > > On 1/14/20 7:43 PM, Li, Aubrey wrote: > > On 2020/1/14 23:40, Vineeth Remanan Pillai wrote: > >> On Mon, Jan 13, 2020 at 8:12 PM Tim Chen wrote: > >> > >>> I also encountered kernel panic with the v4 code when taking cpu offline or online > >>> when core scheduler is running. I've refreshed the previous patch, along > >>> with 3 other patches to fix problems related to CPU online/offline. > >>> > >>> As a side effect of the fix, each core can now operate in core-scheduling > >>> mode or non core-scheduling mode, depending on how many online SMT threads it has. > >>> > >>> Vineet, are you guys planning to refresh v4 and update it to v5? Aubrey posted > >>> a port to the latest kernel earlier. > >>> > >> Thanks for the updated patch Tim. > >> > >> We have been testing with v4 rebased on 5.4.8 as RC kernels had given us > >> trouble in the past. v5 is due soon and we are planning to release v5 when > >> 5.5 comes out. As of now, v5 has your crash fixes and Aubrey's changes > >> related to load balancing. > > > > It turns out my load balancing related changes need to be refined. > > For example, we don't migrate task if the task's core cookie does not match > > with CPU's core cookie, but if the entire core is idle, we should allow task > > migration, something like the following: > > > > I plan to do this after my Chinese New Year holiday(Feb 3rd). > > > > Thanks, > > -Aubrey > > > > Aubrey's attached patch should replace his previous patch > sched/fair: don't migrate task if cookie not match > > I've also added a fix below for Aubrey's patch > sched/fair: find cookie matched idlest CPU. > > Aubrey, can you merge this fix into that patch when you update > your patches? Thanks Tim, I'll include your fix when I update my patches. -Aubrey