Is your PC based DAW running as well as it should? (TIPS!)

  • Thread starter Thread starter redrol
  • Start date Start date
redrol

redrol

Active member
Modern PCs have either AMD or Intel based processors. These processors have dynamic clock speeds which means they vary the speed of the processor based on workload and temperature. This is called Speed Step on Intel systems and Cool n Quiet on AMD systems.

I'm going to be using Intel processors in this example because they are the fastest and best and you should use one for a DAW anyways.

Ok so how does someone tell if their DAW setup is operating with low latency? Latency is the measurement of the PC's ability to react to realtime events. Things like applying VSTs to a audio track or monitoring inputs are reliant on low latency. Basically the lower your latency, the better and more 'realtime' your DAW will act.

Ok so lets measure your latency. We measure this in something called DPCs.

Processing of streaming data in real-time is a very challenging task for Windows based applications and device drivers. This is because by design Windows is not a real-time operating system. There is no guarantee that certain (periodic) actions can be executed in a timely manner.

Audio or video data streams transferred from or to an external device are typically handled by a kernel-mode device driver. Data processing in such device drivers is interrupt-driven. Typically, the external hardware periodically issues interrupts to request the driver to transfer the next block of data. In Windows NT based systems (Windows 2000 and better) there is a specific interrupt handling mechanism. A device driver cannot process data immediately in its interrupt routine. It has to schedule a Deferred Procedure Call (DPC) which basically is a callback routine that will be called by the operating system as soon as possible. Any data transfer performed by the device driver takes place in the context of this callback routine, named DPC for short.

The operating system maintains DPCs scheduled by device drivers in a queue. There is one DPC queue per CPU available in the system. At certain points the kernel checks the DPC queue and if no interrupt is to be processed and no DPC is currently running the first DPC will be un-queued and executed. DPC queue processing happens before the dispatcher selects a thread and assigns the CPU to it. So, a Deferred Procedure Call has a higher priority than any thread in the system.

Ok so that is a bit of technical info about DPCs and latency. Lets check yours right now:

Download this app: http://www.thesycon.de/dpclat/dpclat.exe

Just put that file on your desktop or whatever and run it and you will get a graph like so:

DPCs.png


This is my homebuilt Core i7 2600K based system with 16GB RAM and 2x120GB Solid State Hard Drives. Also I was playing music at the time I took the screen shot. This does show my system is capable of responding in under 100 microseconds and in most cases around 60-70us. This is incredibly good. Most systems I have tested this on range from 250-1000 microsecond latency and this is not good enough for a proper DAW system as there will be glitches and dropouts.

So how to make your Intel based system into a DAW monster? Simple, turn off Speed Step in your BIOS.
When the computer first starts you tap either DEL or F2 (depending on manufacture) to get into your BIOS and here is the toggle for 'speed step'.

bios2jo3.jpg


The reason Speed Step is bad is not so much that it will run your processor at a lower frequency, which it can depending on load. The reason is because its the clock speed switching that incurs a DPC penalty. Shifting the clock speed itself causes the system to momentarly pause while the clock locks in and that causes major latency! TURN IT OFF.

Hope this helps. Getting that latency down below 100 makes a huge difference in overall system performance and of course even more for a DAW system.
I would be interested to know if this helps some people out. :rock:

[edit] Speed Step can also be called C4 Sleep (or some variation of the words, Speed Step C4 Sleep)
You can tell if speed step is changing your CPU speed with this program, ideally you want a fixed frequency which does not change:
http://www.cpuid.com/downloads/cpu-z/1.59-setup-en.exe

More Speed Step info
 
Very cool info and extremely useful post! Thank you very much. I will look into this when I get home. :thumbsup:
 
You are most welcome! I must say this as well, this does increase the idle power draw by say 2-7% since the CPU isn't declocking. No big deal for a DAW rig in my opinion. :)
 
definitely some good info. There's a page out there that has a long checklist of things to do to optimize your system for a dedicated DAW. everything from a list of unneeded windows services to disabling virtual mem (if you're confident you have enough physical ram). I used it a while back to help set up my friend's home studio. made a big difference. I'll repost if I come across it
 
LMAO!!!! Mike, you could have posted that in Ancient Korean and it wouldnt have made any difference, its all over my head LOL!!!

Kage
 
HAhah, well, this program will tell you if your DAW is performing well. The lower the latency graph the better, also over time more consistent latency is better than major spikes. Download the program and give it a check!

definitely some good info. There's a page out there that has a long checklist of things to do to optimize your system for a dedicated DAW. everything from a list of unneeded windows services to disabling virtual mem (if you're confident you have enough physical ram). I used it a while back to help set up my friend's home studio. made a big difference. I'll repost if I come across it

In my opinion using the solid state hard drives along with disabling speed step makes all the difference in the world. In addition, Virus detectors can destroy a systems performance, so we don't use those on a DAW. Other than those things I don't do any more tweaks.
 
Mine read in at 116 with Media Player going, without any changes to the Bios., and 86-88us without Media Player. It says I am good, but should I change that anyway to boost performance? What I really want to do is when I look under processes, there are shit tons of svhosts on there taking up cpu. How do I clean up those?
 
svhosts are basically windows services, bottom line is don't worry about them, they only take a tiny bit of memory and only do things when they need to... they don't suck system resources for lack of a better word

116 is great really, you can get it even better if you disable speed step, keep in mind its basically the easiest thing in the world to change and flip on or off to see the differences
 
Great post! It can be hard to track down what is causing DPC spikes if you have them. From experience I've found that wifi drivers and power management software are typical culprits. Try disabling the 802.11 driver or turning it off with the hard switch on a notebook PC. Also uninstall 3rd party power management software, especially Lenovo's power management tools if you have a Lenovo.

Also google for Black Viper and use his guide to disable unnecessary services. Download CCleaner and in its tools section go to Startup and disable anything that looks suspicious. Take caution though. You will need to google around to confirm you won't be disabling something important.

Finally, go to Start menu --> Startup and delete everything in there. I've never encountered anything that really needs to be run there. But take caution. :)

Do all that, and after about 13 hours and lots of headaches you'll have a fast PC.
 
My edict for any DAW has been the following:

Disable speed step.
Put in as much RAM as possible.
Use SSD wherever possible.
Disable any unneeded services.
Do NOT install a virus checker.
Do NOT connect to the internet, either directly or through another PC.
Only apply OS patches as suggested by your DAW software, not OS manufacturer.
Put in as many offload components as possible (sound cards with their own processor, GPU, etc.)
Rock on!!
 
great tips here....i'm running a regular system (after i black vipered a while ago) and it's coming it right at 96-105 average. i will have to delve into this deeper.

what are the risks when disabling just that one item in the bios? are there any overclock or heat issues i may encounter?
 
racerevlon":f7i8n7cs said:
My edict for any DAW has been the following:

Disable speed step.
Put in as much RAM as possible.
Use SSD wherever possible.
Disable any unneeded services.
Do NOT install a virus checker.
Do NOT connect to the internet, either directly or through another PC.
Only apply OS patches as suggested by your DAW software, not OS manufacturer.
Put in as many offload components as possible (sound cards with their own processor, GPU, etc.)
Rock on!!

Great Advice with the addition of disabling Windows Defender on Windows 7 systems which comes enabled by default. You can do this in the control panel under Windows Defender.
 
Back
Top