From: Dave Chinner <david@fromorbit.com>
To: Peter Palfrader <peter@palfrader.org>,
linux-kernel@vger.kernel.org, xfs@oss.sgi.com, stable@kernel.org
Subject: Re: [regression,bisected] 2.6.32.12: find(1) on xfs causes OOM
Date: Mon, 3 May 2010 22:36:06 +1000 [thread overview]
Message-ID: <20100503123606.GG2591@dastard> (raw)
In-Reply-To: <20100503115438.GA16623@anguilla.noreply.org>
On Mon, May 03, 2010 at 01:54:38PM +0200, Peter Palfrader wrote:
> Hi,
>
> I have an xfs filesystem in a KVM domain with 512megs of memory and 2 gigs of
> swap.
>
> The filesystem is 750g in size, of which some 500g are in use in about 6
> million files. (This XFS filesystem is exported via nfs4. I haven't tested if
> this makes any difference.)
>
> Starting in 2.6.32.12 running something like "find | wc -l" on this
> filesystem's mountpoint causes the OOM killer to kill off most of the
> system. (See kern.log[1])
Knwon problem.
As a workaraound, you can increase the frequency at which the
xfssyncd runs so that it is less than the default 30s between
background reclaim runs.
> With 2.6.32.11 the system does not behave like this.
>
> Bisecting turned up the following commit. Reverting it in 2.6.32.12
> also results in a system that works.
>
> | 9e1e9675fb29c0e94a7c87146138aa2135feba2f is first bad commit
> | commit 9e1e9675fb29c0e94a7c87146138aa2135feba2f
> | Author: Dave Chinner <david@fromorbit.com>
> | Date: Fri Mar 12 09:42:10 2010 +1100
> |
> | xfs: reclaim all inodes by background tree walks
Reverting this leaves you running with a subtly altered and
completely untested reclaim path that I'm not sure does the right
thing in all situations. I wouldn't run that revert on my machines,
nor recommend it for anyone else. But it's up to you if you want to
run it on your machines....
The fix for this problem only got to mainline a couple of days ago.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9bf729c0af67897ea8498ce17c29b0683f7f2028
I've got to backport it to the stable kernel tree so the next stable
kernel should fix this.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-05-03 12:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 11:54 [regression,bisected] 2.6.32.12: find(1) on xfs causes OOM Peter Palfrader
2010-05-03 12:36 ` Dave Chinner [this message]
2010-05-03 12:44 ` Peter Palfrader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100503123606.GG2591@dastard \
--to=david@fromorbit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter@palfrader.org \
--cc=stable@kernel.org \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox