login
Header Space

 
 

Re: [PATCH 0/5] make slab gfp fair

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: Matt Mackall <mpm@...>, <linux-kernel@...>, <linux-mm@...>, Thomas Graf <tgraf@...>, David Miller <davem@...>, Andrew Morton <akpm@...>, Daniel Phillips <phillips@...>, Pekka Enberg <penberg@...>, Paul Jackson <pj@...>, <npiggin@...>
Date: Monday, May 21, 2007 - 4:32 pm

On Mon, 21 May 2007, Peter Zijlstra wrote:


In an interrupt context we do not have a process context. But there is
no exemption from memory policy constraints.


Yes sure if we do not have a context then no restrictions originating 
there can be enforced. So you want to restrict the logic now to
interrupt allocs? I.e. GFP_ATOMIC?


Correct. That is an optimization but it may be called anytime from the 
perspective of an execution thread and that may cause problems with your 
approach.


It will work with whatever was left behind in the case of SLUB and a 
kmalloc alloc (optimization there). It wont if its SLAB (which is 
stricter) or a kmalloc_node alloc. A kmalloc_node alloc will remove the 
current cpuslab if its not on the right now.



If it finds no partial slab then it will go to the page allocator which 
will allocate given the current contextual alloc constraints. In the case 
of a memory policy we may have limited the allocations to a single node 
where there is no escape (the zonelist does *not* contain zones of other 
nodes). The only chance to bypass this is by only dealing with allocations 
during interrupt that have no allocation context.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 9:19 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 11:02 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 3:08 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 1:29 pm)
Re: [PATCH 0/5] make slab gfp fair, Matt Mackall, (Thu May 17, 1:53 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 2:02 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 3:18 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 3:24 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 5:26 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 6:27 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Fri May 18, 5:54 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Fri May 18, 1:11 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Sun May 20, 4:39 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 21, 12:45 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 21, 3:33 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 21, 3:43 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 21, 4:08 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 21, 4:32 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 21, 4:54 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 21, 5:04 pm)
Re: [PATCH 0/5] make slab gfp fair, Paul Jackson, (Fri May 18, 1:11 pm)
Re: [PATCH 0/5] make slab gfp fair, Paul Jackson, (Thu May 17, 5:44 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 1:52 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 1:59 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 11:53 am)
Re: [PATCH 0/5] make slab gfp fair, Matt Mackall, (Mon May 14, 12:12 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 12:29 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 1:40 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 1:57 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 3:28 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 3:56 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 4:03 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 4:25 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 4:06 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 4:12 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Tue May 15, 1:27 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Tue May 15, 6:02 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 2:59 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 2:43 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 3:25 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 3:53 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 4:18 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 4:27 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 4:40 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 4:44 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 4:54 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 4:59 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 5:04 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 5:13 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Wed May 16, 5:20 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Wed May 16, 5:42 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 3:28 am)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 1:30 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Thu May 17, 1:53 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Thu May 17, 2:01 pm)
Re: [PATCH 0/5] make slab gfp fair, Andrew Morton, (Mon May 14, 3:44 pm)
Re: [PATCH 0/5] make slab gfp fair, Matt Mackall, (Mon May 14, 4:01 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 4:05 pm)
Re: [PATCH 0/5] make slab gfp fair, Peter Zijlstra, (Mon May 14, 12:10 pm)
Re: [PATCH 0/5] make slab gfp fair, Christoph Lameter, (Mon May 14, 12:37 pm)
speck-geostationary