• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: High bandwidth disk management techniques
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >High bandwidth disk management techniques (From: Mark Gilbert <email@hidden>)
 >Re: High bandwidth disk management techniques (From: Doug Wyatt <email@hidden>)
 >Re: High bandwidth disk management techniques (From: Herbie Robinson <email@hidden>)
 >Re: High bandwidth disk management techniques (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Output Buffer
  • Next by Date: Re: Does AudioConverter use dithering?
  • Previous by thread: Re: High bandwidth disk management techniques
  • Next by thread: Re: High bandwidth disk management techniques
  • Index(es):
    • Date
    • Thread