Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Phillips
Date: Monday, August 6, 2007 - 4:49 pm

On Monday 06 August 2007 16:14, Christoph Lameter wrote:

Here is one user:

   http://zumastor.googlecode.com/svn/trunk/ddsnap/kernel/dm-ddsnap.c
   down(&info->throttle_sem);

Peter has another (swap over net).  A third is the network stack itself, 
which is in the full patch set that Peter has posted a number of times 
in the past but did not appear today because Peter broke the full patch 
set up into multiple sets to make it all easier to understand.


Failing allocations?  Where do you see that?  As far as I can see, 
Peter's patch set allows allocations to fail exactly where the user has 
always specified they may fail, and in no new places.  If there is a 
flaw in that logic, please let us know.

What the current patch set actually does is allow some critical 
allocations that would have failed or recursed into deadlock before to 
succeed instead, allowing vm writeout to complete successfully.  You 
may quibble with exactly how he accomplishes that, but preventing these 
allocations from failing is not optional.


What do you mean by that?  Expected by who?


Peter did not actually have to add a new layer of abstraction to 
alloc_pages to impose order on the hardcoded hacks that currently live 
in there to decide how far various callers can dig into reserves.  It 
would probably help people understand this patch set if that part were 
taken out for now and replaced with the original seat-of-the-pants two 
line hack I had in the original.  But I do not see anything wrong with 
what Peter has written there, it just takes a little more time to read.


Do you have an example?


What makes you think that?


You mean by allocating the reserve memory on the wrong node in NUMA?  
That is on a code path that avoids destroying your machine performance 
or killing the machine entirely as with current kernels, for which a 
few cachelines pulled to another node is a small price to pay.  And you 
are free to use your special expertise in NUMA to make those fallback 
paths even more efficient, but first you need to understand what they 
are doing and why.

At your service for any more questions :-)

Regards,

Daniel
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Peter Zijlstra, (Mon Aug 6, 3:29 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 11:11 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 11:21 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Peter Zijlstra, (Mon Aug 6, 11:31 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 11:42 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 11:43 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 11:48 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 11:51 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 12:11 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 12:15 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Peter Zijlstra, (Mon Aug 6, 12:31 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 1:12 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Matt Mackall, (Mon Aug 6, 1:12 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 1:19 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Peter Zijlstra, (Mon Aug 6, 1:26 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Andrew Morton, (Mon Aug 6, 1:27 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 2:05 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 3:47 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 3:59 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 6, 4:14 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 4:16 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Mon Aug 6, 4:49 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Tue Aug 7, 3:18 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Peter Zijlstra, (Wed Aug 8, 12:24 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Wed Aug 8, 12:37 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Wed Aug 8, 11:06 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Wed Aug 8, 11:09 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Thu Aug 9, 11:41 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Thu Aug 9, 11:49 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Thu Aug 9, 5:17 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Thu Aug 9, 6:48 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Thu Aug 9, 8:34 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Thu Aug 9, 8:48 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Fri Aug 10, 1:15 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Fri Aug 10, 10:46 am)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Fri Aug 10, 4:25 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Daniel Phillips, (Sun Aug 12, 11:55 pm)
Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK, Christoph Lameter, (Mon Aug 13, 4:04 pm)