From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Defrag in shrinkers Date: Fri, 14 May 2010 22:36:03 +0200 Message-ID: <87y6fmmdak.fsf@basil.nowhere.org> References: <1273821863-29524-1-git-send-email-david@fromorbit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dave Chinner , linux-kernel@vger.kernel.org, xfs@oss.sgi.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Pekka Enberg , npiggin@suse.de To: Christoph Lameter Return-path: In-Reply-To: (Christoph Lameter's message of "Fri\, 14 May 2010 12\:46\:52 -0500 \(CDT\)") Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org Christoph Lameter writes: > Would it also be possible to add some defragmentation logic when you > revise the shrinkers? Here is a prototype patch that would allow you to > determine the other objects sitting in the same page as a given object. > > With that I hope that you have enough information to determine if its > worth to evict the other objects as well to reclaim the slab page. I like the idea, it would be useful for the hwpoison code too, when it tries to clean a page. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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: email@kvack.org