lkml.org 
[lkml]   [1999]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.27 always keeping 15M free?

On Fri, 12 Nov 1999, Alan Cox wrote:

> > I've got a P90 laptop with 40M *1. Somewhere between 2.3.24 and
> > 2.3.27-final the kernel started keeping 15M or more free all the time.
> > On a 40M laptop that makes a big difference. *smile*
>
> 2.3.27 seperates DMA memory from the rest but forgets that you need to
> pull from the DMA pool for a failing GFP_KERNEL allocation.

well, we automatically fall back to lower level zones, check out
__get_pages():

do {
page = rmqueue(zone, order);
if (page)
return page;
} while (zone-- != zones) ;

So we are falling back from ZONE_HIGHMEM to ZONE_NORMAL to ZONE_DMA.

> You also need to figure very fast when you will need to do this otherwise
> your performance goes through the floor.

it should be rather fast. But if higher-order zones are completely
allocated then we are under heavy memory pressure anyway. But it should
work already.

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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