Friday, 13 February 2026

AI Queries Causing System to Hang

 

AI Queries Causing System to Hang: How I Tamed My Workstation's Audio Pops

If you're like me, running a beloved, powerful, but aging workstation – in my case, an HP xw8400 with dual Intel Xeon E5345 CPUs and dual NVIDIA NVS 300 graphics cards on Windows 7 – you know the struggle. This machine is a beast for certain tasks, but it has its quirks, especially when it comes to real-time audio.

Recently, I hit a wall: every time I performed an AI query in my browser (Supermium, in this case), my audio would suffer from frustrating clicks and pops. It felt like the system was "hanging" for a split second, causing those dreaded buffer underruns. This wasn't just annoying; it was crippling my ability to work efficiently.

The Problem: LatencyMon Revealed the Culprit

My first step was to fire up LatencyMon, the go-to tool for diagnosing audio dropouts. The results were stark:

  • Massive DPC Latency Spikes: nvlddmkm.sys (the NVIDIA Windows Kernel Mode Driver) was consistently hitting peaks of 30,000 microseconds (µs) during AI queries. Anything over 1,000-2,000 µs is problematic for audio, so 30,000 µs was a red flag the size of a billboard.

  • Hard Pagefaults: My system was also drowning in 22,000 hard pagefaults, indicating that the system was constantly scrambling for data on the slow hard drive. This was primarily caused by psanhost.exe (Panda Antivirus), which I quickly realised was simply too heavy for my setup.

