Re: High bandwidth disk management techniques
Re: High bandwidth disk management techniques
- Subject: Re: High bandwidth disk management techniques
- From: Craig Hansen-Sturm <email@hidden>
- Date: Wed, 4 May 2005 15:40:22 -0700
How to get as much contiguous allocation as possible?
I'm curious about this too.
Doug
This will vary from FS to FS, but HFS+ is generally very good about
giving you a non-fragmented file without doing anything special.
However, you can try:
fst.fst_flags = F_ALLOCATECONTIG|F_ALLOCATEALL;
fst.fst_length = length;
fcntl(fd, F_PREALLOCATE, &fst);
Also note that HFS+ has a builtin defragmentation failsafe - if a
file has 5 extents or more - the next open will trigger a
defragmentation of that file (this, in itself, might effect your
performance!)
--craig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden