From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: [PATCH 0/2] Context sensitive memory shrinker support Date: Tue, 13 Apr 2010 10:24:13 +1000 Message-ID: <1271118255-21070-1-git-send-email-david@fromorbit.com> Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com To: linux-kernel@vger.kernel.org Return-path: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org Recently I made the XFS inode reclaim operate entirely in the background for both clean and dirty inodes as it simplified the code a lot and is somewhat more efficient. Unfortunately, there are some workloads where the background reclaim is not freeing memory fast enough, so the reclaim needs an extra push when memory is low. The inode caches are per-filesystem on XFS, so to make effective use of the shrinker callbacks when memory is low, we need a context to be passed through the shrinker to give us the filesystem context to run the reclaim from. The two patches introduce the shrinker context and implement the XFS inode reclaim shrinkers. -- 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