Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp172855pxv; Thu, 24 Jun 2021 05:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3/NgDSQliqP+mwApbofI5iJ7TCqdCh7aLnKEnJZaYaer0riF58ZNQ1HCaQyzeu9Jt0k0W X-Received: by 2002:a17:906:dbd5:: with SMTP id yc21mr4954018ejb.233.1624538047813; Thu, 24 Jun 2021 05:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624538047; cv=none; d=google.com; s=arc-20160816; b=IQ8nYI7kMKCvgPBBOoewN2MvKC7epg1H5sbQxFURWIAgQro9utyixfXVaphJ92S88+ 3kxQQxbwkKWOi1MBFETLnzmgmwwjX9gBmam6pj7qT+begT/7ar1Vjn6QdFi/oOcs0030 53NLgnamx2EtsauUKxrEe2bY/oGyr7B6ivhEfzhCQNEHLGIU/M8SA/B6TE9PyzfL0FVT 42NIDbu1Ti8vCaoJgWyF6fnqqqr54y7X11R886XCZZigdyGar8rDAFZxlmsjJc34vcVh bzc2qG6/tIq2iYhlAZhrHwYa7CmZ6UswAHXG7MoZ52b5zs+BcbyarC6C6wquqMwu7SHi xZwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ntc5rp5Qo89ApXwL9l1/cL9VK38RT4hK4RWM0GfRIGE=; b=xXEqE9JSXZV33hEBOXYlx+mLfyhN3KK53o/u8IO5VOZiI9HeFzk+ops0b7cBxZzsyO BAM5Rr571ElNmmxhTzyjU2426rQeDqkMOyOky9MQecCv3Lho+jQDIozgYWrG2oFKlhJg hbB+y6Ape9Tn/Ovl7IEWMof0h9x5ng08s3F+3cyrhJc+RatpV+TgCI+4LcE+6fCjc5+q NJ4YnKc0fhFef8VlKOtBr234wtie4lM0CycTrDy0wo7svIgcFM5xZsV42e69pi0Xggku HRuP0kYGxCwyCen9V2kreeOhiQcvXlBoDwgp/fqpiK/9ALgXo4J02cpyWnQ1C8e1zGGn sCDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="irTXJ9/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si2799114edq.501.2021.06.24.05.33.44; Thu, 24 Jun 2021 05:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="irTXJ9/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbhFXMeC (ORCPT + 99 others); Thu, 24 Jun 2021 08:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbhFXMdp (ORCPT ); Thu, 24 Jun 2021 08:33:45 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4520C061768 for ; Thu, 24 Jun 2021 05:31:25 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id d25so7495126lji.7 for ; Thu, 24 Jun 2021 05:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ntc5rp5Qo89ApXwL9l1/cL9VK38RT4hK4RWM0GfRIGE=; b=irTXJ9/aAsEha6NU0r4G49gUv6Bco2ucKVONHHsYYZpdZDbceq49ae9chyRJAbuZrz yATeTESuhflHZh16/KtE7OFQxA37Te19oyQuC2t4WIHaHdAKlmyvTpI8rPZwCk0/hE+k KVBhbTfcbX50N+eZTDddq3vVGoXX0EU+yBd6Hqv8H2lL+TedkMq1xfR9bI4QMmsQ/qxM bT/fKz0hPxouxnvJL8G7xO3itXm8bZcsNHEOvEtGFtOW9pm57fHjBLK9fsLFAwWz/uqm h10c/gEwufecT3Yj2zCcFNIMXWsEvVNSEWxp96ZdludFvvdtl+3jCv8vaCV0v1QzJKIs xVfg== 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=ntc5rp5Qo89ApXwL9l1/cL9VK38RT4hK4RWM0GfRIGE=; b=nzrSwo7d11XwwIdf3rt1OPhffP1NRHaycI+O/AI8H19NkC/nUpNeteJvlQRnQtHAf7 eW1PWrKQagDOwKA3UMMB1dVPxPeDpWUfDiUwKpU8E7BFWzdZYt8M22KXBzKJV1dQCV3m 3l0DocK89ambxd5Ey0e7Ju3F40+opFZojNJAygyTUvUy3BHh/IlfXIvEiyubZkwZD1EW /ASWn88lOsd2kMiWqgSCEPKM5OqVVt/Ogo5f5eA6usFLVDkElNlUGktTYdQslg8ph6FP pH5CAQkY7uag0duu+QjApJFy2/C6Xtcyi+NWRzd77bHdI9tyV/OY7Yp60ebr68YdrcTJ PuAw== X-Gm-Message-State: AOAM531s2IJMZf6l56Cg/8O/AOtzyQfpbCtwKdAyuc6miwjTSyNG6kHZ MJxiVxUhvZ1fsHtum6D8O/cV1/663FpsFKY9NQW64A== X-Received: by 2002:a2e:9a8a:: with SMTP id p10mr3746079lji.221.1624537884197; Thu, 24 Jun 2021 05:31:24 -0700 (PDT) MIME-Version: 1.0 References: <17fc60a3-cc50-7cff-eb46-904c2f0c416e@canonical.com> <20201118235015.GB6015@geo.homenetwork> <20201119003319.GA6805@geo.homenetwork> <7c9462c9-8908-8592-0727-9117d4173724@canonical.com> In-Reply-To: From: Vincent Guittot Date: Thu, 24 Jun 2021 14:31:12 +0200 Message-ID: Subject: Re: [PATCH v3] sched/fair: fix unthrottle_cfs_rq for leaf_cfs_rq list To: Po-Hsu Lin Cc: "Guilherme G. Piccoli" , Tao Zhou , "gregkh@linuxfoundation.org" , Sasha Levin , SeongJae Park , Ben Segall , Dietmar Eggemann , Juri Lelli , Tao Zhou , Mel Gorman , Ingo Molnar , Tao Zhou , Phil Auld , Peter Zijlstra , Pavan Kondeti , Steven Rostedt , Jay Vosburgh , Gavin Guo , halves@canonical.com, nivedita.singhvi@canonical.com, linux-kernel , "# v4 . 16+" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Jun 2021 at 12:29, Po-Hsu Lin wrote: > > Hello Vincent, > > sorry to resurrect this thread again, > I was trying to backport this patch and corresponding fixes to our > Ubuntu 4.15 kernel [1] to fix an issue report by LTP cfs_bandwidth01 > test[2], my colleague Guilherme told me there once a discussion about > backporting this on this thread. > > You mentioned here this should not be backported to earlier stable > kernel, I am curious if there is any specific reason of it? Too risky > maybe? Yes, IIRC there are some dependencies with other patchsets that make the backport complex and not straight forward > Thanks! > PHLin > > [1] https://lists.ubuntu.com/archives/kernel-team/2021-June/121571.html > [2] https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/sched/cfs-scheduler/cfs_bandwidth01.c > > > On Thu, Nov 19, 2020 at 9:25 PM Vincent Guittot > wrote: > > > > On Thu, 19 Nov 2020 at 12:36, Guilherme G. Piccoli > > wrote: > > > > > > > > > > > > On 19/11/2020 05:36, Vincent Guittot wrote: > > > > On Thu, 19 Nov 2020 at 01:36, Tao Zhou wrote: > > > >> > > > >> On Thu, Nov 19, 2020 at 07:50:15AM +0800, Tao Zhou wrote: > > > >>> On Wed, Nov 18, 2020 at 07:56:38PM -0300, Guilherme G. Piccoli wrote: > > > >>>> Hi Vincent (and all CCed), I'm sorry to ping about such "old" patch, but > > > >>>> we experienced a similar condition to what this patch addresses; it's an > > > >>>> older kernel (4.15.x) but when suggesting the users to move to an > > > >>>> updated 5.4.x kernel, we noticed that this patch is not there, although > > > >>>> similar ones are (like [0] and [1]). > > > >>>> > > > >>>> So, I'd like to ask if there's any particular reason to not backport > > > >>>> this fix to stable kernels, specially the longterm 5.4. The main reason > > > >>>> behind the question is that the code is very complex for non-experienced > > > >>>> scheduler developers, and I'm afraid in suggesting such backport to 5.4 > > > >>>> and introduce complex-to-debug issues. > > > >>>> > > > >>>> Let me know your thoughts Vincent (and all CCed), thanks in advance. > > > >>>> Cheers, > > > >>>> > > > >>>> > > > >>>> Guilherme > > > >>>> > > > >>>> > > > >>>> P.S. For those that deleted this thread from the email client, here's a > > > >>>> link: > > > >>>> https://lore.kernel.org/lkml/20200513135528.4742-1-vincent.guittot@linaro.org/ > > > >>>> > > > >>>> > > > >>>> [0] > > > >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe61468b2cb > > > >>>> > > > >>>> [1] > > > >>>> https://lore.kernel.org/lkml/20200506141821.GA9773@lorien.usersys.redhat.com/ > > > >>>> <- great thread BTW! > > > >>> > > > >>> 'sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list" failed to apply to > > > >>> 5.4-stable tree' > > > >>> > > > >>> You could check above. But I do not have the link about this. Can't search it > > > >>> on LKML web: https://lore.kernel.org/lkml/ > > > >>> > > > >>> BTW: 'ouwen210@hotmail.com' and 'zohooouoto@zoho.com.cn' all is myself. > > > >>> > > > >>> Sorry for the confusing.. > > > >>> > > > >>> Thanks. > > > >> > > > >> Sorry again. I forget something. It is in the stable. > > > >> > > > >> Here it is: > > > >> > > > >> https://lore.kernel.org/stable/159041776924279@kroah.com/ > > > > > > > > I think it has never been applied to stable. > > > > As you mentioned, the backport has been sent : > > > > https://lore.kernel.org/stable/20200525172709.GB7427@vingu-book/ > > > > > > > > I received another emailed in September and pointed out to the > > > > backport : https://www.spinics.net/lists/stable/msg410445.html > > > > > > > > > > > >> > > > > > > Thanks a lot Tao and Vincent! Nice to know that you already worked the > > > backport, gives much more confidence when the author does that heheh > > > > > > So, this should go to stable 5.4.y, but not 4.19.y IIUC? > > > > Yeah. they should be backported up to v5.1 but not earlier > > > > Regards, > > Vincent > > > > > Cheers, > > > > > > > > > Guilherme