lkml.org 
[lkml]   [2010]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [BUG] slub crashes on dma allocations

So S390 has NUMA and the minalign is allowing very small slabs of 8/16/32 bytes?


Try this patch

From: Christoph Lameter <cl@linux-foundation.org>
Subject: SLUB: Allow full duplication of kmalloc array for 390

Seems that S390 is running out of kmalloc caches.

Increase the number of kmalloc caches to a safe size.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>

---
include/linux/slub_def.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/include/linux/slub_def.h
===================================================================
--- linux-2.6.orig/include/linux/slub_def.h 2010-05-27 09:14:16.000000000 -0500
+++ linux-2.6/include/linux/slub_def.h 2010-05-27 09:14:26.000000000 -0500
@@ -140,7 +140,7 @@ struct kmem_cache {
#ifdef CONFIG_ZONE_DMA
#define SLUB_DMA __GFP_DMA
/* Reserve extra caches for potential DMA use */
-#define KMALLOC_CACHES (2 * SLUB_PAGE_SHIFT - 6)
+#define KMALLOC_CACHES (2 * SLUB_PAGE_SHIFT)
#else
/* Disable DMA functionality */
#define SLUB_DMA (__force gfp_t)0


\
 
 \ /
  Last update: 2010-05-27 16:23    [W:0.054 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site