4k sectors

Charles Swiger cswiger at mac.com
Fri Nov 29 03:22:38 UTC 2013


Hi--

On Nov 28, 2013, at 1:51 PM, Adam Vande More <amvandemore at gmail.com> wrote:
> Is there an easy method to find out the space wasted by using 4k vs 512?

Internal fragmentation wastes half of the smallest logical sector size (ie, 512 bytes in 8 fragments per 4K block is or was typical for UFS) times the number of files on the filesystem.  The hardware sector size isn't directly relevant, unless you've changed the filesystem tuning to match up logical sector size with the physical sector size...although doing such is usually beneficial.

Regards,
-- 
-Chuck



More information about the freebsd-questions mailing list