Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp445786ybt; Wed, 8 Jul 2020 03:54:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOH7dLWqLCQ736H6NhF8JNZdbFOB2nHpqDGT9qO43UPvURIJ/KIvAzPluyrCyjDZbX6MQT X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr63684251edb.60.1594205666271; Wed, 08 Jul 2020 03:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594205666; cv=none; d=google.com; s=arc-20160816; b=WrRhH4Xc6Dqi6C3dsUbmOiwceRsi0I+v79JSYKKSZqJnO4NwxXcRdoMZovY4Ianhdb MX7NQu1guUsBgogmj9fq7bnq8VBNjJQmiPFH9BZoOQAXQSqtLManM0ORDM7FIU9TcFIo Fq24TNgcu8YVbz7VrL+7YWrZcnwtebWCC0n6jWYyST6v7SBMc90Qt2edw29hAQzltWaZ rUdUBK/Ta5af9S6MQuDwPPPL4v8PR/7ezi07hq+Zo6bFe1qqGtUa3yBy7oBsZNkB1g2a ePPfYOXSLPZDkl+x7biNNqK+4fS9sC/on8DMTmt8K3DYDfEorJyUBra3KO1vopVYrlnr 8TXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=VQE00ZR20lcKEOlbL1d9kIzBoYc6QHFQDyiUcMyhgHY=; b=SBbwp6qgK0zzlTAz+JhmaguwwysK1kTUouss6KmPANWt7ev//AOQSVbFvTOXj7xPxE wsUFiWKHA03iRNWQocJS0BsqfOxq+Minw5VIjj49m2nBmTQWYE20OofLy2QZQWWNGygC ZtxToQ+KJAU3raUEt/tsVYKNa2Nn+68zW3qTO7RTN0FWBvrJjNGdw507cptWkDrvQSGN 2FpNXbUAyFHJB09/+bcxJ9rkM+J2JwuZtIuK6ZPawQgaF1zyi4ygmW7Mf8G9rX3XwJYx za0vVJ+o7B3lqnyOOSDWFvSdq2hj/zNU0y7lIsG9hobseYCoXGVZoVPiyt0MztC6lZ3a v1RQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nw19si13376105ejb.264.2020.07.08.03.54.03; Wed, 08 Jul 2020 03:54:26 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728385AbgGHKti (ORCPT + 99 others); Wed, 8 Jul 2020 06:49:38 -0400 Received: from foss.arm.com ([217.140.110.172]:59988 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGHKti (ORCPT ); Wed, 8 Jul 2020 06:49:38 -0400 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 7E54531B; Wed, 8 Jul 2020 03:49:37 -0700 (PDT) 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 2DF843F68F; Wed, 8 Jul 2020 03:49:36 -0700 (PDT) References: <20200706200049.GB5523@worktop.programming.kicks-ass.net> <20200707115621.GB25765@chenyu-office.sh.intel.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Chen Yu Cc: Peter Zijlstra , Vincent Guittot , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2][RFC] Makes sd->flags sysctl writable In-reply-to: <20200707115621.GB25765@chenyu-office.sh.intel.com> Date: Wed, 08 Jul 2020 11:49:33 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen, On 07/07/20 12:56, Chen Yu wrote: > Hi Valentin, > On Mon, Jul 06, 2020 at 11:11:32PM +0100, Valentin Schneider wrote: >> >> On 06/07/20 21:00, Peter Zijlstra wrote: >> > On Tue, Jul 07, 2020 at 03:36:13AM +0800, Chen Yu wrote: >> >> It was found that recently the flags of sched domain could >> >> not be customized via sysctl, which might make it a little >> >> inconenient for performance tuning/debugging. >> > >> > What specific goals do you have? This is a debug interface. >> >> Also, while the update_top_cache_domain() call on sysctl write may work, >> you're back to square one as soon as you go through a hotplug cycle, which >> is icky. > Do you mean, after the hotplug, all the settings of flags are lost? Yes, > it is, but in our testing environment we do not do hotplug offen : ) Right, and neither do I, but sadly hotplug is one of those things that we have to take into account :( >> >> That said, I second Peter in that I'm curious as to what you're really >> using this interface for. Manually hacking the default / arch topology >> flags is a bit tedious, but it's doable. > Agree, but since we do monitor performance testings automatically, > it might save more time for us to not have to reboot everytime we > change the flags. So I guess we can hack the code to make that > flags field temporarily writable. I guess the concern here is that it > looks a little overkilled for us to invoke update_top_cache_domain(), > I'm okay with current read-only attribute. > To properly update the SD landscape (i.e. the cached pointers), we *need* that update_top_cache_domain() call. But then there's also the hotplug thing, so we would need to e.g. write back the flags values into the right topology level of sched_domain_topology. I can see value in it for testing, but I'm not convinced it is something we want to open up again. At least it's not too complicated to automate testing of different flag combinations - you just need to commit some change to the topology flags (either default_topology or whatever your arch uses). > Thanks, > Chenyu