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.

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:
DPC Latency Vista 64-bit (Idle, Speedstep enabled) after applying the workarounds:
DPC Latency Windows 7 64-bit (Idle: Speedstep enabled) after applying the workarounds:
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

Similar Messages

  • Headphones not working in bootcamp macbook pro 13"

    i install windows vista business in bootcamp, Macbook pro 13" 2009. The headphone is not working and the speaker is really low. Anyone have the same problem? thank you

    Have you installed the Boot Camp drivers in Windows from the Mac OS X Leopard DVD? If not please try that. Also can you increase or decrease the sound in Windows? Which is the sound output device in the Windows?

  • Bootcamp: Macbook Pro 13' late 2011 won't boot from USB, no superdrive.

    Some months ago I replaced the superdrive in my Mac with a SSD. This resulted in my Boot Camp not working, therefore I deleted it. The thing is that I have been wanting to install Windows again but it just seems impossible. I find myself pretty confident at a computer, so it frustrates me really.
    The thing is that no matter what I do, everytime I boot up from windows installation USB, Windows 7 and 8, or something like it, it gives me "No bootable device - insert boot disk and press any key". I searched everywhere to solve this problem and nothing helped. I tried different images, even 32bit of both Windows 7 and 8. Even tried with my original Windows 7 64bit dvd. There is no more solutions out there on the internet I can find, so therefore I'm shouting out for you guys!
    Here is what I already tried.
    - Altered Bootcamp so it would create a bootable USB from a windows image. Worked like a charm, except that it would boot up to "No bootable device...". And the USB didn't show up in the boot menu pressing alt when booting. Tried four different usbs and the same story with all of them.
    - Tried with a SATA-USB connector to a 250gb harddrive, "No bootable device...".
    - Tried to make my own bootable USB on a Windows-computer with bootsect.exe/nt60 and everything, also Microsoft own program for the purpose, "No bootable device...".
    - Tried with making a partition on both my HDD and SDD in the Macbook to boot from, "No bootable device...".
    - Tried transfering all the files of the image to the created boot camp-partition, "No bootable device...".
    - Reset PRAM with cmd+alt+p+r, "No bootable device...".
    - Installed rEFlt, because the standard boot menu would not recognize anything else than my Macintosh SD. It did work so I could see my windows devices but still didn't boot, "no bootable device......".
    - Tried to boot with rEFlt with all the before mentioned methods.
    - I even desperially installed Windows from a pc on the HDD and tried to boot it on mac.... same **** story, "No bootable device...".
    I really hope that someone can figure this out, because I'm ripping my hair out. I simply can't get this **************** to boot anything Windows .

    Can I rebuild the USB flash drive using the discs that came with the new Macbook and if so, would they be the resulting USB flash drive be backwards compatible with my older Macbook Pro?
    Yes. The version of Mac OS X that shipped with the new MacBooks and MacBook Pros is newer (even though it's still numbered 10.5.5) than the version of 10.5.5 that's available from software update. You will have to startup the MacBook from the original install disk that came with it and choose to install Mac OS X onto the USB drive. NOTE: If you want to keep any software or files that were already saved on the drive, choose only "Archive and Install" or "Update" options. (Not the "Erase and Install" option.) In my experience, though, the only option was to "Archive and Install".
    -Doug

  • How to keep display on in low light for windows 8 installed on macbook pro retina display

    I am using macbook pro retina display 15". The Screen switches off in Windows 8 in low light conditions.
    How do i resolve this issue?

    Hi,
    Thanks for the reply,
    But I already knew how to manage GPO of a remote computer via MMC, which I have even explained about it in my query. 
    I'm looking for the possibilities and methods of using GPMC to Manage GPO of a remote computer.

  • Can't connect external monitor to Windows 7 bootcamp Macbook Pro 15 - ATI 6770

    I recently puchased a Macbook pro 15 in 2012.  I have bootcamp set up and am running windows 7 home on the bootcamp partition.  When in windows I am unable to use an external monitor or overhead projector.  I have updated all of the ATI drivers and have fiddled with screen resolutions and display refresh rates to no avail.  I am using a cheapo mini displayport to VGA adapter which I have confirmed works while I am using the mac side of the machine. 
    Unfortunately I have to use windows while at work and using a projector to display data is essential.
    I am out of ideas at this point --  Help - - Please!!

    I was hoping some of the multi/monitor people would show up and help you but I guess they missed it.
    Have you gone into the Properties of the video drivers (via the Device Manager) and let it Update Driver either through the internet or migrate to the newer Boot Camp video drivers you recently downloaded?
    The only other thing I can suggest is to completely delete the video drivers then reinstall them manually either through the Programs and Features control panel or in the Device Manager/ Video drivers and see if it "takes".
    Don't forget you do have an Apple Software Updater in Windows also. It updates the Windows support software from Apple. (Boot Camp)
    Sorry I can't help more........

  • Bootcamp , Macbook pro 650GT , 120hz display?

    Hi,
    I would like to get rid of my pc and use the newest macbook pro 15inch for both windows and mac , but my question is while running bootcamp on my macbook pro would I be able to use it at 120hz on a 120hz display? has anyone ever done this
    thanks

    Hi pitchfork,
    Maybe you should try asking this in the Boot Camp Forum, where folks more familiar with Windows might see it. Just a thought.

  • How do make sure a trojan how be 100% remove from my Macbook pro?

    3 days a go my Kaspersky security had found a two trojans on my Macbook pro I use Kaspersky security on my system. I all so put up a screenshot from my Kaspersky reports to show you guys where the two trojans where found on my system. But I still believe the trojans or hiding deep in my system now because every time I do a full scan every night when the scan is nearly finished a folder pops up on my desktop call boot OX stays onscreen for 2 seconds and disappears again. What can I do to make sure my Mac is 100% clean?

    Those aren't trojans. Those are files your AV software cannot identify, so it labels them as infected. This term relates to a virus, not a trojan.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express or Dr. Web Light, both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)

  • Low battery life, heat or noise with Macbook pro? SOLUTION HERE

    Low Battery?
    Warm unit on Idle?
    Loud fan?
    Likely solution is here..
    I have a new 15" and had these issues, found the only working solution in the thread below, safe and easy to use. If you are worried do a
    time machine backup before doing this.
    Go here
    https://discussions.apple.com/thread/3191543?start=0&tstart=0
    Read post #2, put the command into your Terminal (Found inside launchpad)
           - That command is the following "sudo launchctl unload -w /Library/LaunchDaemons/com.citrix.agadminservice.plist"
    type password when asked ( you wont see any characters but it will be accepted when pressing enter)
    Restart, battery, heat and noise issue is completely solved, lion is fixed.
    You now have a very high quality product, that functions like it should. Macbook Pro still owns.
    Hope this helps everyone out.

    Same problem with shortened battery life here with 10.6.2 (2009 unibody 15" MBP 2.53 GHz.) Shutting down and removing the battery seems to have brought fully charged battery life back from less than 2 hours to over 5 again. Didn't bother holding down the power button with the battery out though.
    A few notes:
    1. Prior to the shut down + battery removal, I had noticed unusual warmth despite the CPU being only lightly loaded. Activity monitor showed no app using more than 4% of the CPU, with just a few apps running (Safari, Mail, iCal, Finder).
    2. Months ago, just a PRAM reset seemed to fix the problem, possibly with 10.6.1 or 10.6. Can't remember for sure. But PRAM reset doesn't help any more with 10.6.2.
    3. I have never reset the SMC.
    4. I don't recall this problem happening with any of the 10.5 releases. Just with 10.6.x.
    5. The bottom of the MBP's enclosure is cool again after the shutdown + battery removal.
    6. I am also running 10.6.2 on a 2008 aluminum iMac (20" 2.4 GHz) and haven't noticed any unusual temperatures, but it's much harder to tell. And of course, there's no battery life to measure.
    I'll see if the problem returns again, but it really seems like a Mac OS X problem instead of a firmware or runaway app problem. Maybe some daemon is stuck in a busywait loop or something?

  • Drivers for W7 on Bootcamp (Macbook pro 15 i7 2.0GHz 2011)

    I bought a new macbook pro 15 inch i7 2.0GHz 2 month ago and I installed Windows x64 on Bootcamp. I have no DVD driver from Apple because my Macbook is refurbished. I hope you have found drivers for wifi, sound and bluetooth. I have installed a driver for wifi found on Broadcom BCM43xx but no results, no connection was found.
    I hop you can help me
    Sorry for my english, I'm french

    Please read the BootCamp Install Guide http://manuals.info.apple.com/fr_FR/boot_camp_install-setup_10.7_f.pdf
    With OSX 10.7 Lion there are no longer any OSX DVDs but instead the BootCamp Assistant allows the download of the "Windows Support Software" which are in fact the needed Windows drivers.
    Stefan

  • Bootcamp MacBook Pro 2009 Windows 8.1

    Hey Guys
    I have a MacBook Pro 2009 which has Mavericks installed. I did have Windows 7 installed also but did a complete upgrade to 8 then to 8.1.
    The problem I am having is that I can not install the Bootcamp software at all be it version 4.0.xxxx, 4.1.xxxx, 5.x.xxx or 5.1.xxx.
    Every single time I try to install it, I get an error message saying "Bootcamp requires that your computer is running Windows 7"
    Any suggestions/help would be greatly appreciated as this is driving me nuts
    Thanks Guys
    Huza

    Hello there, Tonicost.
    The following Knoweldge Base article offers up some great and practical information to properly setup Bootcamp on your MacBook:
    Mac Basics: Using Windows on your Mac with Boot Camp
    http://support.apple.com/kb/ht1461
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Windows trial version via Bootcamp (Macbook Pro)

    Hi,
    I wanted to see how windows work on my macbook pro. Before buying the windows licence, I would like to see how it performs. I am particularly interested in gaming via windows.
    Is it possible to install trial version of windows via bootcamp on macbook pro (2014)?

    Windows 8.1 drivers should work for Windows 10 TP.
    There is no official support for W10. Please see Boot Camp: System requirements for Microsoft Windows operating systems - Apple Support.

  • No sound Windows 7, 64 bit running Bootcamp, MacBook Pro 64bit Snow Leopard

    Been running Windows like this successfully for over a year. Now, suddenly, no sound. Tried re-installing Cirrus Logic etc, but to no avail. Possibly linked to some recent software updates? Tried to reverse, but didn't fix problem.
    Have tried the various suggestions found via Google about compatability with Vista in Cirrus.
    Any suggestions would be very welcome.

    in bootcamp in osx one makes a driver cd which include apples drivers for all the hardware in the mac
    and one then install that in windows to get everything working
    do that rather then try to install drivers yourself

  • No sound in windows 7 bootcamp macbook pro 15" retina

    Hi and good day,
    I recently purchased a mbp 15" retina and decided to install windows 7 professional via bootcamp. Upon completion, i realised that there was no sound from the speakers or the headphone jack. I updated the bootcamp drivers to the latest via apple bootcamp website and in addition, updated the latest realtek / cirrus sound driver. But to no avail, Any help would be greatly appreciated.
    Thanks in advance for the assistance
    Regards,
    Muhammad Adam
    Malaysia

    Did you download and then install the Windows Support Software, in Boot Camp. (Page 1)

  • Leopard Bootcamp MacBook Pro Vista Driver

    Hi,
    after ugrading to Leopard and installing Leopard Bootcamp drivers on my Microsoft Vista, the external Monitor is not recognized at all. I've upgraded from Beta version 1.4 to the drivers from Leopard Installation DVD. Since this installation the beautiful NVIDIA Control Panel is gone and I don't find a solution how to switch to the external monitor.
    Any suggestions?

    I had a similar problem even after installing the new Apple driver mentioned below.
    I found the solution at:
    http://www.laptopvideo2go.com/forum/index.php?showtopic=16152
    Make sure you download the "Driver" then download the "Modded Inf" file, and follow the instructions carefully. For instructions with pictures download:
    http://www.laptopvideo2go.com/forum/index.php?showtopic=11997

  • Cannot download email attachments windows 7 lion bootcamp MacBook Pro.

    I cannot download or upload email attachments with windows 7 on lion bootcamp. Attached files such as xxx.doc,  yyyy.jpg, or zzz.txt  erroneously try to download as *icloud* and of course fail. By * I mean alphanumeric string. icloud mail tries to download perfectly good files as gibberish. On my mac lion side the mail function works fine. On the bootcamp side all non-icloud mail functions and browser functions work fine. I can easily send, forward, reply to and receive icloud mail. The only thing wrong is that I cannot sucessfully unload or download icloud email attachments.

    You will have better exposure for your query in the Boot Camp forum:
    http://discussions.apple.com/category.jspa?categoryID=237

Maybe you are looking for

  • Billing document from delivery document has zero price

    Hi.  Any ideas on how I can correct this?  I have a scenario where I generate a Sales Order, create a project and assign the project to the sales order.  We then assign materials to the project and generate PRs which we convert to POs and then post G

  • ADOBE's own 3D program Like Maya or 3D max, blender?

    Hey Hello frineds,                                 I am curious about one question which often comes in my mind, so I though why not put it on to the forum. its simple                      WHY ADOBE IS NOT DEVELOPING / INTRODUCING A SOFTWARE LIKE 3D

  • Palmone for windows vista

    been trying to synchronize my palmone, which i bought in 2005, to my pc with windows vista OS but seemingly, the driver is not recognized by vista. been trying to update from palm website to no avail..has anyone have the same concern? i dont wanna do

  • Flickering Screen while Using

    Does anyone have the "flickering/blinking" screen while using the laptop? I also used the stress test and nothing has found. Thinkpad w510 Core i7 Q820 @1.73GHz 8GB ram Windows 7 64bit

  • What happens when the Flex 2 builder trial expires?

    Here in South Africa bandwidth is quite expensive and I would like to know if I can still use Eclipse for other purposes after the Flex 2 builder trial has expired. If it totally disables Eclipse it means that I have to download the standard version