Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 11:34:10 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   block and fragment sizes with newfs
Message-ID:  <20030423163410.GA25333@grumpy.dyndns.org>

next in thread | raw e-mail | index | archive | help
Playing with UFS on CF (Compact Flash) cards where I'm concerned about
wear and tear, and maximum efficiency.

It would seem "newfs -b 4096 -f 512" would result in fine grained
control over each and every 512 byte block on my CF card and eliminate
writes to multiple blocks when a write to a single block would do.

The above creates a lot of "superblock backups", leading me to suspect
what I save in fragment size == block size, I lose in overhead to track
all these fragments.

The default is "-b 16384 -f 2048", which if I understand correctly means
the minimum read/write to the filesystem will be 2048 bytes?

A middle of the ground compromise is "-b 8192 -f 1024".

What's the deal?

-- 
David Kelly N4HHE, dkelly@hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030423163410.GA25333>