Date: Mon, 10 Dec 2001 10:46:40 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Maxim Sobolev <sobomax@FreeBSD.ORG> Cc: Sheldon Hearn <sheldonh@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/newfs newfs.8 Message-ID: <200112101846.fBAIkee47815@apollo.backplane.com> References: <200111271953.fARJrFc88452@freefall.freebsd.org> <3C10F171.FEE996EB@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
:This is very questionable topic, at least from the space efficience
:POV. For example, I found that on my development system using 16:2
:(5-CURRENT, /usr/ports + /usr/src) some 300MB are wasted in fragments
:compared with the same partition formatted with 8:1. I would suggest
:to extend this para explaining that 16:2 could result in a huge space
:wastage when there are large number of small files on the fs (such as
:/usr/ports or /usr/src) and 8:1 is better suited for such cases.
:
:
:-Maxim
Interesting. I just ran a test using VN for /usr/ports:
Filesystem 1K-blocks Used Avail Capacity Mounted on (512/4K)
/dev/vn0c 3943361 114700 3513193 3% /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on (1K/8K)
/dev/vn0c 4065694 154837 3585602 4% /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on (2K/16K)
/dev/vn0c 4129310 251300 3547666 7% /mnt
So /usr/ports alone will eat 100MB of additional disk space on a
2K/16K filesystem, which is quite significant.
/usr/src has these characteristics:
Filesystem 1K-blocks Used Avail Capacity Mounted on (1K/8K)
/dev/vn0c 4065694 1002597 2737842 27% /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on (2K/16K)
/dev/vn0c 4129310 1046374 2752592 28% /mnt
/usr/src isn't so bad in my test, only 44 MBytes larger, which makes
sense because the average file size is larger then 1K anyway (so
2K/16K wins over 1K/8K for files > 1K and < 2K in size).
I didn't think /usr/ports would lose so badly. It is definitely food
for thought. But I also think that /usr/src validates our prior
discussion for 'general purpose' filesystems.
-Matt
Matthew Dillon
<dillon@backplane.com>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112101846.fBAIkee47815>
