INTERACT FORUM

Please login or register.

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

Author Topic: MC22 uses too much CPU  (Read 8517 times)

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
MC22 uses too much CPU
« on: May 29, 2017, 11:32:23 am »

I have a brand new MacBook Pro late 2016 with USB DAC and USB HDD with the song files. I am an old user of MC, now I have a latest version of MC22. I have observed my MC 22 uses too much the CPU. When it is stoped it uses 17%. I think it is unrealistic. See attached file.
Playing 16/44 Flac it is 22-28, playing 24/96 is above 30.
When I play SACD iso it could reach the 50-60%.
I think something wrong with this version.
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MC22 uses too much CPU
« Reply #1 on: May 29, 2017, 12:14:23 pm »

I see similar behavior.  I'm using roughly 25% while playing 16/44 material, which doesn't bother me.  When I press pause, MC uses 17 to 20% CPU.  When I press Stop, MC drops to under 1% CPU.

I've noticed the "paused CPU usage" for at least a year.  I just know to press stop if it's bothering me.  In the past this paused CPU usage could be very high:  50% or more.  But I haven't seen that in a while and that was on my other Mac (2011 MBP), which I haven't used MC on in a couple of months now.

Brian.
Logged

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #2 on: May 29, 2017, 12:37:53 pm »

I'v uploaded three screenshot:

SACD played - extreme high CPU
SACD paused - 15%
SACD stopped -17%

Interesting.

Zsolt
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5240
  • "Linux Merit Badge" Recipient
Re: MC22 uses too much CPU
« Reply #3 on: May 29, 2017, 01:08:30 pm »

I don't use MC for Mac, but out of curiosity, what happens if you disable the spectrum analyzer in the playing now bar at the top center?  That spectrum analyzer is a source of large mystery CPU usage on the Linux builds, so it's possible it might be contributing here.  Brian, IME on Linux, the usage is especially consistent with your description (i.e. high CPU usage is ongoing while paused but not while stopped). 
Logged

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #4 on: May 29, 2017, 02:49:41 pm »

We had some serious problem with the spectrum analyzer some built ago, since we don't use it - basically switched off when you install it at Mac versions.
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7887
  • Long cold Winter...
Re: MC22 uses too much CPU
« Reply #5 on: May 29, 2017, 03:12:11 pm »

What CPU does the MacBook Pro have? Also, have you tried running the benchmark (Help > Benchmark)? If so, what's the benchmark JMark score?

If I remember correctly, playing SACD, especially multichannel SACD is one of the more CPU intensive tasks. But I can't remember if that's when bitstreaming (which *should* be lower) or converting to PCM/higher DSD on-the-fly.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MC22 uses too much CPU
« Reply #6 on: May 29, 2017, 03:14:54 pm »

Just to be clear, we're talking about the dancing bars display that appears to the left and right of the song information at the top of the screen.  I right clicked and disabled that, then did a few trials.  With spectrum analyzer disabled I get:

44.1 Music:
Playing:  Less than 4% CPU
Paused:  Less than 2% CPU
Stopped:  Slightly less than paused, but still between 1 and 2%

1080P Video:

Playing:  Just under 40 - 45% CPU
Paused:  Less than 3% CPU
Stopped:  Less than 2%

That definitely seems to have made a difference.  I actually had Spectrum analyzer turned off for a LONG time, but turned it back on as a visual indicator of playback, in the rare instance that my DAC or AMP or whatever wasn't responding.  I think I'll just leave it off full time now.

For reference, since Awesome Donkey asked the OP, the JMark on this machine is ~4400 .

Brian.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5240
  • "Linux Merit Badge" Recipient
Re: MC22 uses too much CPU
« Reply #7 on: May 29, 2017, 03:17:52 pm »

Just to be clear, we're talking about the dancing bars display that appears to the left and right of the song information at the top of the screen.  I right clicked and disabled that, then did a few trials.  With spectrum analyzer disabled I get:

44.1 Music:
Playing:  Less than 4% CPU
Paused:  Less than 2% CPU
Stopped:  Slightly less than paused, but still between 1 and 2%

1080P Video:

Playing:  Just under 40 - 45% CPU
Paused:  Less than 3% CPU
Stopped:  Less than 2%

That definitely seems to have made a difference.  I actually had Spectrum analyzer turned off for a LONG time, but turned it back on as a visual indicator of playback, in the rare instance that my DAC or AMP or whatever wasn't responding.  I think I'll just leave it off full time now.

For reference, since Awesome Donkey asked the OP, the JMark on this machine is ~4400 .

Brian.

That's the spectrum analyzer I meant; looks like it's at least partially the same issue in your case.  Sounds like that's not OP's problem, but at least I saved you a few cycles  ;D
Logged

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #8 on: May 30, 2017, 12:47:56 am »

Spectrum Analyzer is definitively switched off.

Zsolt
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MC22 uses too much CPU
« Reply #9 on: May 30, 2017, 06:22:19 am »

