Thread (15 messages) 15 messages, 3 authors, 2013-01-09

Re: [PATCH 0/3] retry slab allocation after first failure

From: Christoph Lameter <hidden>
Date: 2013-01-02 16:32:42
Also in: linux-fsdevel

On Wed, 19 Dec 2012, Glauber Costa wrote:
The reclaim round, despite not being able to free a whole page, may very well
have been able to free objects spread around multiple pages. Which means that
at this point, a new object allocation would likely succeed.
I think this is reasonable but the approach is too intrusive on the hot
paths. Page allocation from the slab allocators happens outside of the hot
allocation and free paths.

slub has call to slab_out_of_memory in __slab_alloc which may be a
reasonable point to insert the logic.

slab has this whole fallback_alloc function to deal with short on memory
situations. Insert the additional logic there.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help