Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp635387pxb; Tue, 14 Sep 2021 05:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdDjgqBUtcFc6vjuHZIIGvjuA4WZ89def84A8/9RDIv6KPnwRnVrHihe3qVRfe383PmvQk X-Received: by 2002:a2e:a589:: with SMTP id m9mr15044549ljp.519.1631623094397; Tue, 14 Sep 2021 05:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631623094; cv=none; d=google.com; s=arc-20160816; b=J5uC1Yy6Md07yaRgqBSX4YmyBQPVAR7ubEaBPDZ1XVdUndaBY085Qwu9UVW7FAufVw UZUpFlxHmEPa0q9IzBZVqAQRThGR0BrjLCbXJNsT1rFKzw7lQIVGteYm3FWe2lyP6ATV m1okhSdHMhzwYAUU7xc56Xse+hpvF/E4oGv3FCd7xdfWLLHoKkNri5aX+3bBK23ldH4L hDEAzB7rYviknsgpntG557Dc34E0cH8Fbl2jQwR/zKIQd4HgNDJJ+LeO5rKyz5H2101i LS+YExpxGUwqSzFZD/ZP5FaV2ejNeCQcTvSIpQLBBmV19B5uMemQAMlmcqZ6Ahvhz5wt 3G6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=XStNpHRL1a3hJFQUX3WZiR8G8ujyfM2ADuqxTVyh6PI=; b=aEbV0tekUO2q1kNxcrIElTE1h3b1Nkx0sHTGttTOH8a5Bffxbhcj6zYwkgVMkV9Kze Bz/3TMhitA1Ozi8upb7rEelwnwkP4vI5HW3HC89/dsYjyUXtwRh8+HmdToa4fLnBNOck baoqkg9NFY5zouTA4EFb21LssA5cwfvHst4UkwiX0jKz75vM8YoV0+byrCaRyPG6CWJQ UzAFOmGKS++TYBuEARaZz3UOQnmYFdKOB2KfhsgcztEsPbCXyvqfSm5O2RwBFgYOd93n SWBVaW4MPu5IFQMJckhV5yWPbF3vLeCtQop8nr74UsPZTf2sP1X7gLbRPkVVxH0vqoMf B4cQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bp20si14043440lfb.242.2021.09.14.05.37.44; Tue, 14 Sep 2021 05:38:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbhINMgs (ORCPT + 99 others); Tue, 14 Sep 2021 08:36:48 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9868 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbhINMgs (ORCPT ); Tue, 14 Sep 2021 08:36:48 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4H82kv1KkBz8yWP; Tue, 14 Sep 2021 20:31:03 +0800 (CST) Received: from dggema772-chm.china.huawei.com (10.1.198.214) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.8; Tue, 14 Sep 2021 20:35:28 +0800 Received: from [127.0.0.1] (10.69.38.196) by dggema772-chm.china.huawei.com (10.1.198.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Tue, 14 Sep 2021 20:35:28 +0800 Subject: Re: [RFC] Perfomance varies according to sysctl_sched_migration_cost To: Peter Zijlstra CC: , , , , , , , , <21cnbao@gmail.com>, "Linux Kernel Mailing List" , "Song Bao Hua (Barry Song)" , , "guodong.xu@linaro.org" References: From: Yicong Yang Message-ID: <5be9d830-d6f4-6c2e-278f-940baeb57d89@hisilicon.com> Date: Tue, 14 Sep 2021 20:35:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.69.38.196] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema772-chm.china.huawei.com (10.1.198.214) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/14 19:30, Peter Zijlstra wrote: > On Tue, Sep 14, 2021 at 03:27:09PM +0800, Yicong Yang wrote: >> 2. The ABI now has been removed from sysctl and moved to debugfs. As tuning this can improve the performance >> of some workloads on some platforms, maybe it's better to make it a formal sysctl again with docs? > > It never was an ABI, there is nothing to restore. It has always been > CONFIG_SCHED_DEBUG. > It's right that CONIG_SCHED_DEBUG is on for most releases and it's same to tune it through debugfs. So I'm not with a strong heart to restore it but just curious about this magic value since it does have some influence when tuning this on my platform. > I'm open to topology based improvements to the code, but I don't think > user tunables are a good way. > sure, it's better to make the scheduler topology adapted rather than manually tuned, but certainly it's not that easy to achieve. Maybe I can investigate the whole story first, seems we didn't use a constant migration_cost_ns at very beginning, to see if there's any inspiration. Thanks. > . >