Re: Page faults hurt sound quality
Re: Page faults hurt sound quality
- Subject: Re: Page faults hurt sound quality
- From: William Stewart <email@hidden>
- Date: Tue, 14 Oct 2003 10:41:52 -0700
On 13/10/2003, at 11:35 PM, Philippe Wicker wrote:
By wiring your sound buffers you are just making it more likely that
your program's code gets paged out instead of the buffer, which is
equally bad or worse. And if you wired your program in memory then it
might page out a framework you need. Wiring more and more memory is
just painting yourself in a corner. By the time the system needs to
page, if it chooses one of your buffers it is because they are cold.
Something will have to give.
So it appears that a good solution is to anticipate the use of the
memory and to touch the pages.
Thus the suggestion of using AudioUnitReset to do that. We will ensure
that we tell host apps to make sure they either call this - which
should occur of course for "semantic" reasons if an AU has been used
and is muted for example, as well as taking some steps to "preroll" a
chain of AU's that are about to be used for the first time...
Bill
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.