INTERACT FORUM

Please login or register.

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

Author Topic: Large playlists (20k) and 100% cpu usage  (Read 3789 times)

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Large playlists (20k) and 100% cpu usage
« on: August 25, 2006, 12:54:02 am »

The more I've been using  MC 12 the more annoying this is getting: I use a rock playlist alot that has about 22k songs and whenever I scroll thru the song list the cpu power goes to 100%.

If I only scroll thru 100 tracks or so, it takes a couple or 3 seconds to recover, if I jump halfway down the list then it can stay at 100% cpu for a minute or two. In the meantime, the sound is being clipped, (similar to audio clipping).

I only started noticing this the 5 or 6 builds, as I wasn't using 12 as much before then. It doesn't do it in MC 11.xxx or 10.


Media Center Registered 12.0.59 -- C:\Program Files\J River\Media Center 12\

Microsoft Windows 2000 5.0 Service Pack 4 (Build 2195)
AMD Athlon 1641 MHz MMX / Memory: Total - 523 MB, Free - 272 MB

Internet Explorer: 6.0.2800.1106 / ComCtl32.dll: 5.81.4916 / Shlwapi.dll: 6.0.2800 / Shell32.dll: 5.0.3900 / wnaspi32.dll: N/A
Ripping /   Drive Y:   Mode:Normal  Type:Auto  Speed:Max
  Digital playback: Yes /  Use YADB: Yes /  Get cover art: No /  Calc replay gain: Yes /  Copy volume: 32767
  Eject after ripping: Yes /  Play sound after ripping: No 

Burning /  Drive Y: LITE-ON  LTR-32123S         Addr: 2:0:0  Speed:32  MaxSpeed:32  BurnProof:Yes
  Test mode: No /  Eject after writing: Yes /  Direct decoding: Yes /  Write CD-Text: Yes
  Use playback settings: No /
Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41953
  • Shoes gone again!
Re: Large playlists (20k) and 100% cpu usage
« Reply #1 on: August 25, 2006, 01:06:39 am »

It's probably building thumbnails.  This is a one-time thing.

You could let it build them all overnight in Options > Tree & View > Thumbnails.
Logged
Matt Ashland, JRiver Media Center

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Large playlists (20k) and 100% cpu usage
« Reply #2 on: August 25, 2006, 01:10:49 am »

It's probably building thumbnails.  This is a one-time thing.

You could let it build them all overnight in Options > Tree & View > Thumbnails.

Yep. I found that this solved all the performance problems I was initially having.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

rpalmer68

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2639
Re: Large playlists (20k) and 100% cpu usage
« Reply #3 on: August 25, 2006, 01:29:30 am »

I've been having performace issues on my client running off the library server, it's very slow and unresponsive at times when browsing views.

So I thought I'd rebuild the thumbnails on the client to see if this helped.

But the rebuild is VERY slow!  It's doing about 1 thumbnail every 50 seconds over the LAN.

Should I be able to rebuild the thumbnails from the library server?

Also every time I close and run the MC client and scroll through my track lists the thumbnails are missing and seem to get reloaded from the server.  Shouldn't they be cached locally (hence rebuilding thumbnails)

MC Ver 12.0.60.

Richard
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Large playlists (20k) and 100% cpu usage
« Reply #4 on: August 25, 2006, 04:54:02 am »

Caching the thumbnails locally is not possible because a client downloads a new copy of the server library each time it connects. Changed thumbnails would be wrong. Perhaps it could download the thumbnails too, but with a big server library this would be make the initial connection much slower.

I think that at least three new options would be needed:
- disable "tiny icons"
- disable thumbnails with video files
- disable cover art and thumbnails completely (this would be good for internet connections)
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

rpalmer68

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2639
Re: Large playlists (20k) and 100% cpu usage
« Reply #5 on: August 25, 2006, 07:49:49 am »

Caching the thumbnails locally is not possible because a client downloads a new copy of the server library each time it connects. Changed thumbnails would be wrong. Perhaps it could download the thumbnails too, but with a big server library this would be make the initial connection much slower.

I think that at least three new options would be needed:
- disable "tiny icons"
- disable thumbnails with video files
- disable cover art and thumbnails completely (this would be good for internet connections)

I wouldn't like to see the thumbnails downloaded each time, but having the tiny thumbnails when browsing  with library server makes it system very slow and unresponsive.

