• 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: preferred disk api for high bandwidth sample reading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preferred disk api for high bandwidth sample reading


  • Subject: Re: preferred disk api for high bandwidth sample reading
  • From: "Ross Bencina" <email@hidden>
  • Date: Mon, 4 Jan 2010 14:47:42 +1100

Paul Davis wrote:
this is highly subject to the
specific filesystem you are using and specific settings of the kernel
buffer cache mechanism, whose semantics vary between (say) Darwin (OS
X), Solaris, Linux and FreeBSD.

I'm interested in an answer to the original question too.

On Windows you can set flags to disable OS level caching/buffering when you open a file handle (with the restriction of being required to perform IO in page aligned blocks). That gives you the ability to implement your own caching/buffering/prefetching based on knowledge of the file types and read/write behavior. That's what I do with AudioMulch on Windows, but on OSX AM is not so optimised at present. The other thing is to use some kind of scatter gather i/o so that the OS level disk scheduler can queue up multiple i/o requests with the disk so that the head path accross the disk can be optimized.

I havn't looked into the best APIs for doing this on OSX but I'd be interested to know. Back in the day I remember Mac OS7 had good asynchronous scatter-gather file io APIs.

Ross.



===================================
Perform, Compose, Mangle
AudioMulch 2.0 modular audio software for PC and Mac
http://www.audiomulch.com

_______________________________________________
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


  • Follow-Ups:
    • Re: preferred disk api for high bandwidth sample reading
      • From: Paul Davis <email@hidden>
    • AU string parameters / properties -> Presets
      • From: Scott Burgess <email@hidden>
References: 
 >Re: preferred disk api for high bandwidth sample reading (From: tahome izwah <email@hidden>)
 >Re: preferred disk api for high bandwidth sample reading (From: Paul Davis <email@hidden>)
 >Re: preferred disk api for high bandwidth sample reading (From: tahome izwah <email@hidden>)
 >Re: preferred disk api for high bandwidth sample reading (From: Living Memory <email@hidden>)
 >Re: preferred disk api for high bandwidth sample reading (From: Brian Willoughby <email@hidden>)
 >Re: preferred disk api for high bandwidth sample reading (From: Paul Davis <email@hidden>)

  • Prev by Date: Re: preferred disk api for high bandwidth sample reading
  • Next by Date: AU string parameters / properties -> Presets
  • Previous by thread: Re: preferred disk api for high bandwidth sample reading
  • Next by thread: AU string parameters / properties -> Presets
  • Index(es):
    • Date
    • Thread