Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp416669pxb; Tue, 9 Feb 2021 03:52:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3/rg7nhcN4U6RJqIA+QX5pkxq+rr6JreMAFddDAcf90LyXWie7Y8f/xxAqWuCVyojOmkR X-Received: by 2002:a05:6402:11c7:: with SMTP id j7mr22167569edw.290.1612871536585; Tue, 09 Feb 2021 03:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612871536; cv=none; d=google.com; s=arc-20160816; b=PocbV1uxXl7abgplTp7UrDv1gazFcLaKL+/THiHvfWv5mYBdbzeWTEiCVpqwwqvrWU 6ZjdNJKP+vQQzWb7u7NM0EfrsaPxzyQ6S8uTWthCiivYH5yNz/rf6gBN3oM28zg9dfa8 1N+9u2H7SN4aXnji7Whgvoko3Y81a/ZZ6tgNvoQT5Ce6Pe9k7dDYMlz7fJgaF8uuttk4 dXMr5HxgsK0rHmbmQpx5nrELb2WepXHHrp5ME14JsGMLeKiTL+i+rvrpqS/27i4XWw7M DSmUJFxPx1wpq08JHvMl9XV2owb1DCtL8rilqUBB2k1K5o2J8p1bHAygWYPYtOV8rMrb Nh7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from; bh=1ShnRhLVfNN8GlPd5QgW0epFlCdTDsfrVjSSltgiWHA=; b=n6mJZ+db1fIwhR70Oy4w+btb8srRqzQqQikFWE/xKy/hcem3EicYBYkhBFxZTm8Cds uGZj/BPeeVcZu16hBcYDe+suFQugRnKZpkNXLgn4MLc8nWPxfXJaX14/XaZvRQE/45EU lYAmARfVR+/VEc90s+vZ5nY83z04rEUCQfp543pyKdPLWwTmQ/kiLehParRx9Rzs9unG eGm4tplO82z+jJkM/wtNPZ3n4l0908AHk49/mvkqlgYQZdMSeVF2ObVtqflKpdztsIfE xJBGDOdvatvLLtv9HEsKH6NrVjoCd3cmfHMXhFqrn0AJf4iu1Q4km/5S1dunXq3trDPF 99Cg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x59si13138028edc.544.2021.02.09.03.51.52; Tue, 09 Feb 2021 03:52:16 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230163AbhBILsx (ORCPT + 99 others); Tue, 9 Feb 2021 06:48:53 -0500 Received: from foss.arm.com ([217.140.110.172]:50294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhBILqw (ORCPT ); Tue, 9 Feb 2021 06:46:52 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F0A63ED1; Tue, 9 Feb 2021 03:46:06 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D59153F73B; Tue, 9 Feb 2021 03:46:04 -0800 (PST) From: Valentin Schneider To: Vincent Guittot , Barry Song Cc: Mel Gorman , Ingo Molnar , Peter Zijlstra , Dietmar Eggemann , Morten Rasmussen , linux-kernel , linuxarm@openeuler.org, "xuwei \(O\)" , "Liguozhu \(Kenneth\)" , tiantao6@hisilicon.com, wanghuiqiang@huawei.com, "Zengtao \(B\)" , Jonathan Cameron , Guodong Xu , Meelis Roos Subject: Re: [PATCH v3] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2 In-Reply-To: References: <20210209082125.22176-1-song.bao.hua@hisilicon.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 09 Feb 2021 11:46:02 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/21 10:46, Vincent Guittot wrote: > On Tue, 9 Feb 2021 at 09:27, Barry Song wrote: >> Real servers which suffer from this problem include Kunpeng920 and 8-node >> Sun Fire X4600-M2, at least. >> >> Here we move to use the *child* domain of the *child* domain of node2's >> domain2 as the new added sched_group. At the same, we re-use the lower >> level sgc directly. > > Have you evaluated the impact on the imbalance and next_update fields ? > sgc->next_update is safe since it's only touched by CPUs that have the group span as local group (which is never the case for CPUs where we do this "grandchildren" trick). I'm a bit less clear about sgc->imbalance. I think it can be set by remote CPUs, but it should only be cleared when running load_balance() by CPUs that have that group span as local group, as per: int *group_imbalance = &sd_parent->groups->sgc->imbalance;