x86, UV: disable BAU on network congestion
Subsystems (2)
PATCH 3/11 x86, UV: disable BAU on network congestion
The numalink network can become so congested that TLB shootdown using the Broadcast Assist Unit becomes slower than using IPI's.
In that case, disable the use of the BAU for a period of time. The period is tunable. When the period expires the use of the BAU is re-enabled. A count of these actions is added to the statistics file.
Diffed against 2.6.34 -tip
--- arch/x86/include/asm/uv/uv_bau.h | 4 ++ arch/x86/kernel/tlb_uv.c | 76 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 77 insertions(+), 3 deletions(-)
arch/x86/include/asm/uv/uv_bau.h +4 -0
@@ -34,6 +34,7 @@*/ #define UV_ITEMS_PER_DESCRIPTOR 8 +/* the 'throttle' to prevent the hardware stay-busy bug */ #define MAX_BAU_CONCURRENT 3#define UV_CPUS_PER_ACT_STATUS 32#define UV_ACT_STATUS_MASK 0x3
@@ -338,6 +339,7 @@ struct bau_control {int timeout_tries;int ipi_attempts;int conseccompletes; +int baudisabled;int set_bau_off;short cpu;short uvhub_cpu;
@@ -389,6 +391,8 @@ struct ptc_stats {unsigned long s_busy;/* status stayed busy past s/w timer */ unsigned long s_throttles;/* waits in throttle */ unsigned long s_retry_messages;/* retry broadcasts */ +unsigned long s_bau_reenabled;/* for bau enable/disable */ +unsigned long s_bau_disabled;/* for bau enable/disable */ /* destination statistics */ unsigned long d_alltlb;/* times all tlb's on this cpu were flushed */ unsigned long d_onetlb;/* times just one tlb on this cpu was flushed */
arch/x86/kernel/tlb_uv.c +73 -3
148 lines not on this page · raw message
[tip:x86/uv] x86, UV: Disable BAU on network congestion
Commit-ID: 50fb55acc5bbe5ee29d0a65262f4ec286b14d156 Gitweb: http://git.kernel.org/tip/50fb55acc5bbe5ee29d0a65262f4ec286b14d156 Author: Cliff Wickman <[email protected]> AuthorDate: Wed, 2 Jun 2010 16:22:02 -0500 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 8 Jun 2010 21:13:45 +0200
x86, UV: Disable BAU on network congestion
The numalink network can become so congested that TLB shootdown using the Broadcast Assist Unit becomes slower than using IPI's.
In that case, disable the use of the BAU for a period of time. The period is tunable. When the period expires the use of the BAU is re-enabled. A count of these actions is added to the statistics file.
LKML-Reference: <[email protected]>
--- arch/x86/include/asm/uv/uv_bau.h | 4 ++ arch/x86/kernel/tlb_uv.c | 76 ++++++++++++++++++++++++++++++++++++- 2 files changed, 77 insertions(+), 3 deletions(-)
arch/x86/include/asm/uv/uv_bau.h +4 -0
@@ -34,6 +34,7 @@*/ #define UV_ITEMS_PER_DESCRIPTOR 8 +/* the 'throttle' to prevent the hardware stay-busy bug */ #define MAX_BAU_CONCURRENT 3#define UV_CPUS_PER_ACT_STATUS 32#define UV_ACT_STATUS_MASK 0x3
@@ -338,6 +339,7 @@ struct bau_control {int timeout_tries;int ipi_attempts;int conseccompletes; +int baudisabled;int set_bau_off;short cpu;short uvhub_cpu;
@@ -389,6 +391,8 @@ struct ptc_stats {unsigned long s_busy;/* status stayed busy past s/w timer */ unsigned long s_throttles;/* waits in throttle */ unsigned long s_retry_messages;/* retry broadcasts */ +unsigned long s_bau_reenabled;/* for bau enable/disable */ +unsigned long s_bau_disabled;/* for bau enable/disable */ /* destination statistics */ unsigned long d_alltlb;/* times all tlb's on this cpu were flushed */ unsigned long d_onetlb;/* times just one tlb on this cpu was flushed */
arch/x86/kernel/tlb_uv.c +73 -3
148 lines not on this page · raw message