From d70399e3c4b3a31dc4d23a7fd2a496d90cce9b9a Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 9 Sep 2007 21:26:37 +0000 Subject: [PATCH] Scatter objects more far from each other to reduce disk fragmentation. This greatly helps multi GB size file write performance, especially after writing tens of thousands smaller files. --- libntfs-3g/lcnalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/lcnalloc.c b/libntfs-3g/lcnalloc.c index d9a13f9b..df834750 100644 --- a/libntfs-3g/lcnalloc.c +++ b/libntfs-3g/lcnalloc.c @@ -51,7 +51,7 @@ * the update of the mapping pairs which converges to the cubic Faulhaber's * formula as the function of the number of extents (fragments, runs). */ -#define NTFS_LCNALLOC_BSIZE 1024 +#define NTFS_LCNALLOC_BSIZE 8192 #define NTFS_LCNALLOC_SKIP NTFS_LCNALLOC_BSIZE static void ntfs_cluster_set_zone_pos(LCN start, LCN end, LCN *pos, LCN tc)