From: Robin Getz <rgetz@blackfin.uclinux.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: The VFS cache is not freed when there is not enough free memory to allocate
Date: Tue, 28 Nov 2006 08:29:59 -0500 [thread overview]
Message-ID: <6.1.1.1.0.20061128072553.01ed05e0@10.64.204.105> (raw)
Nick wrote:
>And your patch is just a hack that happens to mask the issue in the case
>you tested, and it will probably blow up in production at some stage
Ok - that would be bad - back to the drawing board.
Maybe we need to take a step back, and describe the original problem, and
someone can maybe point us in the correct direction, so we can figure out
the proper way to fix things.
As Aubrey stated:
>When there is no enough free memory, the kernel kprints an OOM, and kills
>the application, instead of freeing VFS cache, no matter how big the value
>of /proc/sys/vm/vfs_cache_pressure is set to.
This seems to happen with application allocations as small as one page.
Larger allocations just make this happen faster.
By doing a periodic "echo 3 > /proc/sys/vm/drop_caches" in a different
terminal, seems to make the problem go away.
From what I understand, as documented in
./Documentation/filesystem/proc.txt we should be able to control the size
of vfs cache, but it does not seem to work. vfs cache on noMMU seems to
grow, and grow, and grow, until a) you drop caches manually, or b) the
system does a OOM.
Any pointers to the correct place to start investigating this would be
appreciated.
-Robin
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2006-11-28 13:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 13:29 Robin Getz [this message]
2006-11-28 14:41 ` Nick Piggin
-- strict thread matches above, loose matches on Subject: below --
2006-11-22 7:51 Aubrey
2006-11-22 8:43 ` Peter Zijlstra
2006-11-22 10:02 ` Aubrey
2006-11-22 10:42 ` Peter Zijlstra
2006-11-22 11:09 ` Aubrey
2006-11-27 1:34 ` Mike Frysinger
2006-11-27 7:39 ` Nick Piggin
2006-11-29 7:17 ` Sonic Zhang
2006-11-29 9:27 ` Aubrey
2006-11-29 9:30 ` Nick Piggin
2006-11-30 12:54 ` Aubrey
2006-11-30 21:18 ` Nick Piggin
2006-12-01 10:00 ` Aubrey
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=6.1.1.1.0.20061128072553.01ed05e0@10.64.204.105 \
--to=rgetz@blackfin.uclinux.org \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nickpiggin@yahoo.com.au \
/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