ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Audio Drop Outs and CPU Load (possible bug)
I have a particular project template, where I have serious problems with audio drop outs due to high CPU load. While the project only uses about 20% of total CPU power, the first thread (out of 12) in the Performance module is often going into the red area and then sometimes stops the audio engine. With load balancing activated, the first thread goes down close to zero, but the drop outs happen nonetheless. For whatever reason, the problem is only with that particular project, while other projects don't cause drop outs, even when they have much higher total CPU load.
I can fix the problem by changing the power plan settings. By setting the minimum CPU limit to 100% instead of 5%, the first thread drops to about 60% (without load balancing) and the drop outs no longer happen (with or without balancing).
However, I wonder about three things: 1. Why are there drop outs for that particular project, but not for others with even higher CPU load? 2. Why doesn't load balancing help to avoid the drop outs? According to Performance module, no single thread is overly loaded, but nonetheless the audio engine stops. Could this be a bug that Sonar detects possible overload without considering if load balancing is active? 3. Why is Sonar not able to ensure that the CPU provides enough power, if it is there in principle, but reduced by power management?
|
robert_e_bone
Moderator
- Total Posts : 8968
- Joined: 2007/12/26 22:09:28
- Location: Palatine, IL
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/02 10:56:44
(permalink)
You might consider altering the value of a Sonar parameter in Edit>Preferences>Audio>Configuration File, called ThreadSchedulingModel, to a value of 2, which helps with the distribution of things across multiple CPU cores. Additionally, if you load up large numbers of instruments in multi-timbral synths like Kontakt, into a single instance, Sonar won't be able to split that work up. Noel has commented on this in the past, and has suggested that CPU work is better distributed by instead keeping any one Kontakt instance loaded with a smaller number of instruments and using multiple Kontakt instances to house the needed instruments. (I generally keep any single instance of Kontakt down to no more than 5-6 instruments, and just use multiple instances). Hope any of the above helps you, Bob Bone
Wisdom is a giant accumulation of "DOH!" Sonar: Platinum (x64), X3 (x64) Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22 Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64 Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/02 11:39:18
(permalink)
Thanks for your help.
Using ThreadSchedulingModel 2 gives a better distribution between threads in Performance module when balancing is off (looks similar to balancing on then), but doesn't prevent the drop outs.
I tried to disable each single instrument plugin (and several effects), none of it made a change. There is one Kontakt instance with 2 instruments, in other projects I have several Kontakt instances with up to 4 instruments.
The odd thing is that I have drop outs due to CPU load, but all threads in Permformance module are below 50%.
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/02 14:04:25
(permalink)
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/02 14:41:09
(permalink)
I tried all those suggestions. But the problem is definitely CPU load, and this is not addressed. My main concern is that I get drop outs from CPU load, but neither CPU total nor single threads seem to be overloaded. Hence, I wonder if there is something wrong with load balancing.
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/02 14:57:03
(permalink)
I don't think Windows Power Management is capable of responding properly to the rapid real-time changes in load that a DAW can generate. It's generally recommended to disable all CPU-throttling in a DAW. This means disabling Speedstep, C-States and Turboboost in BIOS, and setting Windows Power Management to High Performance. You should also run LatencyMon, and make sure you aren't getting spikes in Deferred Procedure Call latency. http://www.resplendence.com/latencymon
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 01:27:49
(permalink)
Admittedly, optimizing Windows for high performance is much recommended when running a DAW. I mainly wondered why I never had any problems like this before, and why load balancing didn't help, when without load balancing, the problem was obviously caused by the first thread going into red (approaching 100% load).
|
chuckebaby
Max Output Level: 0 dBFS
- Total Posts : 13146
- Joined: 2011/01/04 14:55:28
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 06:54:36
(permalink)
Ralph, Anything different about this project than any of your others ? Settings, plug ins, exc ? I know you have probably already gone through all this already but I would look for differences between projects and if I could not find any, start a new project and drag the data in to it. Re- create the whole project again and see if you still have the same issue. if you don't, then its possible something became corrupt in the project itself. Good luck buddy
Windows 8.1 X64 Sonar Platinum x64 Custom built: Asrock z97 1150 - Intel I7 4790k - 16GB corsair DDR3 1600 - PNY SSD 220GBFocusrite Saffire 18I8 - Mackie Control
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 09:40:20
(permalink)
I guess it's the combination of VST-plugins. If I disable enough plugins, the load is low enough to prevent drop outs. But no particular plugin seems to be the one that makes the difference. I think I will have to live with changing the power settings when working with that particular project. (I don't want to have them permanently high.)
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 10:21:09
(permalink)
Check out this free utility called Full Throttle, which lets you override your system power plan for specific applications. The only catch is that you must run the application as Administrator in order to grant it permissions for changing power settings.
 All else is in doubt, so this is the truth I cling to. My Stuff
