lkml.org 
[lkml]   [1997]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Another crash with 2.1.42 + mmap patches

On Wed, 11 Jun 1997, David S. Miller wrote:
> order 2 is 4 pages, that is too much and risks allocation failures
> even when much memory is available. Any attempt to rely on generic
> allocations for a major subsystem which grabs more than 2 pages at a
> time from gfp() is asking for big trouble.

In mm/slab.c, change the #define value of SLAB_BREAK_GFP_ORDER from
2 to 1. This will give a page-order of 1 for the 2048 and 4096 caches.

If you want an order of zero then set SLAB_BREAK_GFP_ORDER to 0, and
SLAB_MIN_OBJS_PER_SLAB to 1.

Regards,

markhe

-----------------------------------------------------
Mark Hemment UNIX/C Software Engineer (contractor)
"Success has many fathers. Failure is a b**tard"
-----------------------------------------------------


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.038 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site