All of lore.kernel.org
 help / color / mirror / Atom feed
* Is it possible to disable numa_balance after boot?
@ 2014-01-04 17:46 Andreas Hollmann
  2014-01-04 18:22   ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Hollmann @ 2014-01-04 17:46 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it possible to disable numa_balance after boot?
  2014-01-04 17:46 Is it possible to disable numa_balance after boot? Andreas Hollmann
@ 2014-01-04 18:22   ` Andi Kleen
  0 siblings, 0 replies; 6+ messages in thread
From: Andi Kleen @ 2014-01-04 18:22 UTC (permalink / raw)
  To: Andreas Hollmann; +Cc: linux-numa, linux-mm, mgorman, akpm

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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it possible to disable numa_balance after boot?
@ 2014-01-04 18:22   ` Andi Kleen
  0 siblings, 0 replies; 6+ messages in thread
From: Andi Kleen @ 2014-01-04 18:22 UTC (permalink / raw)
  To: Andreas Hollmann; +Cc: linux-numa, linux-mm, mgorman, akpm

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it possible to disable numa_balance after boot?
  2014-01-04 18:22   ` Andi Kleen
  (?)
@ 2014-01-04 21:37   ` Andreas Hollmann
  -1 siblings, 0 replies; 6+ messages in thread
From: Andreas Hollmann @ 2014-01-04 21:37 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-numa, linux-mm, mgorman, akpm

2014/1/4 Andi Kleen <andi@firstfloor.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.

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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it possible to disable numa_balance after boot?
  2014-01-04 18:22   ` Andi Kleen
@ 2014-01-06 20:33     ` Andrew Morton
  -1 siblings, 0 replies; 6+ messages in thread
From: Andrew Morton @ 2014-01-06 20:33 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Andreas Hollmann, linux-numa, linux-mm, mgorman

On Sat, 4 Jan 2014 19:22:35 +0100 Andi Kleen <andi@firstfloor.org> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it possible to disable numa_balance after boot?
@ 2014-01-06 20:33     ` Andrew Morton
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Morton @ 2014-01-06 20:33 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Andreas Hollmann, linux-numa, linux-mm, mgorman

On Sat, 4 Jan 2014 19:22:35 +0100 Andi Kleen <andi@firstfloor.org> 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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-06 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 17:46 Is it possible to disable numa_balance after boot? Andreas Hollmann
2014-01-04 18:22 ` Andi Kleen
2014-01-04 18:22   ` Andi Kleen
2014-01-04 21:37   ` Andreas Hollmann
2014-01-06 20:33   ` Andrew Morton
2014-01-06 20:33     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.