Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6734281imm; Tue, 24 Jul 2018 02:01:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc500dwFvKVFSsv8o0flandVKApjPoIRKD/8JIHAg0PHjA0lfhhTG5PS910PozU4jw33ib2 X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr15959197plg.68.1532422866623; Tue, 24 Jul 2018 02:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532422866; cv=none; d=google.com; s=arc-20160816; b=shAVUUCKjoiWL+HmR0FTb1G4qsWd2MBPEQVQFvHevZg3IxShLDzBKclo3OpV1Ffcsw VQ5Hg24UCRbvoo2BqYzOzBy6d5YYtxdkap8wpkds+R/9d1WZ1BaYh/X1RI1GZ6vPt436 7LAf/wJbKXrOuSHmxPxmTTHVmYLLHCDsEXe9ruS1C6kiXleOgVnLVW0C8YvOJGKmRdGH 0e40juOpdmxPYnGGi0hk+lW16D1RYY2ahfOBovOERrN2+ROEg67BPzKex5AT++X8gEFD vy8KZ01zeQPWUXQKGV7HZ3rkZ8Zn45HN1nZRdg6gLCVHo/sAGxZOduN1BpFFUb5qb13b yS+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=WoSenSGaHhVpWh2PGzhF0cs4CkU0zIN9KNPOD7bCxwI=; b=mNT4hErO5aXFrek54dS+tjNVPsaG4rIU53swBqSMgxDj4OUp98InaOzrGHGi2Sd042 DradGKzF/Hjg9scuytyyJq1T+hCwbt1JJVttKcMO73t5GMoEObh/D0nkd5b/GqjapPTW qdrVG4OsrTdoMYkrZJ48tvrV2XobBVsfxhFZ7L9xsMvbW4RIBTxgMp8/sZ9KtXVqFu2f UVEN7I5l4/lVtrDsgErTcn3RKvlB3SsM7CI/MHKqek2+0atE/pXK4eIlbWV2w9livB8G SnGdIRk1sVwSYKHFWAthRelVz/u0TEyZRSz6bTURUmIEhedmAuiHSCSzifzQJIuBsymu zk8g== 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 a9-v6si2574153pgj.224.2018.07.24.02.00.51; Tue, 24 Jul 2018 02:01:06 -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; 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 S2388298AbeGXKEu (ORCPT + 99 others); Tue, 24 Jul 2018 06:04:50 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45602 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388136AbeGXKEu (ORCPT ); Tue, 24 Jul 2018 06:04:50 -0400 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 25D117A9; Tue, 24 Jul 2018 01:59:24 -0700 (PDT) Received: from [10.4.12.120] (e107158-lin.Emea.Arm.com [10.4.12.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA1B43F237; Tue, 24 Jul 2018 01:59:22 -0700 (PDT) Subject: Re: [PATCH 1/4] sched/topology: SD_ASYM_CPUCAPACITY flag detection To: Morten Rasmussen Cc: vincent.guittot@linaro.org, peterz@infradead.org, linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, mingo@redhat.com, valentin.schneider@arm.com, linux-arm-kernel@lists.infradead.org References: <1532093554-30504-1-git-send-email-morten.rasmussen@arm.com> <1532093554-30504-2-git-send-email-morten.rasmussen@arm.com> <20180723152551.GA29978@e105550-lin.cambridge.arm.com> <20180724083710.GB29978@e105550-lin.cambridge.arm.com> From: Qais Yousef Message-ID: <0d9598fa-28c1-0851-4d40-2cc97a5317b5@arm.com> Date: Tue, 24 Jul 2018 09:59:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180724083710.GB29978@e105550-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/07/18 09:37, Morten Rasmussen wrote: > On Mon, Jul 23, 2018 at 05:07:50PM +0100, Qais Yousef wrote: >> On 23/07/18 16:27, Morten Rasmussen wrote: >>> It does increase the cost of things like hotplug slightly and >>> repartitioning of root_domains a slightly but I don't see how we can >>> avoid it if we want generic code to set this flag. If the costs are not >>> acceptable I think the only option is to make the detection architecture >>> specific. >> I think hotplug is already expensive and this overhead would be small in >> comparison. But this could be called when frequency changes if I understood >> correctly - this is the one I wasn't sure how 'hot' it could be. I wouldn't >> expect frequency changes at a very high rate because it's relatively >> expensive too.. > A frequency change shouldn't lead to a flag change or a rebuild of the > sched_domain hierarhcy. The situations where the hierarchy should be > rebuild to update the flag is during boot as we only know the amount of > asymmetry once cpufreq has been initialized, when cpus are hotplugged > in/out, and when root_domains change due to cpuset reconfiguration. So > it should be a relatively rare event. Ah OK I misunderstood that part then. The series LGTM then. -- Qais Yousef