The original Brothers In Arms has a much higher dynamic range than the remaster.  The remaster was always oddly boring to me until I figured this out.  I dug out my older version and now I'm happy with Brothers In Arms Again.

I haven't heard the 20th anniversary edition, and I can only find a reference to an SACD in the loudness database.  If the numbers there are correct, the 20th anniversary edition is *horribly* over compressed.  It shows, for example, So Far Away with a dynamic range of 8.  On the remaster I have the DR is 14.  The original CD I have has a DR of 20 for that same track!

I know this is as off topic as it can possibly be.  I hope you'll excuse me.  That album is like an old girlfriend.  I know every detail of it and relish it.

Brian.
Logged

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #10 on: May 30, 2017, 10:03:01 am »

Dear MC Beta Team,

My JRMark (version 22.0.108): 3256
My processor:Intel® Core™ i5-6360U Processor
4M Cache, up to 3.10 GHz
 
Regards,

Zsolt
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7887
  • Long cold Winter...
Re: MC22 uses too much CPU
« Reply #11 on: May 30, 2017, 10:19:30 am »

Yeah, thought it might be a Core-i5 here. That CPU only has two cores, and four threads so the CPU usage is likely normal.

If I recall correctly, SACD/DSD playback (especially multichannel) is one of the most CPU intensive tasks there is. What I can't recall is if that's during bitstreaming (which as far as I know *shouldn't* be that intensive) or when converting SACD/DSD to PCM or a higher DSD output or both.

Nonetheless, it's likely normal usage in this case.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10969
Re: MC22 uses too much CPU
« Reply #12 on: May 30, 2017, 10:33:42 am »

The spectrum analyzer is an interesting beast, the way it draws seems to be very inefficient on anything but Windows, so we should probably revisit how its drawing.
Logged
~ nevcairiel
~ Author of LAV Filters

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #13 on: May 30, 2017, 01:02:38 pm »

Can anybody tell me something about my 17% CPU load when nothing is played?
Is it normal?

Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7887
  • Long cold Winter...
Re: MC22 uses too much CPU
« Reply #14 on: May 30, 2017, 01:18:16 pm »

That depends. Is MC building thumbnails in the background? Go to Help > System Info and look under Background Tools Running and see if anything's there.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #15 on: May 30, 2017, 01:27:47 pm »

You are right!
Background Tools Running is nothing, but Thumbnails Built is 7% and Audio analyzed is 44%.
So they are running when I stop the music, and maybe also during playing?
That is why higher my all value than usual?
Thanks for the idea!
Zsolt

Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7887
  • Long cold Winter...
Re: MC22 uses too much CPU
« Reply #16 on: May 30, 2017, 01:31:20 pm »

They run in the background until the task(s) are complete, which it seems they have a while yet until completion. You *can* disable both via the configure auto-import dialog unless you can live with it until it's done (IMO, I'd leave it enabled and let it do its thing - especially if you're interested in using volume leveling).
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Zsolt Andrasy

  • Junior Woodchuck
  • **
  • Posts: 57
Re: MC22 uses too much CPU
« Reply #17 on: May 30, 2017, 01:37:34 pm »

Yes, I will let them run. Volume leveling is a useful thing. I don't need to turn the amplifier's knob up and down always.
Thanks for the support!
Logged
MacBook Pro 2016 13", Soekris dam 1021 DAC, Almarro A318B, PrimaLuna DiaLogue Premium, Qattro mkII loudspeakers by Troels Gravesen

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: MC22 uses too much CPU
« Reply #18 on: June 16, 2017, 04:11:40 pm »

The spectrum analyzer is an interesting beast, the way it draws seems to be very inefficient on anything but Windows, so we should probably revisit how its drawing.
It's not really efficient on windows either.
An accelerated FFT would be good.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10969
Re: MC22 uses too much CPU
« Reply #19 on: June 16, 2017, 04:26:47 pm »

We can probably do something about the FFT. I do remember seeing high X11 cpu usage figured with the thing on as well though, unless that was mitigated already since then.
Logged
~ nevcairiel
~ Author of LAV Filters

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: MC22 uses too much CPU
« Reply #20 on: June 19, 2017, 09:01:35 am »

We can probably do something about the FFT. I do remember seeing high X11 cpu usage figured with the thing on as well though, unless that was mitigated already since then.
I pulled the drawing code out to test it and it had virtually no effect on CPU usage so I came to the conclusion that it's the algorithm that's the issue.

Logged

dfortney

  • Galactic Citizen
  • ****
  • Posts: 310
Re: MC22 uses too much CPU
« Reply #21 on: June 19, 2017, 10:22:39 am »

Nice post here as it has alerted me to the culprit of MC using 10% of my cpu.  when i turn off the spectrum analyzer it drops to only 2%  :o

Definitely keeping this option turned off as sometimes I would get minor glitches during playback and every cycle counts.  Those displays are gaudy anyways.  I have never liked them.
Logged
Pages: [1]   Go Up