Re: What's the NFS OOM problem?
From: Peter Zijlstra
Date: Fri Aug 11 2006 - 04:46:26 EST
On Fri, 2006-08-11 at 10:33 +1000, Neil Brown wrote:
> On Thursday August 10, w@xxxxxx wrote:
> > > Can someone help me and give me a brief description on OOM issue?
> > I don't know about any OOM issue related to NFS. At most it might happen
> > on the client (eg: stating firefox from an NFS root) which might not have
> > enough memory for new network buffers, but I don't even know if it's
> > possible at all.
> We've had reports of OOM problems with NFS at SuSE.
> The common factors seem to be lots of memory (6G+) and very large
> Tuning down /proc/sys/vm/dirty_*ratio seems to avoid the problem,
> but I'm not very close to understanding what the real problem is.
Would it not be related to mmap'ed files, where the client will not
track the dirty pages? This will make the reclaim code go crap itself
suddenly not a single page is easily freeable anymore, all pages are
found to be dirty and require writeback, which takes more memory - ie.
network packets, and wait for proper answer.
Andrew is currently carrying some patches that will avoid this problem
virtue of tracking dirtying of mmap'ed pages. With these patches
properly incremented and the pdflush logic should kick in and do its
This would explain why lowering dirty_*ratio would sometimes help, that
kick off the pdflush thread earlier, which would then detect the
unknown dirty pages.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/