Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1005143pxb; Tue, 9 Feb 2021 19:43:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyRqtBdzbhCL99t2nfIAmBagXNOwx9clJRGttnOF47V57rPRztcxjONKnNiagIVMulLek9 X-Received: by 2002:a17:906:1685:: with SMTP id s5mr904900ejd.23.1612928610223; Tue, 09 Feb 2021 19:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612928610; cv=none; d=google.com; s=arc-20160816; b=EWGanMSTMuuYUk9oXdJ5LIrcl5FJcNBnsqKoFYJjx8HWSgZndp0EB7CRYcgwvynqgq GrjCntMO/l/PADW7GI5PvEPx4CsQsz9Igf8uBZeS+CjUvAj0zRFwnWWwIiowOuCAq6rA gfOnKjdYw74A/dCIbEGQxAJA0c9BwIUA1aD3xQwZpcOwkam2wde2L67C4+w3E+SKiuf7 MbcxRnvfFJ/rsOBbdD6RL39OLE7R0TWTBjwhaNny46e9eYuYDCIhwR1oQWKEn4dWHZjh w2IuJGlt0fIz8bda8x9rM6rZWtF5sPbuzxzJJQM/AQlkLOiHlDav2JPjkYX/118upOWC FQrw== 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=P4a4UM2l4+ZyyoGENZxN5GEKK/mJFIsgmA6Mdizwpl4=; b=xwkGLiY/20ERLz4CGia2mr/o7Sc1Pkc/YDteqAtDF16BVtNAuCWzBtfYz/dY3acUhR 3XG3rLm8UV3fiA7eBzXgDO1VoEyeSv4twWuNsVVNQ6PuyA4KlS0dWJeOXkgDB+vJuhan aVgpQT8yjiCfihL4TyTLvzv5oxJxPSW/f4/ZKBXtvKcGv5WKZ0DF3jnfEAEreDSXjm4p 3l392TW5sJ0ipaSvqrWYt0vKPV9fC0z7Rw0HqX3Ct3vFmx9Fq4kN9HTV9b1j/ay+f7Bo 94q1ZWy4FtECrPZUNDMCj+oXtUMcCu8GV40eCtX9csuun5zJMSxlByO0X5W6aYdq3zrd X4QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gfIefI6f; 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 dx23si476296ejb.113.2021.02.09.19.43.07; Tue, 09 Feb 2021 19:43:30 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gfIefI6f; 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 S230486AbhBINMK (ORCPT + 99 others); Tue, 9 Feb 2021 08:12:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbhBINLm (ORCPT ); Tue, 9 Feb 2021 08:11:42 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8CFC06178A for ; Tue, 9 Feb 2021 05:11:02 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id r23so20325911ljh.1 for ; Tue, 09 Feb 2021 05:11:02 -0800 (PST) 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=P4a4UM2l4+ZyyoGENZxN5GEKK/mJFIsgmA6Mdizwpl4=; b=gfIefI6fxLri8kmAeBcEjNbCvy9wmOOoXZfUHLVeRNm6oXMOl+P+faz/qFL8KdzZiB eWnvX9tXA27zNnNMmBJ0MWzk2PcxC6/Q0jp4rohaq4INlQfrK3JnoF8XXZ9cBxkImzDa R/a8R1iW72qC06GNwyvFhkHx4fsB+8MHQCDIovc6XL+bc98fdglW05yUcxGudD1htHv9 0KWgI0HEzq22MHJqPBB74nsHEIo/4RunumetXfOFXMQ+1Gps/z9BQh9oFecqWxuKeNEX AmDQj0eu3cftC44iEsWQZ7SnW8asiM9gDSDmQ1trsswnYZIQZXZphCqtjSzy4Xl5nAov k6gw== 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=P4a4UM2l4+ZyyoGENZxN5GEKK/mJFIsgmA6Mdizwpl4=; b=WDwNyRqvzgslKOTYw3PEjBR/pK/55KiN67IlN4LJLNOnl+7ynUH/7ie96d7qnYVwSE R1t+d0d1DthJ+2eHtB7skhNCtYGGyl8pWqsnUHJAqgljAnkV0NgbZfQ61V3wbXTCyS4q 8wv7f/zXNIzGI4kCA4t+NxuQZrSvwj4KEMSMWLE6nvEq3NYtToYlt4SrkaMTXdhoAp7p twZyTXhi+2D2jjwltulbKv9u7i5BVymKzhjlxQj71L+aiL28TLoglx0SJ9wL+EzM/nG+ HNXeO+2kb/yRGM0BES6Jnpr99VjLER0SxDj5fJOoBOBhA8r++G7MAKjm0rWETN2ESYq5 BQgw== X-Gm-Message-State: AOAM531cn4G5HVbDm2l6b0wm+AnFsT5khF2PL++NU5IO912opfjuFzzr lYg+QvY8GhdDnuOuAeMk9LCuCYalh/285d9OvggFnQ== X-Received: by 2002:a2e:7007:: with SMTP id l7mr6792295ljc.176.1612876260899; Tue, 09 Feb 2021 05:11:00 -0800 (PST) MIME-Version: 1.0 References: <20210209082125.22176-1-song.bao.hua@hisilicon.com> In-Reply-To: From: Vincent Guittot Date: Tue, 9 Feb 2021 14:10:49 +0100 Message-ID: Subject: Re: [PATCH v3] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2 To: Valentin Schneider Cc: Barry Song , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Feb 2021 at 12:46, Valentin Schneider wrote: > > 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). It would be good to explain this in the commit message > > 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; We are also safe because sd_parent remains the same as the beg of load_balance and LB only tries other CPUs from the local group