[Top] [All Lists]

Re: howto preallocate to minimize fragmentation

To: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
Subject: Re: howto preallocate to minimize fragmentation
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Thu, 22 Sep 2005 07:23:07 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <43329839.2070005@xxxxxxxxxxxxxx>
References: <43329839.2070005@xxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
Ying-Hung Chen wrote:
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?

See the xfsctl man page from xfsprogs, specifically XFS_IOC_RESVSP

creating a sparse file will not help with fragmentation, unfortunately.


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