Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp763924ybz; Wed, 15 Apr 2020 18:26:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJSHqU1XY+7dlAjDFDWgiNBqj+/0vn0z8j+itk7dCLy3GRiZdPcR3WRZAqv5gaSCZsMz+SN X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr7121766eds.215.1587000406716; Wed, 15 Apr 2020 18:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587000406; cv=none; d=google.com; s=arc-20160816; b=La13WNOjUSVVMSMWuLsPdEnytBKaA4jIt9arNgZxQMcIjqmycpeY0Am2MjHwSK3S46 bVEMd/3QhUs4fvoWQKE8Jo8H10fHg8scMdWvEvyW3Zrh0/fjfdUYhvZGpEetZ4PWmTAe gcYUutewikd3DTn0R7d2r5zkPGGCCPuRIeM2pEepdGdclmbl9jJBYY440rvluhvdt1qf +ZHzDnzMUjYc77Y1VmMxvGsbT+P0oo3B+uaxlrLg2iO3GdkYRd4FwFPC2rlk1Z3q/35c lBqeVitk++n6D4AWIbdKyRIp6Z+cnJe4EjwujIJ3aUTuVQYRook88C+j5DgqTlSZDGSU Udnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=c8zGRBKd7/qXL/mdgD8gkQ/bqth2pzVPd+hVH6HEexs=; b=S4YczfQagH6mrSDIbggcp8GkxrYLj7IXQhEQdLo3IDsDnavT0NWfhtfoOhXemPaecY 5c02S+dTmqXs1xwAwDb+P0/HVchS3dJiM3z7mTj8UuHMcW5QMc7YfoaJl5S5o8h+uYmD dWs41e2xOBfTjgGxunUrh52y4JrUMwmzf3gIGd53g4l17BNcOyrdmhY83l256rBYd3NF QjdnUkedm7F9ALQBNQxVtVStvh0KDzEKKDctjM9xNNdssoSYn3w+Rn2tBU1+hdne4DMZ fRzfgVkaVTjC8p2mI5VOxErU86L/K4JcmvjvCtRUXugc2pqhyaSJh8O/2mkYP9RaH5Bk doDg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si10715584ejx.28.2020.04.15.18.26.22; Wed, 15 Apr 2020 18:26:46 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731244AbgDPBY6 (ORCPT + 99 others); Wed, 15 Apr 2020 21:24:58 -0400 Received: from mga18.intel.com ([134.134.136.126]:55379 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728589AbgDPBYk (ORCPT ); Wed, 15 Apr 2020 21:24:40 -0400 IronPort-SDR: w9j0dUKdfsEKejz45edleyYO38s8QjFEePL/HDTvmi4Pgb9ozgi1HDEJDXBuIKPQmuIo/kCN8f 9PKPchy1Mfeg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 18:24:39 -0700 IronPort-SDR: AQnTsEyPjDfJLfBwR7ukTNUMbQA3doOQTB0AHlDuA7/jyWZTsHuqs3lNIONfA+48WF41fzdUgG eY/ZdXU7NVuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,388,1580803200"; d="scan'208";a="253699927" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.23]) by orsmga003.jf.intel.com with ESMTP; 15 Apr 2020 18:24:36 -0700 From: "Huang\, Ying" To: Peter Zijlstra Cc: Mel Gorman , , , Ingo Molnar , Mel Gorman , Rik van Riel , Daniel Jordan , Tejun Heo , Dave Hansen , Tim Chen , Aubrey Li Subject: Re: [RFC] autonuma: Support to scan page table asynchronously References: <20200414081951.297676-1-ying.huang@intel.com> <20200414120646.GN3818@techsingularity.net> <20200415113226.GE20730@hirez.programming.kicks-ass.net> Date: Thu, 16 Apr 2020 09:24:35 +0800 In-Reply-To: <20200415113226.GE20730@hirez.programming.kicks-ass.net> (Peter Zijlstra's message of "Wed, 15 Apr 2020 13:32:26 +0200") Message-ID: <87o8rsxlws.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: > On Tue, Apr 14, 2020 at 01:06:46PM +0100, Mel Gorman wrote: >> While it's just an opinion, my preference would be to focus on reducing >> the cost and amount of scanning done -- particularly for threads. > > This; I really don't believe in those back-charging things, esp. since > not having cgroups or having multiple applications in a single cgroup is > a valid setup. Technically, it appears possible to back-charge the CPU time to the process/thread directly (not the cgroup). > Another way to reduce latency spikes is to decrease both > sysctl_numa_balancing_scan_delay and sysctl_numa_balancing_scan_size. > Then you do more smaller scans. By scanning more often you reduce the > contrast, by reducing the size you lower the max latency. Yes. This can reduce latency spikes. Best Regards, Huang, Ying > And this is all assuming you actually want numa balancing for this > process.