|
Anderton
Max Output Level: 0 dBFS
- Total Posts : 14070
- Joined: 2003/11/06 14:02:03
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 10:51:11
(permalink)
Also try turning off load balancing. It's not always needed; refer to the documentation about when using it indicated and when it's not.
|
35mm
Max Output Level: -68 dBFS
- Total Posts : 1105
- Joined: 2008/12/09 08:21:44
- Location: Devon, UK
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 12:13:24
(permalink)
I have had the same problem since I updated to Splat the other day. It only effects one project which is mostly audio but uses prochannel modules on several tracks. The first thread is maxing and the others are fairly high. Getting lots of pops, clicks, dropouts and crashes - running slow and unstable. A new project I am working on now uses more plugins but no prochannels and the threads are all at minimum and it's all nice and astable. I was thinking this may be prochannel related because I haven't tended to use prochannel much before and I haven't encountered this problem before.
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 12:41:06
(permalink)
bitflipper: Thanks for the link, this tool looks just like what I need for power management. Anderton: Without load balancing, the first thread goes into red and then I have drop outs. With balancing, all threads stay rather low, but the drop outs happen nonetheless. So, at least it looks better with balancing ;) 35mm: On my last computer, I also had the problem of pops and clicks when CPU load became too high. If all threads go high, you probably have to reduce the number of effects. Or find plugins with high CPU load and replace them by similar with less power consumption.
|
microapp
Max Output Level: -77 dBFS
- Total Posts : 653
- Joined: 2013/10/31 12:21:31
- Location: Wondervu, CO
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 19:40:52
(permalink)
Load balancing in certain cases can actually increase the overall CPU load. You don't mention your setup. Do the dropouts go away if you disable the FX ? (the 'E' key toggles the FX on/off). Are you using any LP plugs? (linear phase). Try increasing your audio buffer size. You could also try running Latency Monitor (free) http://www.resplendence.com/latencymonThis may show something in your system is taking up too much CPU time (e.g. wifi, video, disk, etc.). Even with a fast system, if something like the video driver is taking too much time, the CPU cannot keep the output buffer full so you get a dropout. Increasing the buffer size allows the CPU more time to fill the buffer so it reduces the required load on the system but also increases the audio latency. Some projects may need a larger buffer.
Sonar Platinum, Cubase Pro 8.5, Reaper 5, Studio One 2Melodyne Studio 4, Finale 2012I7-5820K 4.5GHz, 32 GB DDR4-2800,3 monitors,Win 10 ProToshiba P75-A7100,l7-4900 2.4 Ghz/8MB Win 8.1 ProTascam FW-1884, Emu 0404USB, CMC-AI,Axiom 61Yamaha HS-50's, Sony SA-W2500, Sennheiser RS170's, ATH-M50Ibanez Jem7VWH, RG-1570Jackson DK2-S(Sustainiac),Les Paul CustomDigitech Valve-FX, GFX-1,TSR-24,RP-90
|
ralf
Max Output Level: -86 dBFS
- Total Posts : 205
- Joined: 2010/11/27 05:36:43
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 22:38:53
(permalink)
The overall CPU load of the project is 20%, so it's far from a general overload. I have drop outs with and without load balancing. Without balancing, the first thread in the Performance module sometimes goes to red indicating an overload. With balancing, all threads stay nicely below 50%. Hence, my main concern is, why load ballancing doesn't help against the drop outs. My audio buffer is at maximum of 10ms, it's not possible to increase it further in ASIO mode. In other modes, I have to increase it way beyond 50ms, which is impractical to work with. As I mentioned, the problem is caused by the overall plugin load, so yes, turning off all FX reduces the load enough to prevent drop outs. Even turning off rather few plugins helps to keep the load below the critical point. The main problem with the project seems to be that it requires CPU power in an irregular (meaning not enough constant) manner. So, power management reduces CPU frequency and can't catch up quick enough, when more power is needed. Hence, increasing minimum CPU frequency solves the problem.
|
bitman
Max Output Level: -34 dBFS
- Total Posts : 4105
- Joined: 2003/11/06 14:11:54
- Location: Keystone Colorado
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/07 22:59:07
(permalink)
Turn that pc to 11, and be happy.
|
JonD
Max Output Level: -39 dBFS
- Total Posts : 3617
- Joined: 2003/12/09 11:09:10
- Location: East of Santa Monica
- Status: offline
Re: Audio Drop Outs and CPU Load (possible bug)
2017/01/08 11:48:43
(permalink)
ralf I guess it's the combination of VST-plugins. If I disable enough plugins, the load is low enough to prevent drop outs. But no particular plugin seems to be the one that makes the difference....
Any linear-phase plugins? Also, disable 64-bit double precision if enabled.
SonarPlat/CWbBL, Win 10 Pro, i7 2600K, Asus P8Z68 Deluxe, 16GB DDR3, Radeon HD5450, TC Electronic Impact Twin, Kawai MP11 Piano, Event ALP Monitors, Beyerdynamic DT770 Pro, Too Many Plugins, My lucky hat.
|