From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by kanga.kvack.org (Postfix) with ESMTP id 5E6A96B0031 for ; Sat, 4 Jan 2014 13:22:37 -0500 (EST) Received: by mail-ea0-f178.google.com with SMTP id d10so7379667eaj.9 for ; Sat, 04 Jan 2014 10:22:36 -0800 (PST) Received: from one.firstfloor.org (one.firstfloor.org. [193.170.194.197]) by mx.google.com with ESMTPS id l2si76630778een.125.2014.01.04.10.22.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 Jan 2014 10:22:36 -0800 (PST) Date: Sat, 4 Jan 2014 19:22:35 +0100 From: Andi Kleen Subject: Re: Is it possible to disable numa_balance after boot? Message-ID: <20140104182235.GT20765@two.firstfloor.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andreas Hollmann Cc: linux-numa , linux-mm@kvack.org, mgorman@suse.de, akpm@linux-foundation.org On Sat, Jan 04, 2014 at 06:46:55PM +0100, Andreas Hollmann wrote: > Hi, > > is possible to turn of numa balancing (introduced in 3.8) in a running kernel? I submitted a patch to do it some time ago https://lkml.org/lkml/2013/4/24/529 But it didn't seem to have made it in. Andrew? Mel? Yes I agree a disable switch is totally needed for such an intrusive feature, if only to isolate problems with it. -Andi > > I'm running a recent arch kernel and numa balancing is enabled by > default. I checked > several documents and found some sysctl variable which influence the behavior of > numa balance, but there is no clear documentation if it's possible to > disable it. > > The only defined way to disable it is using a kernel parameter > > numa_balancing= [KNL,X86] Enable or disable automatic NUMA balancing. > Allowed values are enable and disable > > Is there any other way? > > Best regards, > Andreas > > > $ uname -a > Linux inwest 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 > x86_64 GNU/Linux > > $ cat /usr/src/linux-3.12.6-1-ARCH/.config | grep NUMA_BALANCING > CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y > CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y > CONFIG_NUMA_BALANCING=y > > $ ls -l /proc/sys/kernel | grep numa_bal > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_delay_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_max_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_min_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_reset > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_size_mb > -- > To unsubscribe from this list: send the line "unsubscribe linux-numa" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ak@linux.intel.com -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Hollmann Subject: Re: Is it possible to disable numa_balance after boot? Date: Sat, 4 Jan 2014 22:37:08 +0100 Message-ID: References: <20140104182235.GT20765@two.firstfloor.org> Mime-Version: 1.0 Return-path: In-Reply-To: <20140104182235.GT20765@two.firstfloor.org> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andi Kleen Cc: linux-numa , linux-mm@kvack.org, mgorman@suse.de, akpm@linux-foundation.org 2014/1/4 Andi Kleen : > On Sat, Jan 04, 2014 at 06:46:55PM +0100, Andreas Hollmann wrote: >> Hi, >> >> is possible to turn of numa balancing (introduced in 3.8) in a running kernel? > > > I submitted a patch to do it some time ago > > https://lkml.org/lkml/2013/4/24/529 > > But it didn't seem to have made it in. Andrew? Mel? > > Yes I agree a disable switch is totally needed for such an intrusive > feature, if only to isolate problems with it. That would be great. Additionally it would be nice to do it per application. Some applications work well with pinning, others don't and it would be bad to disable numa balancing globally. > > -Andi > > >> >> I'm running a recent arch kernel and numa balancing is enabled by >> default. I checked >> several documents and found some sysctl variable which influence the behavior of >> numa balance, but there is no clear documentation if it's possible to >> disable it. >> >> The only defined way to disable it is using a kernel parameter >> >> numa_balancing= [KNL,X86] Enable or disable automatic NUMA balancing. >> Allowed values are enable and disable >> >> Is there any other way? >> >> Best regards, >> Andreas >> >> >> $ uname -a >> Linux inwest 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 >> x86_64 GNU/Linux >> >> $ cat /usr/src/linux-3.12.6-1-ARCH/.config | grep NUMA_BALANCING >> CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y >> CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y >> CONFIG_NUMA_BALANCING=y >> >> $ ls -l /proc/sys/kernel | grep numa_bal >> -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_delay_ms >> -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_max_ms >> -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_min_ms >> -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_reset >> -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_size_mb >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-numa" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > -- > ak@linux.intel.com -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by kanga.kvack.org (Postfix) with ESMTP id 539D76B0031 for ; Mon, 6 Jan 2014 15:33:42 -0500 (EST) Received: by mail-pa0-f53.google.com with SMTP id hz1so18968929pad.40 for ; Mon, 06 Jan 2014 12:33:41 -0800 (PST) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTP id y1si19067866pbm.64.2014.01.06.12.33.40 for ; Mon, 06 Jan 2014 12:33:41 -0800 (PST) Date: Mon, 6 Jan 2014 12:33:37 -0800 From: Andrew Morton Subject: Re: Is it possible to disable numa_balance after boot? Message-Id: <20140106123337.c75b78bae6f1258065729ff0@linux-foundation.org> In-Reply-To: <20140104182235.GT20765@two.firstfloor.org> References: <20140104182235.GT20765@two.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andi Kleen Cc: Andreas Hollmann , linux-numa , linux-mm@kvack.org, mgorman@suse.de On Sat, 4 Jan 2014 19:22:35 +0100 Andi Kleen wrote: > On Sat, Jan 04, 2014 at 06:46:55PM +0100, Andreas Hollmann wrote: > > Hi, > > > > is possible to turn of numa balancing (introduced in 3.8) in a running kernel? > > > I submitted a patch to do it some time ago > > https://lkml.org/lkml/2013/4/24/529 > > But it didn't seem to have made it in. Andrew? Mel? Mel acked it and provided a followup documentation patch. Redo and resend, please? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Hollmann Subject: Is it possible to disable numa_balance after boot? Date: Sat, 4 Jan 2014 18:46:55 +0100 Message-ID: Mime-Version: 1.0 Return-path: Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-numa Hi, is possible to turn of numa balancing (introduced in 3.8) in a running kernel? I'm running a recent arch kernel and numa balancing is enabled by default. I checked several documents and found some sysctl variable which influence the behavior of numa balance, but there is no clear documentation if it's possible to disable it. The only defined way to disable it is using a kernel parameter numa_balancing= [KNL,X86] Enable or disable automatic NUMA balancing. Allowed values are enable and disable Is there any other way? Best regards, Andreas $ uname -a Linux inwest 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64 GNU/Linux $ cat /usr/src/linux-3.12.6-1-ARCH/.config | grep NUMA_BALANCING CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y CONFIG_NUMA_BALANCING=y $ ls -l /proc/sys/kernel | grep numa_bal -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_delay_ms -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_max_ms -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_min_ms -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_reset -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_size_mb From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Is it possible to disable numa_balance after boot? Date: Sat, 4 Jan 2014 19:22:35 +0100 Message-ID: <20140104182235.GT20765@two.firstfloor.org> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andreas Hollmann Cc: linux-numa , linux-mm@kvack.org, mgorman@suse.de, akpm@linux-foundation.org On Sat, Jan 04, 2014 at 06:46:55PM +0100, Andreas Hollmann wrote: > Hi, > > is possible to turn of numa balancing (introduced in 3.8) in a running kernel? I submitted a patch to do it some time ago https://lkml.org/lkml/2013/4/24/529 But it didn't seem to have made it in. Andrew? Mel? Yes I agree a disable switch is totally needed for such an intrusive feature, if only to isolate problems with it. -Andi > > I'm running a recent arch kernel and numa balancing is enabled by > default. I checked > several documents and found some sysctl variable which influence the behavior of > numa balance, but there is no clear documentation if it's possible to > disable it. > > The only defined way to disable it is using a kernel parameter > > numa_balancing= [KNL,X86] Enable or disable automatic NUMA balancing. > Allowed values are enable and disable > > Is there any other way? > > Best regards, > Andreas > > > $ uname -a > Linux inwest 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 > x86_64 GNU/Linux > > $ cat /usr/src/linux-3.12.6-1-ARCH/.config | grep NUMA_BALANCING > CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y > CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y > CONFIG_NUMA_BALANCING=y > > $ ls -l /proc/sys/kernel | grep numa_bal > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_delay_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_max_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_min_ms > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_period_reset > -rw-r--r-- 1 root root 0 Jan 4 14:23 numa_balancing_scan_size_mb > -- > To unsubscribe from this list: send the line "unsubscribe linux-numa" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ak@linux.intel.com -- Speaking for myself only. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: Is it possible to disable numa_balance after boot? Date: Mon, 6 Jan 2014 12:33:37 -0800 Message-ID: <20140106123337.c75b78bae6f1258065729ff0@linux-foundation.org> References: <20140104182235.GT20765@two.firstfloor.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140104182235.GT20765@two.firstfloor.org> Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Andi Kleen Cc: Andreas Hollmann , linux-numa , linux-mm@kvack.org, mgorman@suse.de On Sat, 4 Jan 2014 19:22:35 +0100 Andi Kleen wrote: > On Sat, Jan 04, 2014 at 06:46:55PM +0100, Andreas Hollmann wrote: > > Hi, > > > > is possible to turn of numa balancing (introduced in 3.8) in a running kernel? > > > I submitted a patch to do it some time ago > > https://lkml.org/lkml/2013/4/24/529 > > But it didn't seem to have made it in. Andrew? Mel? Mel acked it and provided a followup documentation patch. Redo and resend, please?