public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: Double the per cpu area size
@ 2006-08-07 15:25 Eric W. Biederman
  2006-08-07 15:30 ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Eric W. Biederman @ 2006-08-07 15:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andi Kleen, Protasevich, Natalie, linux-kernel


With the support for more than 256 irqs kernel_stat.irqs has
grown noticeably in size.  When asked about it no one wants to
keep less information, so we need a larger per cpu area.

According to my rough calculations the per cpu usage
has grown by about 15K (in the worst case) while the per cpu
area size has grown by 32K so we should have enough room for
a while.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---
 include/asm-x86_64/percpu.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/asm-x86_64/percpu.h b/include/asm-x86_64/percpu.h
index 08dd9f9..56e3bdb 100644
--- a/include/asm-x86_64/percpu.h
+++ b/include/asm-x86_64/percpu.h
@@ -11,6 +11,8 @@ #ifdef CONFIG_SMP
 
 #include <asm/pda.h>
 
+#define PERCPU_ENOUGH_ROOM 65536
+
 #define __per_cpu_offset(cpu) (cpu_pda(cpu)->data_offset)
 #define __my_cpu_offset() read_pda(data_offset)
 
-- 
1.4.2.rc3.g7e18e


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

end of thread, other threads:[~2006-08-08 21:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07 15:25 [PATCH] x86_64: Double the per cpu area size Eric W. Biederman
2006-08-07 15:30 ` Andi Kleen
2006-08-07 16:31   ` Eric W. Biederman
2006-08-08 20:43     ` Keith Mannthey
2006-08-08 21:09       ` Eric W. Biederman
2006-08-08 21:26         ` Keith Mannthey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox