From: Christoph Rohland <cr@sap.com>
To: Jacek Kopecky <jacek@idoox.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: tmpfs doesn't update free memory stats?
Date: 04 May 2001 15:13:09 +0200 [thread overview]
Message-ID: <m3g0eltfyy.fsf@linux.local> (raw)
In-Reply-To: <Pine.LNX.4.33.0105041159301.31964-100000@bimbo.in.idoox.com>
In-Reply-To: <Pine.LNX.4.33.0105041159301.31964-100000@bimbo.in.idoox.com>
Hi Jacek,
On Fri, 4 May 2001, Jacek Kopecky wrote:
> I'm not in the list, please cc your replies to me.
> After upgrading to 2.4.4 I started using tmpfs for /tmp and I
> noticed a strange behavior:
>
> dd if=/dev/zero of=blah bs=1024 count=102400
> # increased my used swap space by approx. 100MiB (correct)
> rm blah
> # did not decrease it back
>
> Multiple retries showed what looked like a random behavior of
> the used swap stats. Is this a correct behavior? Should the swap
> stats be dismissed as 'unreliable'? I expected that when creating
> a 100MiB file in memory it should increase the swap (or memory)
> usage by cca 100MiB and that removing a file from tmpfs means
> freeing the memory.
It will be adjusted under memory pressure. At this time there is no
way to release swap cached pages without the potential of deadlocks.
This is not nice but the only short term solution and should not
affect anything besides stats.
Greetings
Christoph
prev parent reply other threads:[~2001-05-04 13:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-04 10:09 tmpfs doesn't update free memory stats? Jacek Kopecky
2001-05-04 13:13 ` Christoph Rohland [this message]
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=m3g0eltfyy.fsf@linux.local \
--to=cr@sap.com \
--cc=jacek@idoox.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