ramfs leak

From: Padraig Brady (padraig@antefacto.com)
Date: Thu Nov 08 2001 - 06:35:32 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:17 EST