Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

HOWTO: Low DPC latencies (<100 us) on bootcamped Macbooks (Pro)

Here is a small HOWTO for getting the lowest possible DPC latencies (<100 us) on bootcamped Macbooks Pro ( late 2008):

Disclaimer: I did all tests on my late 2008 Macbook Pro Unibody 2.8 GHz model with NVidia chipset and graphic. Most of the following suggestions should apply to standard Macbook models and likely older generation as well.

First of all Intel Speedstep can lead to dropouts and higher DPC latencies on small load! Unfortunately all tools that are supposed to manually switch Speedstep off don't seem to run on the late Macbooks (Pro) while on OS X you can use "Coolbook".

Your only way to make sure your processor is clocked high enough and not dynamically switching is to put up a constant load (like running your DAW pretty hot or running Prime95 at "Idle/Lowest" process Priority in the background). I will keep investigating if I can find a tool to switch Speedstep off.

Most importantly (to get rid of really bad DPC latency spikes):

Kill the process "KBDMGR.EXE"!

That's Apple's driver for controlling brightness and keyboard lighting via the function keys and setting tap options for the trackpad. It seems to have broken multithreading!

You can also change the CPU affinity of KBDMGR.EXE to CPU1 (not CPU0!) which will help decreasing DPC Latencies alot, but there will still be Audio dropouts.

Here's a small toolkit I put together that allows you to conviniently enable/disable Apple's "Boot Camp" tray application (KBDMGR.EXE) via an icon link and/or keyboard shortcut. Optionally it will switch the function of the F-Keys automatically for you depending on whether Boot Camp is loaded or not.

Furthermore it automatically turns Boot Camp's CPU priority to "Idle" and CPU affinity to CPU1 in order to turn down the bug induced DPC Latencies and prevent dropouts with Windows sounds and Media Player playback. Professional Audio users will find that only turning off Boot Camp will allow low audio latency usage. Installation instructions are included in the README.TXT for your convinience. 😉

Boot CampED download page

Direct Download:

Boot CampED.zip - 3.3 kb

Turn off the Broadcom 802.11N WLAN driver via Device-Manager or update to the latest drivers via Microsoft Update Catalog.

Like on OS X the Airport module can lead to audio dropouts. The DPC Latencies produced by the Broadcom driver are less regular than the KBDMGR thing, alot higher in value. Best thing is to try for your own needs.

Update:Meanwhile a new Broadcom drivers was published via Microsoft's Update Catalog named "Broadcom - Network - Broadcom 4322AG 802.11a/b/g/draft-n Wi-Fi Adapter " (4322 is the chip used). This one comes with both low DPC latencies and finally the ability to use the full rate upto 300 mbit/s. Go get it! For safety you might still want to turn WLAN off during critical audio work though.

Change the graphic-card driver to "Standard VGA Driver" via Device-Manager or use RIVATUNER to enforce a fixed clock-rate and performance mode.

Update:The dynamic clock-rate switching happening with NVidia drivers in order to save power and keep temperatures low leads to extreme DPC spikes for each switch and constantly high DPC latencies when it settles in low performance 2D mode. RIVATUNER's "Enforce Performance Mode" option can be used to set the card to a fixed clock-rate. I recommend using "Low Power 3D" for audio work.

User of XP might think that they don't need this, but be aware that on XP the NVidia driver keeps running at highest clock-rates in "Performance 3D Mode" all the time. Via RIVATUNER you can switch to "Low Power 3D".

Turn off the ACPI compliant Battery driver via Device-Manager

This driver polls the battery for its current load status and produces a small, single, short spike exactly every 15 seconds. In my own tests I found that it doesn't seem to affect low latency audio performance. Furthermore turning it off will remove monitoring of your current battery status. But if you are running on power-chord anyway and want to make absolutely sure you can turn it off.

All other devices don't add much if anything to DPC latencies, but can savely be turned off if you don't need them (like Nvidia LAN, Bluetooth, Onboard High Definition Audio).

Attention: Removing the Battery while the power chord is connected results in permanently reduced CPU clock (downto the lowest clock setting possible). According to Apple this is done to prevent overloading the power-supply during heavy load as it needs the assistance of the battery from time to time.

Macbook Pro 2.8 (Unibody), Mac OS X (10.5.6)

Posted on Jan 22, 2009 3:43 AM

Reply
12 replies

Jan 22, 2009 4:51 AM in response to T1mur

I'd like to underline that these are workaround. Now that the Broadcom drivers are fixed it is up to Apple to fix KBDMGR and to get the NVidia drivers fixed!

Furthermore it seems as if only Vista 32-bit and OS X are heavily affected by Intel Speedstep, Vista 64-bit and Windows 7 (32/64) work alot better in this regard. XP is a mixed bag.

Here are some screenshots to prove that the workarounds do help:

DPC Latency before applying the workarounds:

User uploaded file

DPC Latency Vista 64-bit (Idle, Speedstep enabled) after applying the workarounds:

User uploaded file

DPC Latency Windows 7 64-bit (Idle: Speedstep enabled) after applying the workarounds:

User uploaded file

As you can see Vista's DPCs run well below 100 us once everything is optimized, Windows 7 is a bit worse, XP is even better. But practically you get the same results when using all three for professional Audio work.

Message was edited by: T1mur

Jan 22, 2009 6:43 AM in response to Inur

You should not use the term "freeze" when you mean audio dropouts, because that sounds as if your computer is frozen/hanging.

What exactly did you do then and in what application did you experience the audio dropout?

Did you kill KBDMGR or just change its affinity?

Did you enforce "3D" mode via Rivatuner and made sure that it's working properly (Rivatuner features a Monitoring tool that shows the current clock-rates).

Let DPC Latency checker run in the background and once you experience a dropout, make a screenshot of what DPC Checker reads.

Jan 22, 2009 7:07 AM in response to T1mur

Oh Im sorry. I am having frezzes - frozen - hanging ... with the only solusion to do a hard reboot.

Actually, audio dropouts was kind of solveld by disabling the a-band from the old wireless driver - but adding your tips surely optimized the DPC Latency.

You posted these tips (a link to this forum) as a solusion to the problem we are having in this forum: http://discussions.apple.com/thread.jspa?messageID=8852505#8852505 regarding hard freezes in Vista (not only audio dropouts).

I just wanted to tell everyone, that I had a hard freeze while the DPC Latency was "green" and while browsing this page 🙂

I also noticed that scrolling in a browser(firefox, IE or Chrome) results in "red bars" all over. Should it do that?

Apr 19, 2009 1:21 AM in response to T1mur

The following screenshots should help you find the options in Rivatuner that allow you to set the graphic-card to a fixed performance level.

First you need to unlock the option:

User uploaded file

Then you go to the System Tweaks settings:

User uploaded file

User uploaded file

Then you have to set a desired performance level (I advice to use lowpower 3D unless you want to play some performance 3D games):

User uploaded file

Apr 25, 2009 10:18 AM in response to T1mur

I think this is the latest Broadcom Wireless driver. http://ftp.us.dell.com/network/R212337.EXE

I tested it with the DPC Latency checker and it produces very little spike at all. I also hear no crackles in the audio while running this driver. This is under Windows 7 64bit.

http://farm4.static.flickr.com/3334/3473119143_f82b82e264.jpg?v=0

Message was edited by: RyanNaz

HOWTO: Low DPC latencies (<100 us) on bootcamped Macbooks (Pro)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.