linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* HWPOISON/SLAB: Allow shrinking of specific slab cache.
@ 2010-10-06 21:02 Andi Kleen
  2010-10-06 21:02 ` [PATCH 1/2] SLAB: Add function to get slab cache for a page Andi Kleen
  2010-10-06 21:02 ` [PATCH 2/2] HWPOISON: Attempt directed shrinking of slabs Andi Kleen
  0 siblings, 2 replies; 10+ messages in thread
From: Andi Kleen @ 2010-10-06 21:02 UTC (permalink / raw)
  To: linux-mm; +Cc: penberg, cl, mpm

For hwpoison it is useful to shrink a specific slab cache: hwpoison
knows the page to shrink and attempts to free it.  Currently
it shrinks all slabs, which is a bit inefficient.

The slab caches internally all know this information, but do not
export it currently.

This patch kit adds a new function to export it and lets hwpoison
use it to shrink the correct page. I added the necessary functions
to slab, slub and slob.

Pekka, others, is this patch ok for you? I would prefer to carry in my
tree to avoid dependency issues.

Any reviews and Acks appreciated.

Thanks,
-Andi

--
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>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-10-07  6:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06 21:02 HWPOISON/SLAB: Allow shrinking of specific slab cache Andi Kleen
2010-10-06 21:02 ` [PATCH 1/2] SLAB: Add function to get slab cache for a page Andi Kleen
2010-10-06 21:42   ` Christoph Lameter
2010-10-07  5:34     ` Pekka Enberg
2010-10-07  6:34       ` Andi Kleen
2010-10-06 21:02 ` [PATCH 2/2] HWPOISON: Attempt directed shrinking of slabs Andi Kleen
2010-10-06 21:26   ` Christoph Lameter
2010-10-06 21:42     ` Andi Kleen
2010-10-06 21:44       ` Christoph Lameter
2010-10-06 21:55         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).