From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757841Ab0ENUgM (ORCPT ); Fri, 14 May 2010 16:36:12 -0400 Received: from one.firstfloor.org ([213.235.205.2]:60464 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755740Ab0ENUgJ (ORCPT ); Fri, 14 May 2010 16:36:09 -0400 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 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> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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.