From: Andrew Morton <akpm@digeo.com>
To: Rene Herman <rene.herman@keyaccess.nl>
Cc: linux-mm@kvack.org, Con Kolivas <contest@kolivas.net>
Subject: Re: VM trouble, both 2.4 and 2.5
Date: Fri, 15 Nov 2002 14:44:33 -0800 [thread overview]
Message-ID: <3DD578D1.1E3134A0@digeo.com> (raw)
In-Reply-To: <02111521422000.00195@7ixe4>
Rene Herman wrote:
>
> ...
> rene@7ixe4:~$ cat /proc/meminfo
> MemTotal: 776156 kB
> MemFree: 412112 kB
> MemShared: 0 kB
> Buffers: 7668 kB
> Cached: 61564 kB
> SwapCached: 0 kB
> Active: 42168 kB
> Inactive: 296572 kB
> HighTotal: 0 kB
> HighFree: 0 kB
> LowTotal: 776156 kB
> LowFree: 412112 kB
> SwapTotal: 0 kB
> SwapFree: 0 kB
> Dirty: 440 kB
> Writeback: 0 kB
> Mapped: 34228 kB
> Slab: 10932 kB
> Committed_AS: 34868 kB
> PageTables: 668 kB
> ReverseMaps: 31360
That looks like the ext3 truncate thing.
> ...
> Maybe significant (?): does *not* happen with of=/dev/null. Does happen both
> with ext2 and ext3 on /tmp.
Are you *sure* it happens with ext2? Checked /proc/mounts to ensure that
/tmp is really ext2?
Because if you write a ton of memory to an ext3 file and then immediately
delete the file, that memory ends on on the inactive list, not in pagecache,
just as you have shown.
But ext2 won't do that, because truncate is able to take the buffers
away from the truncated pages.
I could certainly believe that the (weird) ext3 behaviour would upset
the overcommit beancounting though. Hundreds of megabytes of memory
on the inactive list but not in pagecache probably looks like anonymous
memory to the overcommit logic.
--
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/
next prev parent reply other threads:[~2002-11-15 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-15 22:21 Rene Herman
2002-11-15 22:44 ` Andrew Morton [this message]
2002-11-16 0:18 ` Rene Herman
2002-11-16 0:39 ` Andrew Morton
2002-11-16 0:59 ` Rene Herman
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=3DD578D1.1E3134A0@digeo.com \
--to=akpm@digeo.com \
--cc=contest@kolivas.net \
--cc=linux-mm@kvack.org \
--cc=rene.herman@keyaccess.nl \
/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