linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] - Increase max kmalloc size for very large systems
@ 2006-03-03 15:52 Jack Steiner
  0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2006-03-03 15:52 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

Systems with extemely large numbers of nodes or cpus need to
kmalloc structures larger than is currently supported. This
patch increases the maximum supported size for very large systems.

This patch should have no effect on current systems.


	Signed-off-by: Jack Steiner <steiner@sgi.com>


Index: linux/include/linux/kmalloc_sizes.h
===================================================================
--- linux.orig/include/linux/kmalloc_sizes.h	2006-03-01 16:07:31.000000000 -0600
+++ linux/include/linux/kmalloc_sizes.h	2006-03-02 13:40:27.000000000 -0600
@@ -19,8 +19,10 @@
 	CACHE(32768)
 	CACHE(65536)
 	CACHE(131072)
-#ifndef CONFIG_MMU
+#if (NR_CPUS > 512) || (MAX_NUMNODES > 256) || !defined(CONFIG_MMU)
 	CACHE(262144)
+#endif
+#ifndef CONFIG_MMU
 	CACHE(524288)
 	CACHE(1048576)
 #ifdef CONFIG_LARGE_ALLOCS

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-03 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03 15:52 [PATCH] - Increase max kmalloc size for very large systems Jack Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).