[Top] [All Lists]

Re: howto preallocate to minimize fragmentation

To: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
Subject: Re: howto preallocate to minimize fragmentation
From: Andrew Ho <andrewho@xxxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 11:31:49 -0400
Cc: Eric Sandeen <sandeen@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <4332C636.9070509@xxxxxxxxxxxxxx>
References: <43329839.2070005@xxxxxxxxxxxxxx> <4332A22B.6070708@xxxxxxx> <4332BFCC.8050803@xxxxxxxxxxxxxx> <4332C248.70503@xxxxxxx> <4332C636.9070509@xxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729
Ying-Hung Chen wrote:

pre-allocation before writing would still be your best bet.  If you
pre-allocate on a fresh fs before writing, you should get very large

does this mean, if I create a 2GB file via dd (not sparse file), when i
'overwrite' to the same file, it will stay there? (same physical place)
Other things you could try; if you put each file in its own dir, it will
tend to go into its own allocation group.

You could make the filesystem with allocation groups sized at 2GB

I just thought of wild idea... since i am creating 90 files, what if i
just create 90 allocation group via -d agcount=90, does this make sense
or it won't work at all?



From reading your emails, I don't think that it is the problem of the fragmentation. I understand that we don't need to defragment the filesystem while we are working on the unix/linux. I don't need to deframentation a raid drive, which the size
is 2TB, with XFS filesystem.

I guess while you played your video file, which was 2GB. Your video images were not smoothly shown on the player. It gave you an impression that there was a problem on the filesystem.

I don't know whether your 200GB drive is an ATA, SATA or SCSI drive.
A fast SCSI drive is the best drive for the video stream. If you can stipe several SCSI drives
into a volume, and the performance will be improved.

I hope that I can help you to solve your problem.


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