Re: file system defragmentation

Chris Wedgwood
2006-07-17T19:09:03Z

On Mon, Jul 17, 2006 at 12:36:09AM -0700, Cosmo Nova wrote:

> If I have a DVR system of 16 channels. They keep writing data to the
> disk in pieces of video files.

I did some work for someone who does a similar thing (they write 96
channels in parallel and have to be able to do read back up to 32 of
them at the same time of something).

By default concurrent writes into the same directory will cause the
files to get badly interleaved, and trying to get one file per-ag
doesn't work so well if the agcount < n-files.

I ended up getting them to change their code to preallocate and AFAIK
it works very well now (you can throw away any space you over allocate
when you're closing the file too).