Date: Thu, 12 Aug 1999 10:24:30 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: Ollivier Robert <roberto@keltia.freenix.fr> Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Help with understand file system performance Message-ID: <Pine.GSO.3.96.990812102303.1833A-100000@sol.cs.binghamton.edu> In-Reply-To: <19990812133648.A64754@keltia.freenix.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Aug 1999, Ollivier Robert wrote: > According to Poul-Henning Kamp: > > Yes. The minimum directory size is the fragsize of the filesystem, > > I'm afraid it is not the case... > > 214 [13:35] root@tara:/src# df . > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s2d 1375362 602742 662592 48% /src > 215 [13:35] root@tara:/src# dumpfs /dev/rda0s2d|more > magic 11954 time Thu Aug 12 13:34:13 1999 > id [ 360d5f59 20984fb4 ] > cylgrp dynamic inodes 4.4BSD > nbfree 68880 ndir 22396 nifree 217288 nffree 29178 > ncg 44 ncyl 694 size 1419379 blocks 1375362 > bsize 8192 shift 13 mask 0xffffe000 > fsize 1024 shift 10 mask 0xfffffc00 > ^^^^ > 216 [13:35] root@tara:/src# ll > total 5 > drwxr-xr-x 2 roberto staff 512 Sep 26 1998 CVS/ > ^^^ The fsize is the number of bytes in a fragment. Even if your file is 1 byte, that file needs 1024 bytes to store. However, the byte count is still one byte. In your example, the byte count is 512 bytes. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990812102303.1833A-100000>