Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3698254ybv; Tue, 25 Feb 2020 05:52:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxV74xEqxfC77Mt1jlGGmEy77+lPQOGfp3EkvbxhLb8r82kXJh+neYIXPw93n095vyGvfmZ X-Received: by 2002:aca:4994:: with SMTP id w142mr3488905oia.178.1582638755547; Tue, 25 Feb 2020 05:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582638755; cv=none; d=google.com; s=arc-20160816; b=yb5ImdkSiV3QlcP5jyrBhMnkRHXm2OjSbl/gbjXDJH/jvtazoyhkiz9UFYKxtNfM7b sKFXpVnI9iiiMlrz5XfxDtXJSvLvkvoQp16O1KPR2ITEMr6GUGDtazWAQQuo+O2OxxXB 6dmVGHRJsXlJanaPnrH+Cdd7iLFtO3D2je2b/y1haacrs3H6gLdGZbszRNEaLuRYylLF V5MR67D2OLl6PiKGEKCimDfht7GbUg2BDO4isKLCY/1Nj37IscskVwE/YinjsbTxufxN QdnRaxHTM7jLPRG4D9Zmr/HdzpRrJZZEDtwacl3nOxComd6AAG1wmV5dLErGwi/UmGib JMiQ== 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=2eUbbm1oRy7OOPHOrmqua/Spxc0JbIrywqKutB/I+kY=; b=BpSamTaWlPXSvfYuWIwqA+f1QiJB15Wki6dt5+Oe+ORa619IdHc/v/RPk8rEt+P/EP 9nYOLKg0mRvgL8npWSiOBQsyiqkJtBz/hlftgCE9kekcVglwrodk3ijiYGNfffTfLLlq LDlcCDy1YEodXxm/G8R3MKadFgRvUEtbsaipllg3CXFqsxV+aUHPSX9nUW8yMBECqV+d lwYJq61ST1q6OxXeFGbxNpixxvVXXpwTrvMKdlULtGKWIRmHnRJiZo9U72dMyVbwSaMy AUneYm76VbXEL82Xr94rUL+rgGz6IeGC8m/PXZ8D7KLSVotYkPxSn6oPynEM8bxEomlX Aing== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ajkpcdKI; 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 w207si6463514oie.111.2020.02.25.05.52.23; Tue, 25 Feb 2020 05:52:35 -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=ajkpcdKI; 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 S1730172AbgBYNlo (ORCPT + 99 others); Tue, 25 Feb 2020 08:41:44 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:36513 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730152AbgBYNln (ORCPT ); Tue, 25 Feb 2020 08:41:43 -0500 Received: by mail-lf1-f65.google.com with SMTP id f24so9803832lfh.3 for ; Tue, 25 Feb 2020 05:41:41 -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=2eUbbm1oRy7OOPHOrmqua/Spxc0JbIrywqKutB/I+kY=; b=ajkpcdKIqqASbCxtUHfVVEMguuuwpNuwBQJG/BVEghYERm6E5sS3zxY+NYCQWcYogy jio4xa5PAnXbjUB8deWMMTV427VkoUn9HJ4p6LhBILYawIlw9upEVcgCQ0uDbirScgBm 4MeIXWOWYdIqzvEF4Lgo+HFrrpduGyAwvFHNDrU9wfJKAZQvURj8Kjdso86hqTk38+e7 o+9sjJDVEPzjbWjUo5MoOnLOiPsPScKMi4xVDvbvGmcMNzKijDVgCr5SLRv259ZOM9De O0ZBvphKRKv/EnhJvynw2Y1oAxIVIyaOHovF/Ve/uwAhQ1bfY2Jsrjt05T3av/9sx7Fj DqQQ== 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=2eUbbm1oRy7OOPHOrmqua/Spxc0JbIrywqKutB/I+kY=; b=U81fzdV4rC3859oGC5pxDW1HLstZRvCMpcASJ5818vz4AJ5BfSMF1VxyKdRQLivQv5 CPErcOsLsxeHe3ioEw4WqdPinfmrqVQDzUSELSLXRheuBjEDp47x9ibi1rDhQKtt/j44 Zo2JhjZNxmP+6RtdC7NlDn3S3s6tS0a5ITStf+I2xt4TZRyu08yr6Hbq8xEBuUHezqbf BSTvDlsfpGyJQlKXfV1v1clfYwhUZwpSdzTkudb7j+kHEhcQ9pP2shVF+uSzgETXbDG+ QzF3Y5qhZvZiKMmLD2u8o9MaQNYpVdIGAVQtymCGFaxzod8sa9PByqyalmB9jqzrR9Ck AjHg== X-Gm-Message-State: APjAAAUFmIatGZ7iCQDkpcSiCCkz2YTaDNcc6fkxUPu7QZKI8aUzwUEk XJq6mypzybTcjQHd5+I84+D7ZLHx3RFHR4S41IQ= X-Received: by 2002:ac2:5339:: with SMTP id f25mr2246977lfh.84.1582638100610; Tue, 25 Feb 2020 05:41:40 -0800 (PST) MIME-Version: 1.0 References: <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> <20200225112153.GA618752@ziqianlu-desktop.localdomain> In-Reply-To: <20200225112153.GA618752@ziqianlu-desktop.localdomain> From: Aubrey Li Date: Tue, 25 Feb 2020 21:41:28 +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 7:22 PM Aaron Lu wrote: > > On Tue, Feb 25, 2020 at 06:40:02PM +0800, Aubrey Li wrote: > > 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? > > Yes, reverting this one fixed the problem. okay, but this patch also contributed the improvement of a few benchmarks on my side. So we need a way to fix your case, my quick thought is allowing task migration in this case(sounds like a workaround). Need take a deep look at CPU resource controlled code path when core scheduling enabled. Any ideas? Thanks, -Aubrey