xfs
[Top] [All Lists]

howto preallocate to minimize fragmentation

To: linux-xfs@xxxxxxxxxxx
Subject: howto preallocate to minimize fragmentation
From: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 19:40:41 +0800
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Hi there,

we are storing realtime streaming data (multiple/random writes) in our
Linux system with XFS filesystem and suffering from heavy fragementation
(> 90%) . I am wondering what's the best way to reallocate files (say
2GB files) before using the file system.

we are creating the 'quick' sparse file like the following: (is this
cause the problem?)

/bin/dd if=/dev/zero of=/mnt/file.ivf bs=1M seek=2000000 count=1

We are using Linux 2.6.x kernel with XFS filesystem

can anyone help?

Thanks,

-Ying


<Prev in Thread] Current Thread [Next in Thread>