From: "Michał Kazior" <kazikcz@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [BUG] Possible cache memory leak.
Date: Fri, 21 Sep 2007 12:00:41 +0200 [thread overview]
Message-ID: <20070921100041.GB19050@kazikbox> (raw)
Hi,
I've discovered a strange thing lately. My memory is being sucked out
when doing (I suppose) _a lot_ of stat() on the file system. I got left
once with ~30MB of ram (of 512 in total) which made my system trash
like hell. You might try doing the following to reproduce the effect:
$ echo 1 > /proc/sys/vm/drop_caches
$ vmstat # write down the result
$ du -s -x /lots/of/files # keep it running for a minute
$ echo 1 > /proc/sys/vm/drop_caches
$ vmstat # write it down too
The latter vmstat should report less memory then the previous one.
(sum up free+buff+cache) Is this an expected behaviour ? If yes,
please explain.
The memory can be magically freed by umount-ing the partition that was
scanned or by deleting the files that were stat()-ed. However, one
cannot simply umount "/".
Note: Make sure you point 'du' to a place where you have dozens of
files, so it can keep it running for a minute or more.
I can confirm that to be an issue to 2.6.23-rc6 and 2.6.23-rc7.
A friend of mine reports that 2.6.22.5 produces same results.
Tested on jfs and ext3.
Regards,
Michał Kazior.
PS. I'm not subscribed to the list, so CC me please.
next reply other threads:[~2007-09-21 10:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 10:00 Michał Kazior [this message]
[not found] <95NCx-7eE-13@gated-at.bofh.it>
2007-09-21 14:47 ` Bodo Eggert
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=20070921100041.GB19050@kazikbox \
--to=kazikcz@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®