From: Padraig Brady <padraig@antefacto.com>
To: linux-kernel@vger.kernel.org
Subject: ramfs isn't releasing deleted file blocks?
Date: Thu, 08 Nov 2001 15:06:07 +0000 [thread overview]
Message-ID: <3BEA9F5F.3050204@antefacto.com> (raw)
When I remove files from a ramfs the space is not reclaimed?
What am I doing wrong? Details below.
thanks,
Padraig.
------------
host:/root# uname -a
Linux host 2.4.12-ac3 #5 Fri Oct 19 12:52:10 IST 2001 i686 unknown
host:/root# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 58997 47112 8839 84% /
ramfs 63524 3360 60164 5% /var
host:/root# dd if=/dev/zero count=20000 bs=1024 of=/tmp/leak
20000+0 records in
20000+0 records out
host:/root# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 58997 47112 8839 84% /
ramfs 63524 23360 40164 37% /var
host:/root# rm /tmp/leak
host:/root# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 58997 47112 8839 84% /
ramfs 63524 23360 40164 37% /var
host:/root# mount
/dev/root on / type ext2 (ro)
proc on /proc type proc (rw)
ramfs on /var type ramfs (rw,noexec)
host:/root# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 130097152 48156672 81940480 49152 2990080 16277504
Swap: 0 0 0
MemTotal: 127048 kB
MemFree: 80020 kB
MemShared: 48 kB
Buffers: 2920 kB
Cached: 15896 kB
SwapCached: 0 kB
Active: 1760 kB
Inact_dirty: 17104 kB
Inact_clean: 0 kB
Inact_target: 26200 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 127048 kB
LowFree: 80020 kB
SwapTotal: 0 kB
SwapFree: 0 kB
reply other threads:[~2001-11-08 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3BEA9F5F.3050204@antefacto.com \
--to=padraig@antefacto.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