Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1843734imm; Sun, 27 May 2018 18:05:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/zR/Yi5WaTjt20lEDIpePgPISIBXKewo+x/km0ta1XiAeSyofU1fKewfxFCRe1+XU2Xqm X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr11294267plc.368.1527469505712; Sun, 27 May 2018 18:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527469505; cv=none; d=google.com; s=arc-20160816; b=ZiD/iq4o7pjEiq8VxwMspGzwsbccfT+2QLBEDwMI/Z1I48yog+Z9eowz9lSXzqYKLh VX5cS1zf5yxnOHtBjJ434qPVcPgbDk5O0iUIOQbJ3mSkQecPnLgDMrQZb8M97I41KD6C qx4JcQ47YBZlGfnIB5Kw6QY6ngtL/n0Pcfj3wuyYgQkJGLhuqnoFZAnV1UlC4dNW0ZM+ OyFlDqmQVTaUf7m6reZ9YAsbnM6bjIwlSNiQyUls8DfZ/fa0H95U2JxrtKBqR4ksM1p0 1jeYrnJh01ZMi2+WjrJi0XDrMadgnhC2p6rW8l32HzJyp4tY8opRPV4ICU94upqp7av+ /ySw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ElgNeN/3VqZRgM+ZGGat2DWPeCS5j6qXpLRWJOQRhBI=; b=TVIYiChvGh9sKRne5YUezU8pZNAbaKOmt+ary3f/3r0oCKopi6dU394u+HC+YmW8Lh cxUfIAbp2akQAxBY1a8Am5Fw03l2BucByOCQ9RXHJCssyV9PZ91HsPCzjdHKgOLmN4Si Ebs7kAhuZxFKbZOIg/4SQjjfgTyO9XCgUiwqCaY7TTE9QXSgvrQkWxOelg1i9ThA7fUw 0iizr87gyPloSyRau/PJQ6SexZ3NbIPiIWwuT4fTtjP66OUajLAPNkn8ssr9yGzMSnDG ir+3L+5UOoeJzqBRdv+Jrk1acz3UmIeezKMUfLZyllu/RRNKBjISJx+sdXzbqF83O1QL Zugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=k/9aoVbR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si28549440plb.220.2018.05.27.18.04.37; Sun, 27 May 2018 18:05:05 -0700 (PDT) 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=@joelfernandes.org header.s=google header.b=k/9aoVbR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752776AbeE1BE1 (ORCPT + 99 others); Sun, 27 May 2018 21:04:27 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:33807 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbeE1BE0 (ORCPT ); Sun, 27 May 2018 21:04:26 -0400 Received: by mail-pl0-f67.google.com with SMTP id ay10-v6so6225662plb.1 for ; Sun, 27 May 2018 18:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ElgNeN/3VqZRgM+ZGGat2DWPeCS5j6qXpLRWJOQRhBI=; b=k/9aoVbRGKJG0W4KnHpTaTAv/wu9ktAa9wWhVzvRNgpuBX1xJxdeh0S91v0BwSuDbl 6/hDdjWOWIehA/z2f7CnzsjWvORBAXAZfeFMWinuNbLPknRkDBq68fa2qgQoVBGQ7Gqs IivhYyzhvC7drDlf2auXq246ps7IpEXOqN6cc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ElgNeN/3VqZRgM+ZGGat2DWPeCS5j6qXpLRWJOQRhBI=; b=MzY2s96lVor7Vt7IeCRdXrwbX3WF5OBdvTLbKE1tGjPSHajUnNmu2zu9EOXaPb0iNz bhweyAh0y+gJtKqwEtxrqWDRRaInUyPr2S04JmialAwAgosvSE0QZExMfBUBbobJLuJs lmhwr1HdfN+tEH+860TJmBl7IceYwCDgzN6tL9PtQw1heumJaXjGxDLBoyrI5ye9OroP iNkhZd8HTQroB+xLgZBy2I3fA3COltFt5Sx5xV7VZVpbkBA4iqNozEp9O13b+5h9L9T5 hXqsaOj0qV+BzcbD9oVw267evIav9p/yz6pI5wRoDxdYOWWo9VD2a1pbdn4mIOCEJ0LS LU3Q== X-Gm-Message-State: ALKqPwcgdMBQoduUdIqAwirrxwbYhs1X1d1USEjXNo0bF9UOC7E9mxdw EK4OmSvHVA0IYJKTC+VMCofcyQ== X-Received: by 2002:a17:902:7d02:: with SMTP id z2-v6mr2987821pll.104.1527469466429; Sun, 27 May 2018 18:04:26 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id j1-v6sm62969443pfc.159.2018.05.27.18.04.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 May 2018 18:04:25 -0700 (PDT) Date: Sun, 27 May 2018 18:04:25 -0700 From: Joel Fernandes To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, Dietmar Eggemann , Patrick Bellasi , linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH] kernel/sched/topology: Clarify root domain(s) debug string Message-ID: <20180528010425.GA64067@joelaf.mtv.corp.google.com> References: <20180524152936.17611-1-juri.lelli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524152936.17611-1-juri.lelli@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 05:29:36PM +0200, Juri Lelli wrote: > When scheduler debug is enabled, building scheduling domains outputs > information about how the domains are laid out and to which root domain > each CPU (or sets of CPUs) belongs, e.g.: > > CPU0 attaching sched-domain(s): > domain-0: span=0-5 level=MC > groups: 0:{ span=0 }, 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 } > CPU1 attaching sched-domain(s): > domain-0: span=0-5 level=MC > groups: 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }, 0:{ span=0 } > > [...] > > span: 0-5 (max cpu_capacity = 1024) > > The fact that latest line refers to CPUs 0-5 root domain doesn't however look last line? > immediately obvious to me: one might wonder why span 0-5 is reported "again". > > Make it more clear by adding "root domain" to it, as to end with the > following. > > CPU0 attaching sched-domain(s): > domain-0: span=0-5 level=MC > groups: 0:{ span=0 }, 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 } > CPU1 attaching sched-domain(s): > domain-0: span=0-5 level=MC > groups: 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }, 0:{ span=0 } > > [...] > > root domain span: 0-5 (max cpu_capacity = 1024) > > Signed-off-by: Juri Lelli I played the sched_load_balance flag to trigger this and it makes sense to improve the print with 'root domain'. Reviewed-by: Joel Fernandes (Google) One thing I believe is a bit weird is sched_load_balance also can affect the wake-up path, because a NULL sd is attached to the rq if sched_load_balance is set to 0. This could turn off the "for_each_domain(cpu, tmp)" loop in select_task_rq_fair and hence we would always end up in the select_idle_sibling path for those CPUs. It also means that "XXX always" can/should be removed because sd can very well be NULL for other sd_flag types as well, not just sd_flag == SD_BALANCE_WAKE. I'll send a patch to remove that comment as I just tested this is true. thanks, - Joel