Subject: mount_mfs (with mount_null) won't reclaim space
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 03/08/2002 20:30:18
It seems like every time I create a file then delete it, mount_mfs doesn't
reclaim the space.
I could continue to create 1000 byte files and delete, but the space was
used more and more.
You can see below that I am only using 1445 KB but mfs thinks it has
4821KB.
# ps auw -p 2023
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 2023 0.0 5.4 5580 5096 ?? Ss 9:17AM 0:00.83 mount_mfs -s 5m swap /var/tmp
# du -sk /var/tmp/
1445 /var/tmp/
# df | grep /var/tmp
mfs:2023 4927 4821 -141 103% /var/tmp
/var/tmp/etc 4927 4821 -141 103% /etc
/var/tmp/tmp 4927 4821 -141 103% /tmp
/var/tmp/var/log 4927 4821 -141 103% /var/log
/var/tmp/var/run 4927 4821 -141 103% /var/run
/var/tmp/var/db 4927 4821 -141 103% /var/db
/var/tmp/var/cron 4927 4821 -141 103% /var/cron
/var/tmp/etc 4927 4821 -141 103% /etc
/var/tmp/home 4927 4821 -141 103% /home
/var/tmp/root 4927 4821 -141 103% /root
This was setup like:
swap /var/tmp mfs rw,-s=5m 0 0
and:
mount -t null /var/tmp/root root
I had added a bunch of packages, like ogg vorbis, but the kernel said I
was out of space when I tried to copy a big ogg file. Then I deleted all
my installed packages, but the used space stayed the same.
Any ideas on how to troubleshoot this?
Is there a more appropriate mailing list?
Has anyone noticed problems or had success with mount_null on mount_mfs?
Also, I notice that "systat vmstat" shows cd0 going up but md0 is always 0
when I access /var/tmp. Is mfs related to md0? (I was hoping that the cd0
wouldn't be accessed when I use /var/tmp.)
Thanks,
Jeremy C. Reed
p.s. My cd-based system is fun! My son is using it to run netscape (remote
X) to visit pbskids.org. Loading apps (like X) from CD is slow the first
time, but fast later due to the filesystem buffering.