The Journey: Initial Tweaks (and Why They Didn't Fully Work)

I started with the usual suspects, guided by some excellent advice:

  1. NVIDIA Control Panel - Usage Mode: Graphics Only: This was a good first step, preventing the GPUs from trying to act as compute devices. It helped, but the massive spikes remained.

  2. Disabled Hardware Acceleration in Browser: Ensured Supermium wasn't trying to offload too much to the GPU. Again, helpful, but not the silver bullet.

  3. Power Options: High Performance: Kept my Xeons running at full speed.

  4. Task Scheduler & Services Cleanup: Removed any lurking NVIDIA background tasks.

  5. Disabled NVIDIA HD Audio: Prevented audio conflicts.

  6. Texture Filtering - Negative LOD Bias: Clamp: Reduced unnecessary GPU sharpening.

  7. Multi-display/mixed-GPU acceleration: Single Display Performance Mode: Simplified how the driver handled my four monitors.

  8. Threaded Optimisation: Off: Stopped the driver from scattering work across my 8 CPU cores.

While these steps collectively improved the system's responsiveness and reduced some background noise, the crucial nvlddmkm.sys DPC spikes during those AI queries persisted. The 30,000 µs monster was still there.

The Breakthrough: Maximum Pre-rendered Frames to "1"

After all those tweaks, the final, most impactful change came down to a single setting in the NVIDIA Control Panel:

Maximum Pre-rendered Frames: Set to 1

This seemingly small adjustment was the key to unlocking real-time performance on my vintage workstation.

Why "Maximum Pre-rendered Frames = 1" Fixed It:

  • Stopping the CPU from "Looking Ahead": By default, the NVIDIA driver tries to prepare multiple frames (often 3 or more) in advance to ensure smooth visuals. On a modern system, this is fine. On my xw8400, feeding two NVS 300 cards from a Front Side Bus (FSB), this "pre-rendering" was causing the CPU to get utterly swamped with graphics tasks. It was constantly buffering frames, delaying critical audio data.

  • Clearing the System Bus: When an AI query rapidly streams text and updates the screen, it demands a continuous flow of new frames. With a buffer of 3, the CPU was frantically trying to keep up, creating a massive traffic jam on the system bus. Setting it to 1 forces the CPU to prepare just one frame at a time, send it, and immediately move on. This dramatically reduces the amount of time nvlddmkm.sys holds onto the CPU, allowing the audio stream to flow uninterrupted.

  • The AI Query Trigger: The dynamic, text-streaming nature of AI interfaces specifically exposed this bottleneck. Each word appearing on screen triggered the intensive frame pre-rendering, leading directly to the clicks.

The Result: Silence at Last

After applying this change, the difference was immediate and profound. AI queries now run smoothly, the text streams without a hitch, and most importantly, the audio clicks and pops are gone! LatencyMon now shows nvlddmkm.sys behaving itself, with peak DPC times well within acceptable limits.

It turns out, for legacy hardware like the HP xw8400, the less "smart" your graphics driver tries to be with buffering and multi-threading, the better for real-time audio. Sometimes, the simplest solution is the most effective.

If you're battling similar audio latency issues on your older workstation, especially with NVIDIA cards, give that Maximum Pre-rendered Frames = 1 setting a try. It might just save your sanity!

Flood Risk Reports

Tuesday, 15 July 2025

Sustain Hold Pedal Not Working Behringer Pro VS Mini

 Here are some notes that took down while diagnosing why the sustain pedal was not working when controlling my Behringer Pro VS Mini with a Edirol PC-50. 

So firstly I had to check it was not the Edirol PC-50. It is quite old. And maybe someone who owned it before me plugged something i and fried it somehow. 

But my using MIDI-OX on windows 7 and a long chat with Google Gemini:

https://g.co/gemini/share/f3112cfd08a2 

I was able to figure out that the problem lies with the Behringer Pro VS Mini. 

What the PC-50 Does

This is what you get from the PC-50 when the DP-2 pedal is pressed. Which according to Gemini is correct. 

 TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT               

 0000365B   1  --     B0    40    7F    1  ---  CC: Pedal (Sustain)   

 0000378B   1  --     B0    40    00    1  ---  CC: Pedal (Sustain)   


What the Pro VS Mini is Listening for?

So does Pro VS Mini use Standard MIDI CC? - Yes - Controller operates key, and pitch bend etc. 

Does Pro VS Mini use Standard MIDI CC for Hold ? - No it doesn't.


How to make a hold pedal work with Pro VS Mini?

I am not sure if I can be bothered. 

Response from Music Tribe Support 

Dear Dorky Thorpy 
 
This is in relation to CAS-872176-S2C3C7 
 
Product: Behringer PRO VS MINI 
 
Serial: 123456789 
 
Thank you for contacting Music Tribe.

I am sorry for the issue you are facing.

Please be informed that PRO VS MINI does not support MIDI for the sustain pedal.

Please refer to the attached picture of the MIDI supported by PRO VS MINI.

If you need further assistance, please do not hesitate to contact us.

Kind Regards,
 
Arthur Ross , Behringer Support

What does it support: 


Weird supports so much but not sustain / hold !!





Monday, 3 February 2025

My Top Ten Mantras

My Top Ten Mantras 

I suppose we choose mantras in attempt to improve our mindset in one way or another. For me personally mantras are about emotional control. I am currently in a chapter of my life where I need to
  • Relentlessly keep my $h1t together . . . and;
  • Not allow myself to think bitter thoughts (having been wronged by a loved one). . . and;
  • Empower myself (to the extent that it improves my productivity) 
So here we go. Top 10. (Work in Progress - Universal Theme :-) ) 

1 - I am stronger than this feeling.


In pursuit of productivity, negative feelings can be distracting and distract from progress. I appreciated this is not very zen, but I have people relying on me and this mantra keeps me on track to support those around me. 



2 - I am building strength with every challenge I face.


If things are not going quite right, or you feel under pressure, then this is good one as it reminds me that every time I eff something up I get something back from it. i.e. I learn from adversity. 

3 - I am like the sky, vast and able to hold any weather.

Whilst I am confident, and productive I accurately* consider myself as having low self worth. So this mantra I find very good for me, because it makes me feel a big.

*Self worth - Being a scientist I can only view myself as a tiny crumb of matter, stuck on a rock lost in the vastness of space. The fact is that everyone on this planet is unimportant within the context of the wider universe. We have manufactured an importance for ourselves (societal hierarchy etc) which may convey a feeling of importance, but the human race is ultimately of little value. I happy with that thought. 

4 - I am the calm center within the storm.

I do like the weather based mantras. Spending time in nature is good for you, and it is calming so invoking nature in mantras works well for me. 




To be continued . . . 






Friday, 8 November 2024

Audio Output Distortion on AKAI Rhythm Wolf

