Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3515599ybv; Tue, 25 Feb 2020 02:42:20 -0800 (PST) X-Google-Smtp-Source: APXvYqx0GfAZJSeLfd4yqzDbut2Ig7ubWaCAGxR4RbzGQzNWvZr0NIUHiPmDYkm5c3j0wGEtIUlT X-Received: by 2002:a9d:f26:: with SMTP id 35mr41839826ott.31.1582627340789; Tue, 25 Feb 2020 02:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582627340; cv=none; d=google.com; s=arc-20160816; b=XnIFpICqEvk6BslbfWpsbsOMuy0VSjbDxg4SWQB9QmzWhQFUjkOIxBWQFIU1hnNUMM MzAiyhNsApQf0nKcyCLy5YSRrweUP4zPtDmGHA4uPAzST7bNxYzGm6/0c3wPXuehRSR1 OW3oJ4yzvrl69oVql4KhW6eVUW0iDP8/o64g8Al+yEclK11Dw6Ci0CEt9dbnCnxHifd+ ZIgfw2wRsWFeKoyacPMUojRMt2PFAHNvDrGV1e0N9RVXCH/Ps0is3ha1T84Zak0QXwKb rsjvP7vmIYT09sXC33BHUA9QxukYlOzTP4KNd6Xujcq2/L5mtXEYWrWMrgYu021aGcJ0 lCuA== 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=lB/ixEiBalyhvhRiB5xSxt+Xn0mrFFaoIJOp9ZDTEVw=; b=Mf7WAugDz78HhlP4JCtPL1FwAvCGfMyCplRuyB67Sjgtg58yPBkS/siMXzdxwSlQrY C87csPqGyvFdgbHF3NmFsKKygthgfhKNZZZSHqPfGfYzvwHUrcXAXqcIMq04Qo6hAzZ7 lVtzuvuVzpVceRQdrRL96rJAONVB/3pC6TnyZUgWqHOC2+x4+jSzm5pwcDhT3NiXeoLE tkskBzTd1Qy8uBekBbYs7znFv/sBbHmw6+bvCdzONWRlo46Y7fJwZKI/+7gLa/vic5VS 3nnCqpJrTCy1+MrPQVteuzfTmK7RdatGIvuHJUNY6vNKZOyLG82gwa815Onsl3u1V8NI 85sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U7mnFD0e; 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 t128si6148254oie.176.2020.02.25.02.42.07; Tue, 25 Feb 2020 02:42:20 -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=U7mnFD0e; 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 S1730351AbgBYKkR (ORCPT + 99 others); Tue, 25 Feb 2020 05:40:17 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33893 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729417AbgBYKkR (ORCPT ); Tue, 25 Feb 2020 05:40:17 -0500 Received: by mail-lf1-f67.google.com with SMTP id l18so9418337lfc.1 for ; Tue, 25 Feb 2020 02:40:14 -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=lB/ixEiBalyhvhRiB5xSxt+Xn0mrFFaoIJOp9ZDTEVw=; b=U7mnFD0eB+14p5WXU8eODfJJrt//+UySWxh8iW6iKBny2kTkaFgkEdVhHYUkXpRAUA 7g7Mmd2YzBV+3I5oYA7FDrKM3VpchtBzkta7WmR6zZxPW/G0ydgkd1NqescWG7rFbIgk bPIrzs50xbCoNfa9nFT/+p4zpbKLgAk7XAcbSuwi3cW0spcv/TYjbaLsMnI1UM4x8CXJ Y4Anr+HhIjaJ+WLwg5MbE8JW5ERuVOBwkJXcLZfFBkOXIoKXlPtFC55LSPqUrAnqyWX6 B/c+gYEDdP2sUseoxBmcjNri2hGBRzywJd6uONo9ZRJi0f6BZ3gLMXMbzw5mi7LXdwC6 R/0w== 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=lB/ixEiBalyhvhRiB5xSxt+Xn0mrFFaoIJOp9ZDTEVw=; b=qadEF1iM3OkIkFMPnrDaT8oZvIeqXiz2ZPC7pWFQPzUKWdyDM2rkosLq2+MWesTLXF ZnHd6JL0CoQ/S9DDDVx0vBykl4dSC4ii8rXbyycs4K8ZfIDe95xix4C2LyK9iEp3j9JC bNddNvitxxorzBuPYQZ3gxbVpaiWwaYXIgRKz7NxaVbTMpBldhVWCACi8/2vaKXcyOJA 5MXwL/SJBJFKnqzuzhutCuvlfSCRfgVxkYW0vBqGJsNIeEzAAkSzR564mEwQfBxOxHo0 ihrEwybaQ2mRXD2Wg1NrEPVZKQ+KakGxN0DjxFZEDxuNA2c1FZA7VW4IlsCJrP+ZmZxr 2JRg== X-Gm-Message-State: APjAAAX1tfXHW17xsrFCylb9fR+wH/rAgq3dCw9OXyh7M3vsSk99dobq T6P6258TKgbJvveVoBGZhRYdAvqqYFJdrX50Oxg= X-Received: by 2002:ac2:52a2:: with SMTP id r2mr29634067lfm.33.1582627213967; Tue, 25 Feb 2020 02:40:13 -0800 (PST) MIME-Version: 1.0 References: <5e3cea14-28d1-bf1e-cabe-fb5b48fdeadc@linux.intel.com> <3c3c56c1-b8dc-652c-535e-74f6dcf45560@linux.intel.com> <20200212230705.GA25315@sinkpad> <29d43466-1e18-6b42-d4d0-20ccde20ff07@linux.intel.com> <20200225034438.GA617271@ziqianlu-desktop.localdomain> <20200225073446.GA618392@ziqianlu-desktop.localdomain> In-Reply-To: <20200225073446.GA618392@ziqianlu-desktop.localdomain> From: Aubrey Li Date: Tue, 25 Feb 2020 18:40:02 +0800 Message-ID: Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 To: Aaron Lu Cc: Tim Chen , Julien Desfossez , Vineeth Remanan Pillai , Nishanth Aravamudan , 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 , 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 Tue, Feb 25, 2020 at 3:34 PM Aaron Lu wrote: > > On Tue, Feb 25, 2020 at 01:32:35PM +0800, Aubrey Li wrote: > > Aaron - did you test this before? In other words, if you reset repo to your > > last commit: > > I did this test only recently when I started to think if I can use > coresched to boost main workload's performance in a colocated > environment. > > > > > - 5bd3c80 sched/fair : Wake up forced idle siblings if needed > > > > Does the problem remain? Just want to check if this is a regression > > introduced by the subsequent patchset. > > The problem isn't there with commit 5bd3c80 as the head, so yes, it > looks like indeed a regression introduced by subsequent patchset. > > P.S. I will need to take a closer look if each cgA's task is running > on a different core later but the cpu usage of cgA is back to 800% with > commit 5bd3c80. Hmm..., I went through the subsequent patches, and I think this one - 4041eeb8f3 sched/fair: don't migrate task if cookie not match is probably the major cause, can you please revert this one to see if the problem is gone? From what I can tell, if 16 threads in cgB occupied 8 cores, this patch prevents any thread in cgA from migrating when load balance is triggered, and yes, cpu.shares is ignored at this point. Thanks, -Aubrey