HAL overloads and VM
HAL overloads and VM
- Subject: HAL overloads and VM
- From: Ethan Funk <email@hidden>
- Date: Tue, 11 Oct 2005 15:11:13 -0700
Just thought I would let everyone on the list know that mlock-ing the
audio ring buffers used in my render-callbacks has eliminated all HAL
overloads and audio drop outs in my application. It's very solid
now... I no longer live in fear of a studer or skip. The only
exception is when I plug/unplug power from a laptop. This always
causes a HAL overload, due I would expect to the processor changing
speeds to save power.
I know Apple's VM engine is supposed to be able to "learn" memory usage
trends in an application, but my theory is that the VM engine has no
way of knowing or expecting a sequential read through a ring buffer to
get ready (page in) blocks of memory back at the beginning of the
buffer as the read approaches the end. Just a guess. mlock works
regardless of the cause of the VM glitches.
Ethan...
_______________________________________________
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