original_kernel/fs/xfs/linux-2.6
Dave Chinner b223221956 xfs: ensure reclaim cursor is reset correctly at end of AG
On a 32 bit highmem PowerPC machine, the XFS inode cache was growing
without bound and exhausting low memory causing the OOM killer to be
triggered. After some effort, the problem was reproduced on a 32 bit
x86 highmem machine.

The problem is that the per-ag inode reclaim index cursor was not
getting reset to the start of the AG if the radix tree tag lookup
found no more reclaimable inodes. Hence every further reclaim
attempt started at the same index beyond where any reclaimable
inodes lay, and no further background reclaim ever occurred from the
AG.

Without background inode reclaim the VM driven cache shrinker
simply cannot keep up with cache growth, and OOM is the result.

While the change that exposed the problem was the conversion of the
inode reclaim to use work queues for background reclaim, it was not
the cause of the bug. The bug was introduced when the cursor code
was added, just waiting for some weird configuration to strike....

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Tested-By: Christian Kujau <lists@nerdbynature.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
2011-05-09 12:17:03 -05:00
..
kmem.c
kmem.h
mrlock.h
time.h
xfs_acl.c
xfs_aops.c
xfs_aops.h
xfs_buf.c
xfs_buf.h
xfs_discard.c
xfs_discard.h
xfs_export.c
xfs_export.h
xfs_file.c
xfs_fs_subr.c
xfs_globals.c
xfs_ioctl.c
xfs_ioctl.h
xfs_ioctl32.c xfs: add an x86 compat handler for XFS_IOC_ZERO_RANGE 2011-04-28 13:27:46 -05:00
xfs_ioctl32.h xfs: add an x86 compat handler for XFS_IOC_ZERO_RANGE 2011-04-28 13:27:46 -05:00
xfs_iops.c
xfs_iops.h
xfs_linux.h
xfs_message.c
xfs_message.h
xfs_quotaops.c
xfs_stats.c
xfs_stats.h
xfs_super.c
xfs_super.h
xfs_sync.c xfs: ensure reclaim cursor is reset correctly at end of AG 2011-05-09 12:17:03 -05:00
xfs_sync.h
xfs_sysctl.c
xfs_sysctl.h
xfs_trace.c
xfs_trace.h xfs: fix compiler warning in xfs_trace.h 2011-04-28 13:27:06 -05:00
xfs_vnode.h
xfs_xattr.c