summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2011-05-26 18:22:49 +0000
committermckusick <mckusick@FreeBSD.org>2011-05-26 18:22:49 +0000
commit9a5935957db9056a8b9c474edaeda0fff476a6db (patch)
tree4e03bb7313063899181e51d76671be5ef598aca8 /sbin/newfs
parentd7214daa609442aa65fdbb054db56a3ffc1ee75a (diff)
downloadFreeBSD-src-9a5935957db9056a8b9c474edaeda0fff476a6db.zip
FreeBSD-src-9a5935957db9056a8b9c474edaeda0fff476a6db.tar.gz
Raise the default blocksize for UFS/FFS filesystems from
16K to 32K and the default fragment size from 2K to 4K. The rational is that most disks are now running with 4K sectors. While they can (slowly) simulate 512-byte sectors by doing a read-modify-write, it is desirable to avoid this functionality. By raising the minimum filesystem allocation to 4K, the filesystem will never trigger the small sector emulation. Also, the growth of disk sizes has lead us to double the default block size about every ten years. The rise from 8K to 16K blocks was done in 2001. So, by the 10-year metric, the time has come for 32K blocks. Discussed at: May 2011 BSDCan Developer Summit Reference: http://wiki.freebsd.org/201105DevSummit/FileSystems
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.h b/sbin/newfs/newfs.h
index 8c826b1..326c518 100644
--- a/sbin/newfs/newfs.h
+++ b/sbin/newfs/newfs.h
@@ -47,8 +47,8 @@
* sectorsize <= DESFRAGSIZE <= DESBLKSIZE
* DESBLKSIZE / DESFRAGSIZE <= 8
*/
-#define DFL_FRAGSIZE 2048
-#define DFL_BLKSIZE 16384
+#define DFL_FRAGSIZE 4096
+#define DFL_BLKSIZE 32768
/*
* Cylinder groups may have up to MAXBLKSPERCG blocks. The actual
OpenPOWER on IntegriCloud