Re: preferred disk api for high bandwidth sample reading
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