Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp680190imu; Tue, 20 Nov 2018 05:22:27 -0800 (PST) X-Google-Smtp-Source: AJdET5e/CrHfyOBRNmucVLS9Cxoh6OV/hdZcGTbvi/VBilHssV0zsDp6hazarons7AO+1jdRRqrl X-Received: by 2002:a62:113:: with SMTP id 19mr2120073pfb.176.1542720147780; Tue, 20 Nov 2018 05:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542720147; cv=none; d=google.com; s=arc-20160816; b=uLrFK8+e6xiEFAlP+vylGj5xUkhQQv4pHwIquZDh0FHJKSXukDI0YmtctBRPEcDbO8 JwMm8UDXG/SkaHd3GxeKHa6MUbBz6/d+ERr3Y88XVHjK8tj22zv6/NgmjmfQ9ENsWsH4 WIeqBPZBJf2mNV2ERHo/FMVk8WKnlqOOq4lprn3SxP+XC1q3y97zb0YZNlcT0CrId22l YS5qtrXvjH2+wRH7+DCIhkbNCZXaHRqrLGTt8YO0Zl+lkBYWaFwcfFEDK5LsHx7Ky3wq It0gvYX+RLwIdLokEtmvK3nUmAObFqjOk20TIFQnAIzaTHVPDslJOeFpfTfA4YPAucB8 F5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=8Cup9AseAoFBCt4msD1bbwRwasFY6i1NdOA+8e4+N+c=; b=DTpcj0ew7Wtgi8/hw5z6KDX9hhhd/Gbgsf0mrmU9hiR1A800yid2eKGxmNa6ePwDHR 0txynWNN0ivRkerjXOIKKAZM+vg1+y1AalQ3j5EdMvbQX908PyvZf29htP0subiRn8tU G06chc+Wb8Glzi0mhNuLW8YI02g9mUDSpjqhSHSceMn+Rm5w+ekjUNL11T20/kA/yt70 mGBL17Uebu9twn03Y1ge++g6mWSzx9iMf0EFz5U3IUecio3SMJCH3r0f/vOVwYapJevx 1Vc6IpeQqrpECSgoeR3cb9IRmpV/4XcNuHHZctWlipKYQQehEuITFGJ/LzvHY1xY/Nj8 r+6A== ARC-Authentication-Results: i=1; mx.google.com; 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 j12si35787347pgq.26.2018.11.20.05.22.11; Tue, 20 Nov 2018 05:22:27 -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; 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 S1729544AbeKTXVV (ORCPT + 99 others); Tue, 20 Nov 2018 18:21:21 -0500 Received: from foss.arm.com ([217.140.101.70]:48402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbeKTXVV (ORCPT ); Tue, 20 Nov 2018 18:21:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6D3D215AB; Tue, 20 Nov 2018 04:52:22 -0800 (PST) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0F82A3F5B7; Tue, 20 Nov 2018 04:52:19 -0800 (PST) Subject: Re: [PATCH v3 03/10] sched/topology: Provide cfs_overload_cpus bitmap To: Steven Sistare , mingo@redhat.com, peterz@infradead.org Cc: subhra.mazumdar@oracle.com, dhaval.giani@oracle.com, daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, riel@redhat.com, jbacik@fb.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, quentin.perret@arm.com, linux-kernel@vger.kernel.org References: <1541767840-93588-1-git-send-email-steven.sistare@oracle.com> <1541767840-93588-4-git-send-email-steven.sistare@oracle.com> <2efadddc-ebc0-1cdb-5580-4a9ab5610e61@oracle.com> From: Valentin Schneider Message-ID: <7111ee5a-b408-1fa1-e9fa-42aad4d6ff4d@arm.com> Date: Tue, 20 Nov 2018 12:52:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2efadddc-ebc0-1cdb-5580-4a9ab5610e61@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/11/2018 17:32, Steven Sistare wrote: > On 11/9/2018 12:38 PM, Valentin Schneider wrote: >> Hi Steve, >> >> On 09/11/2018 12:50, Steve Sistare wrote: >> [...] >>> @@ -482,6 +484,10 @@ static void update_top_cache_domain(int cpu) >>> dirty_sched_domain_sysctl(cpu); >>> destroy_sched_domains(tmp); >>> >>> + sd = highest_flag_domain(cpu, SD_SHARE_PKG_RESOURCES); >>> + cfs_overload_cpus = (sd ? sd->shared->cfs_overload_cpus : NULL); >>> + rcu_assign_pointer(rq->cfs_overload_cpus, cfs_overload_cpus); >>> + >> >> Why not do this in update_top_cache_domain() where we also look for the >> highest SD_SHARE_PKG_RESOURCES and setup shortcut pointers? > > My snippet needs rq which is currently referenced in cpu_attach_domain() but > not in update_top_cache_domain(). I could just as easily do it in > update_top_cache_domain(). Either way is fine with me. > I think having this in update_top_cache_domain() makes more sense - it's where all the domain shortcuts are set, and we already play with LLC there. [...]