As you suggest maybe an option to turn them off and just have the old blue/gold notes like MC11 (there's another thread on this!) would be a good idea.

Richard
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41953
  • Shoes gone again!
Re: Large playlists (20k) and 100% cpu usage
« Reply #6 on: August 25, 2006, 07:54:13 am »

Thumbnails are cached on the client when connecting to library server.  The client keeps a local copy of thumbnails on a per-library basis.

As a test, if you use a local library (with thumbs built) instead of library server, are all the performance issues gone?

Thanks.
Logged
Matt Ashland, JRiver Media Center

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Re: Large playlists (20k) and 100% cpu usage
« Reply #7 on: August 25, 2006, 01:45:42 pm »

I am sorry to be a bit dense about this (I'm not a power user):

I have "build thumbnails" checked in options/tasks. Is there something I have to do to initiate this?

And why do I have to build thumbnails? My cover art is stored in the media files. When I switch between detail and thumbnail views, the thumbnails are all there. I mostly use the detail view and this 100% cpu happens in both views.

I have 40k plus media files and cover art for every album, stored both in the file and next to.
Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Large playlists (20k) and 100% cpu usage
« Reply #8 on: August 25, 2006, 02:07:21 pm »

Thumbnails are cached on the client when connecting to library server. The client keeps a local copy of thumbnails on a per-library basis.

Does this mean that a client creates thumbnails on the need basis, stores the generated thumbnails and after a reconnect creates only missing thumbnails when needed (just like MC does by default with a local library). How can a client know if a thumbnail has changed on the server?

I suppose you don't mean that a client downloads the server thumbnails on each reconnect.

(I have not tried MC12's Library Server yet.)


modelmaker,

MC uses its own fast thumbnails in thumbnail views. Accessing the source image files directly would be too slow. If you have a thumbnail for each cover art then the high CPU usage is caused by something else.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: Large playlists (20k) and 100% cpu usage
« Reply #9 on: August 25, 2006, 02:27:24 pm »


modelmaker,

MC uses its own fast thumbnails in thumbnail views. Accessing the source image files directly would be too slow. If you have a thumbnail for each cover art then the high CPU usage is caused by something else.

To Modelmaker,

However, you may just "think" you have all your thumbnails build but, reading your posts, I would gess not unless you have already scrolled down ALL your files at least once since you installed MC.12 and with your number of files it may be unlikely.

If I'm not wrong, there have been at least two major changes to the thumbnail engine since the introduction of MC.12 that required building new thumbnails.

You can try what Matt suggested:

Go to Tools -> Options -> Tree & View -> Thumbnails -> Build missing thumbnails

(Let it run overnight)

Then you positively will have all your thumbnails build.

Try to scroll again your huge playlist and see if the problem persists.
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Large playlists (20k) and 100% cpu usage
« Reply #10 on: August 25, 2006, 02:38:06 pm »

If I'm not wrong, there have been at least two major changes to the thumbnail engine since the introduction of MC.12 that required building new thumbnails.

I just installed 12.0.60. It removed all old thumbnails and is now recreating them.

(Or is just me? 12.0.59 crashed during thumbnail building and I installed 12.0.60 after that. So perhaps the thumbnails were corrupted.)
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Deivit

  • Citizen of the Universe
  • *****
  • Posts: 1215
  • I find your interest interesting...
Re: Large playlists (20k) and 100% cpu usage
« Reply #11 on: August 25, 2006, 03:05:44 pm »

The two changes that I was referring to were in July, I'd say.
Can't comment on build 60 though... still with 59  ;D

------
12.0.37 (7/18/06)
12. Changed: Updated thumbnailing engine for improved performance. (thumbnails will need to be rebuilt)
------

I can't find the other one, but I'm almost positive that I had to rebuild thumbnails twice... maybe it was the first build that was available to us?...
Logged

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Re: Large playlists (20k) and 100% cpu usage
« Reply #12 on: August 25, 2006, 03:26:36 pm »

I never turn MC (or my computer) off - it's always running. I have Build Thumbnails enabled.

I just installed .60 How can I tell if MC is building thumbnails and when it's done?
Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71420
  • Where did I put my teeth?
Re: Large playlists (20k) and 100% cpu usage
« Reply #13 on: August 25, 2006, 03:29:48 pm »

Go to tools/options/tree and view and tell MC to rebuild missing thumbnails.  It will tell you what it's doing.
Logged

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Re: Large playlists (20k) and 100% cpu usage
« Reply #14 on: August 25, 2006, 03:41:45 pm »

Sorry, my bad!  :-[ I had Tools/Options/Tasks/Build Thumbnails checked,which I guess only works when Otto is enabled, which it isn't at the moment. Duh!  :) I'll do the other and report back when done.

(and I've only been using MC for 3 and a half years!!)
Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Re: Large playlists (20k) and 100% cpu usage
« Reply #15 on: August 25, 2006, 04:53:38 pm »

I got to about 5000 built and then the DivX manager pops up in my task bar for a brief second and then MC closes. I've tried it 3 times. Same results. All pugsins are disabled and I'm using the default skin.

I uninstalled DivX and I'm going to try again.

Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

modelmaker

  • Citizen of the Universe
  • *****
  • Posts: 1531
Re: Large playlists (20k) and 100% cpu usage
« Reply #16 on: August 25, 2006, 04:57:07 pm »

With DivX uninstalled, thumbnail building completed without a hitch. 42 106 in 39 minutes.

This solved the scrolling problem. Thanks all!

Does anyone have any isea why DivX was interfering with the process?
Logged
Jay.

"Life is what happens when you're making other plans"     John Lennon.

rpalmer68

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2639
Re: Large playlists (20k) and 100% cpu usage
« Reply #17 on: August 25, 2006, 05:20:46 pm »

Thumbnails are cached on the client when connecting to library server.  The client keeps a local copy of thumbnails on a per-library basis.

As a test, if you use a local library (with thumbs built) instead of library server, are all the performance issues gone?

Thanks.

Matt,

My machine with the local library seems to be performing OK now that I've built all the thumbnails but my client using the library server doesn't seem to cache the thumbnails.

Doing a rebuilt thumbnails takes a VERY long time, approx 50 seconds per thumbnail!! so instead I deleted all thumbnails on the client and then browsed my library and let MC build the thumbnails that way which believe it or not was MUCH quicker. 

Once the thumbnails were built browsing performance seemed OK, until I clicked on an artist that didn't have any album art (I haven't scanned them yet, and approx 470 tracks) and then things slowed down until it seemed that MC had worked out that there was no album art on the server and then it came right again.

BUT if I close the MC client and open it again all my thumbnails are gone and have to be built again.

So for me the MC client IS NOT caching local thumbnails when using the library server and thus gives performance issues.

Richard

Logged
Pages: [1]   Go Up