INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: CPU Utilisation ~ 90% during Audio Playback [Solved]  (Read 3856 times)

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
CPU Utilisation ~ 90% during Audio Playback [Solved]
« on: September 05, 2017, 06:40:46 am »

I have build a new MC based server to replace my NAS.

When playing Audio 16/44.1kHz or 24/192kHz - all FLAC - CPU utilization goes immediately to 80-90%!!!  On the HTPC I have at home (i3-6100, 8 GB RAM) ) CPU utilization during Audio Play Back is < 5%.

Any idea what is the reason for this?

I have checked memory playback on/off - no difference
Firewall on/off - no difference
Antivirus on/off - no difference

Environment:
i3-7100
Asus P10S-I
16 GB Kingston ECC RAM
2 x 8 TB WD Red
Win 10 64 bit Pro
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #1 on: September 05, 2017, 07:30:07 am »

First, check to see if MC is rebuilding thumbnails or doing other tasks in the background:

Help > System Info > Background tools running

While you're there you might check to see if your thumbnails are fully built or not.

After that, the normal advice I read here is to actually *uninstall* your anti-virus software, as a test to see if it affects playback.  I'm not expert on Windows and AV, so I'll leave that discussion to others.

I'm not sure if the audio drivers can have an effect on this or not.  What are you using?  WASAPI, ASIO, etc.

Brian.
Logged

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #2 on: September 05, 2017, 08:25:10 am »

Thumbnails are 100% build; Audio Analyzing: 99%

What I have seen is Playback is stuttering. 10 sec Pause, few seonds playback etc.

I Use Devialet AIR (WASAPI). On my two other devices: PC,HTPC - Devialet AIR is working since months without any problems.


Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

JohnT

  • Citizen of the Universe
  • *****
  • Posts: 4627
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #3 on: September 05, 2017, 09:26:44 am »

Is there any DSP happening during playback?

When you view "Help > System Info > Background tools running" does it show "No tools currently running" ?
Logged
John Thompson, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #4 on: September 05, 2017, 09:29:18 am »

Where are your files located?  On local hard drives or on a NAS?

You said "Devialet AIR WASAPI".  That doesn't make sense to me.  Isn't Devialet AIR some kind of wireless streaming protocol or program?  I thought WASAPI was only for directly connected USB devices.

Are you doing wireless streaming or something else? 

Higher CPU utilization *might* be caused by on the fly audio conversion.  MC's default with DLNA is to convert everything to MP3.  It's not clear to me how your setup works, so this last bit of information may or may not be relevant.

Brian.
Logged

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #5 on: September 05, 2017, 10:22:02 am »

- Help-System Info shows: No Background Tools are running

- DSP is completely off

I have also for testing purpose put DLNA off. But the issue remains.
I put Antivirus off. But the issue remains.

No NAS: 1 WD Red 8 TB Local Disk for media storage. 1 Additional for Backup - but currently no backup is running.

No other Software then MC and Devialet AIR is running.

Everything is connected through 1 Gbit Ethernet.

Devialet is a virtual SC which you install on the PC who plays the audio file. It uses WASAPI.

The behaviour is really strange 10 sec playback then you don't hear anything - then its starts again for a few sec. etc. and then the high CPU Utilization (On my PC 0.6% instaed of 60% to 80%).
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #6 on: September 05, 2017, 10:37:40 am »

What I noticed is, when MC is starting audio playback the systems process incresases from 1-2% up to 30% CPU utilisation. Why?
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #7 on: September 05, 2017, 10:42:50 am »

No other Software then MC and Devialet AIR is running.
Did you try it without Devialet AIR?
Logged

JohnT

  • Citizen of the Universe
  • *****
  • Posts: 4627
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #8 on: September 05, 2017, 10:45:08 am »

Have you tried different settings in the "Device settings" dialog, like increasing buffering, trying a different bitdepth, enable/disable exclusive access, etc.?

Try the largest buffer setting and exclusive access.  Also, to eliminate Wi-fi issues as the culprit, try connecting directly with ethernet cable.

Have you updated firmware on the device and got the latest version of Air?
Logged
John Thompson, JRiver Media Center

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #9 on: September 05, 2017, 11:17:46 am »

- Playing Tidal through IE with Devialet AIR works perfect. No issues.

-I put my old Logitec USB speakers through USB in. It works but with the high the high CPU utilization 40 -60%. On my PC it is only ~1 %.

-Device Setting Dialog for Devialet AIR has only a few settings - I leave the default: 100 ms latency (On my HTPC I Could set that to 50ms). I don't think that's the issue.

Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

JohnT

  • Citizen of the Universe
  • *****
  • Posts: 4627
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #10 on: September 05, 2017, 11:38:52 am »

-Device Setting Dialog for Devialet AIR has only a few settings - I leave the default: 100 ms latency (On my HTPC I Could set that to 50ms). I don't think that's the issue.
But in Media Center you can increase the buffer setting - try the largest.  Also, try the largest setting in Devialet AIR just to eliminate that as the problem.  Also in Media Center, make sure "Disable event style" is NOT checked and "exclusive access" IS checked.  Just for testing, try selecting the exact bitdepth of the file (16 or 24) instead of using automatic bitdepth.

Is it only Flac playback that causes high cpu?  What about 16 bit 44.1 WAV or mp3?

Is it importing a bunch of files in the background?  Turn off auto-import.
Logged
John Thompson, JRiver Media Center

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #11 on: September 05, 2017, 11:45:33 am »

I resinstalled AIR - the stuttering is currently! away - but the high CPU utilization remains.
- If I playing Tidal through IE CPU utilization with AIR is < 5%.
- I have the latest Version of Devialet AIR 3.0.4
- I have AUto-Import off.
- mp3 playback 70% CPU utilization
- I increase the buffer size to 500 ms-> High CPU utilisation remains
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

JohnT

  • Citizen of the Universe
  • *****
  • Posts: 4627
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #12 on: September 05, 2017, 11:52:27 am »

Does your "Audio Path" in Media Center say "No changes being made." like this:

Logged
John Thompson, JRiver Media Center

JohnT

  • Citizen of the Universe
  • *****
  • Posts: 4627
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #13 on: September 05, 2017, 11:57:06 am »

Also, please send a log file after playback with high CPU utilization.
Logged
John Thompson, JRiver Media Center

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback
« Reply #14 on: September 05, 2017, 01:43:46 pm »

Yes - Output Path shows no changes.

I have attached a log file - It starts playing music - then no sound - and after 10 sec sound is back.

Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback [Solved]
« Reply #15 on: September 13, 2017, 02:21:14 pm »

I have the ASUS P10S-I server board and it has an ASPEED AST1400 / AST2400 VGA graphics installed. If the spectrum analyzer in MC is on this will lead to up to ~90% CPU utilization of the windows systems process.

Turning the spectrum analyzer off in MC you have the typically CPU utilization of <5%.
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: CPU Utilisation ~ 90% during Audio Playback [Solved]
« Reply #16 on: September 13, 2017, 02:29:24 pm »

Have you tried playback to another device?  A built in sound card would be fine.  Or a direct connected USB sound card.

Brian.
Logged

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1038
Re: CPU Utilisation ~ 90% during Audio Playback [Solved]
« Reply #17 on: September 13, 2017, 02:38:35 pm »

Problem is solved.
It has nothing to with the sound card. Sound Card is Devialet AIR. The ASPEED AST1400 / AST2400 VGA graphics is very week graphics card. So any visual effects like the graphical spectrum analyzer on top of the main window in MC lead to that high CPU utilization. .-)
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 8=2x2+4 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )
Pages: [1]   Go Up