Audio Output Distortion on AKAI Rhythm Wolf 

I am a relative noob to the world of pro audio equipment. I have made many speakers over the years, and they work well, but I have recently come across a strange problem with recent purchase and here I present my research notes and links to the various resources.

The Problem 

I have recently acquired an akai rhythm wolf drum machine,  and the main signal output is showing some strange behavior.

When I'm using a high quality pair of headphones such as Sennheiser HD280 Pro the sound quality from the rhythmolf is excellent. I am particularly interested in The Sound of the bass drum here.

So the bass drum or kick drum gives out very delicious low rich bass when using the headphones which is what I like the here . . .! . . . however when I plug the output into a speaker which I normally use for listening to music the bass drum sounds very thin and the hardly any bass is produced.

If you turn the volume on the kick drum too far then it starts to distort in a crackly sort of way so I'm trying to figure out what's going on there and why am I getting thin bass when I'm using a speaker and what am I getting why am I getting good base when I'm using headphones.

I should say this behaviour repeats on 3 types of speaker:

  • Small Sony Bluetooth Speaker - Works fine with synth, and other drum machines. 
  • Soundboks 2 - Very heavy duty unit, works fine with synth, and other drum machines. 
  • Home Made Speakers - 2 Large Active Speaker containing 4 x TPA Amplifiers and 4 x 10" subwoofers. Which when playing music from spotify are extremely loud. 

The Fix = Mixer

I contacted AKAI Support there response was:

"The problem with the weak, distorted kick drum might be expected as it is not recommended to directly connect a speaker to the rhythm wolf Main Out. Instead, use a standard 1/4" (6.35mm) TRS cable to connect this line-level output to the input of an audio interface, mixer, amplifier system, etc. Additionally, stereo headphones can be connected to this output. If the Synth Out is left unconnected, the Main Out will include the drum and bass synth voices. However, if a cable is connected to the Synth Out, the Main Out will include the drum voices only."

I also contacted the chap I bought it from:

Me: "Hey mate did you always run this through a mixer"

Seller: "Hi yes I did run it through a mixer. It has some serious sub on the unit, I'd check the EQ settings on your speaker and set it to "flat" is possible." 

AND YES WHEN I RUN THE RHYTHM WOLF THROUGH A MIXER SLIGHTLY LOWERING THE BASS LEVEL IT SOUNDS GREAT. 

Noob Fault Finding 

Below are musing on why this is happening. 

First Reaction 

An initial experiment I tried was to route the output to a headphone amplifier and then the headphone amplifier to the speaker. This didn't work. Very thin "sniky" bass drum. 

Research 


So something coming out of the Rhythm Wolf is the wrong level for the 3 speakers I have tried out. The output has too much power, or not enough, or the receiving speakers are expect something within a certain range and that isn't happening. So lets figure this out:

Impedance 

My HD280 Pros are 64 Ohms. 

"Most headphones have an impedance that is typically between 8-600 ohms."


"All these factors, make us arrive at something important known as Impedance Matching."

A guitar amplifier is high impedance. . . I plugged in the drum machine to a Yamaha GA15 and I get the same behaviour as I do with speakers, the kick drum sounds very very weak. I can turn up the snare drum and other outputs and they are very loud and distortion free. 

"An impedance mismatch in a circuit or along a transmission line will produce a reflection back to the source of the signal. When a signal reflects, the power transferred downstream towards a load is reduced. Impedance matching provides a dual role of enabling power transfer into a load by suppressing reflections."


So it sounds like it could be impedance. But my guitar amp experiment doesn't work. It need to be low to high. 


Voltage 

Is it voltage of the output, I have read 2V is typical. Is it more than that or less?



Power Supply

I have read that using a different power supply for the Rhythm Wolf can fix a problem with distorted outputs. However, I have switched the adaptor and it didn't;'t work. THe manual says 12V 2A Supply which is reasonably beefy. 

It was supplied with a 12v 600ma, but swapping that to a 12v 2a has not helped. 

More amps? Probably won't help. 


Distortion  Notes 


"Possible causes of audio distortion problems may be: Wrong input level to the amplifier. Amplifier gain is set too low or high. Not enough amplifier power."