public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ramfs isn't releasing deleted file blocks?
@ 2001-11-08 15:06 Padraig Brady
  0 siblings, 0 replies; only message in thread
From: Padraig Brady @ 2001-11-08 15:06 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-08 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-08 15:06 ramfs isn't releasing deleted file blocks? Padraig Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox