From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79380C433EF for ; Tue, 9 Nov 2021 10:40:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65B4A61175 for ; Tue, 9 Nov 2021 10:40:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245429AbhKIKnm (ORCPT ); Tue, 9 Nov 2021 05:43:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245419AbhKIKnh (ORCPT ); Tue, 9 Nov 2021 05:43:37 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10721C061766 for ; Tue, 9 Nov 2021 02:40:52 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id p18so20084611plf.13 for ; Tue, 09 Nov 2021 02:40:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ijkZGpaFpq6LV8Gg8reo+SGCxLMW6UmnTU/srKB0UIc=; b=T3YiUPJYSknWJO0k0ZBPc+Hfc2pdbROPOfOnZ4i3Bzpubl9KUT7aLNzl70vpfrZFd4 S8PgbtElpzfz+ter7uV5y4U8QWPW0Md0+qantVOPX3mxmhU//7vzBGlJ7L/jxFxuU3dF be45f4qIlcndP6Em8lOmWG6KHlo6gZsW20iKtn/FmXagbz8rKmwu10WBo+M3RWJo7qQC LLjeIxWF61EQUqZa2aIO+rWRbG2+wVmDr6cpa9AWL16MI5lAeaPKFMjAACnqAOtmH8Xd j0UA8kXzVVj+gd/r9HnVZiYnP+wKj9L9NR/RjfVPuejWnVT6CvC6rv1GPRvJ24UJPl/u DUmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ijkZGpaFpq6LV8Gg8reo+SGCxLMW6UmnTU/srKB0UIc=; b=BVQrauCJ3aFTMrntc0FXh0RrSqUdOU1Jr+7UHtKRtMRHjN9BvAEoZvekwPZGJBP2EJ 5UA6WpMHF3iFc/KX4jau5W/47dqzZPw0dMXd/grWyln174SRtt1VOHY8UPdL8zAU+TVv IZRo6ZYvtBehw/3L5954yrBX6npwQdmvqNE23sXUdu4ELNFFfDiCGMh2s4C3d1ZKoonB DG1JNufgKvAUx8J8787jh/grqMsfQvII1o5Z0FVuIsuhjLhJyFsW6IKT7XhyzIOcvPqG qy2/xVOlcNXCRGsZAd63XUsaoseD0pbKRAA/fHbA6CEBm2Ih7Z+mQOcfMqb242PW7e44 nxqg== X-Gm-Message-State: AOAM531pX8Xs6yvGPtdATpBuuUvmehLjQdYrAicuGqBn31WuZ/yjV155 VSpHRlXfhLVU+RPkaj4eSC6vUA== X-Google-Smtp-Source: ABdhPJyh2eh8cVDZfvZs49FwaWVzUtwCEWQ1SARsnhb2KFJzuK+iPRCqbAddHfiRgdFarLhZ85oEzA== X-Received: by 2002:a17:90a:2fc7:: with SMTP id n7mr6006745pjm.141.1636454451646; Tue, 09 Nov 2021 02:40:51 -0800 (PST) Received: from [10.254.105.98] ([139.177.225.240]) by smtp.gmail.com with ESMTPSA id s2sm8895919pfg.124.2021.11.09.02.40.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 02:40:51 -0800 (PST) Subject: Re: Re: Re: Re: [PATCH v1] sched/numa: add per-process numa_balancing To: Mel Gorman Cc: Jonathan Corbet , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-api@vger.kernel.org, LKML , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org References: <20211027132633.86653-1-ligang.bdlg@bytedance.com> <20211028153028.GP3891@suse.de> <20211029083751.GR3891@suse.de> <20211109091951.GW3891@suse.de> From: Gang Li Message-ID: <7de25e1b-e548-b8b5-dda5-6a2e001f3c1a@bytedance.com> Date: Tue, 9 Nov 2021 18:40:43 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211109091951.GW3891@suse.de> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/21 5:19 PM, Mel Gorman wrote: > On Tue, Nov 09, 2021 at 04:28:28PM +0800, Gang Li wrote: >> If the global tuning affects default behaviour and the prctl >> affects specific behaviour. Then when prctl specifies >> numa_balancing for a process, there is no way for the >> global tuning to affect that process. > > While I think it's very likely that the common case will be to disable > NUMA balancing for specific processes, > prctl(PR_NUMA_BALANCING,PR_SET_NUMA_BALANCING,1) should still be > meaningful. > I'm still a bit confused. If we really want to enable/disable numa_balancing for all processes, but some of them override the global numa_balancing using prctl, what should we do? Do we iterate through these processes to enable/disable them individually?