Go Back  Mac-Forums.com  > Software > Windows, Classic, Linux, and Other OS > Windows - HOWTO: Low DPC latencies (<100 us) on bootcamped Macbooks (Pro)

Reply
 
LinkBack Thread Tools
Old 01-06-2009, 07:06 PM   #1 (permalink)
T1mur

 
T1mur's Avatar
 
Member Since: Jan 05, 2009
Posts: 4
T1mur is on a distinguished road
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 leads 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". But it seems as if using "Rightmark CPU Clock Utility" makes Speedstep clock down less aggressively at least.

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 has broken multithreading as pointed out by this website:

MacBook Rev. F Audio Skipping in Vista Analisys and Solution - Part 1 « AlexP’s Weblog

You can also change the CPU affinity of KBDMGR.EXE to CPU 1 (not 0) which will help DPC Latencies alot, but there will still be Audio dropouts. There is a patched version of KBDMGR.EXE for download at the link above that will do this automatically. But for professional Audio applications you need to kill the process for the time being.

Turn off the Broadcom 802.11N WLAN driver via Device-Manager.

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.

Change the graphic-card driver to "Standard VGA Driver" via Device-Manager or update to latest Nvidia driver via modified driver package and INF file.

This again is a thing to try with your specific setup. The 9600M GT driver can produce single but long spikes from time to time if the system is under load, especially if Aero is activated and you are moving around a window. When Idle (Speedstep decreasing the CPU clock) DPC Latencies under Aero will be going towards yellow regulary with single spikes, while without Aero latencies stay low but again with single spikes. Using the Standard VGA Driver wont allow you to use Aero anymore though, but therefor there will be no more DPC latencies spikes.

The described behavior is that of both the driver coming with Bootcamp and the latest version 180.84 beta which can be installed via a modified driver package + INF file. Unfortunately you might be missing the new control panel when using non Bootcamp drivers. You can find the modified files for installing the latest Nvidia driver here: NVIDIA & Laptop News | Latest NVIDIA drivers and related news | laptopvideo2go.com

The Nvidia driver shows some quirks apart from the already described behavior. When Aero is turned off: higher idle DPC latencies, more spikes when GUI elements are moved (like moving a window or (un)folding a subtree of the device-manager) and somewhat erratic movement when moving a window. When Aero is turned on it seems to run better, but some actions like maximizing the DPC Latency Checker window can lead to whole blocks of bad latency spikes.

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 that much. 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.

Windows XP specific

On XP (in contrast to Vista) you can access PowerMizer settings, but they don't have any effect on the late 2008 MBP, neither DPC wise nor battery/power wise.

Furthermore the NVidia driver produces no relevant DPC/load spikes on XP, but it's a good idea to deactivate "Cursor Acceleration" (set the Troubleshooting setting one tick down). The standard VGA driver on XP (only accessible by uninstalling the NVidia driver) shows lousy performance and should be avoided altogether.

It's also not mandatory to deactivate the ACPI Battery service on XP, because it produces smaller spikes in irregular intervals only.

All in all the lowest DPC latencies I could measure on XP are downto 2 us, but with the tweaks listed in this thread performance of Vista is roughly on par with XP if not even slightly better on my MBP 2.8 GHz.
__________________
We're all mad in here...
T1mur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 01-06-2009, 07:07 PM   #2 (permalink)
T1mur

 
T1mur's Avatar
 
Member Since: Jan 05, 2009
Posts: 4
T1mur is on a distinguished road
Windows - HOWTO: Low DPC latencies (<100 us) on bootcamped Macbooks (Pro)

There is some good news: Because of the Windows 7 Beta that will be published in the near future Microsoft has put up a new "Microsoft Update-Catalog" at: Microsoft Update Catalog

This includes many updated drivers for hundreds of hardware interfaces including Broadcom WLAN drivers and Nvidia 9600M GT drivers that are found on the current Macbook (Pro) models.

Especially the Broadcom driver is very interesting:

1. It finally enables full 300 mbit/s 802.11n support, whereas older drivers (including OS X) only connect upto 130 mbit/s with many routers. Whatever the driver does to switch 300 mbit on it even stays on when you reinstall the older drivers!

As a drawback you cannot use channels 12 and 13 anymore (in Germany) as this driver seems to be made for the USA only.

2. It dramatically improves DPC latencies

From this (Bootcamp Broadcom driver version 4.170.77.3/03-21-08):



To this (Broadcom driver version 5.10.38.26/10-22-08):



I would still advice to turn off WLAN when doing critical Audio work, but at least you only have to do it for special circumstances now.

The Nvidia 9600M GT drivers are version 177.48 and thus slightly newer than the Bootcamp ones. Unfortunately they shows about the same DPC Latency behavior as before. So for critical Audio work you still have to fall back to the "Standard VGA Drivers".

PS: Curiously the new driver version of the Broadcom drivers resembles what OS X reports as "Firmware Version: 5.10.38.24". Even more strange Windows 7 Beta comes with a driver version 4.176.75.11/10-23-08 that is one day younger, but less performing than the version 5 drivers.
__________________
We're all mad in here...
T1mur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about 2nd video card on Mac Pro AubreyL Apple Desktops 2 11-09-2008 09:12 AM

 
 
 
     
Home Calendar Get New
     

Copyright ©2001-2009 Mac-Forums.com. All Rights Reserved. A division of iNET Interactive.

Other iNET Interactive Sites: Web Hosting Talk | Swish Talk | Hosting Catalog.com| Dev Papers| Deleted Domains| Hot Scripts

Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.