From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 3439E6B01EE for ; Fri, 14 May 2010 16:36:11 -0400 (EDT) Subject: Re: Defrag in shrinkers From: Andi Kleen References: <1273821863-29524-1-git-send-email-david@fromorbit.com> Date: Fri, 14 May 2010 22:36:03 +0200 In-Reply-To: (Christoph Lameter's message of "Fri\, 14 May 2010 12\:46\:52 -0500 \(CDT\)") Message-ID: <87y6fmmdak.fsf@basil.nowhere.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mm@kvack.org To: Christoph Lameter 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 List-ID: 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