PDA

View Full Version : CPU Utilization Slim V6.0.2 and iTunes



tschmidt
2005-05-07, 06:52
I'm having some serious performance issues with V6.0.2. When the server is started for the first time ever it pegs the CPU close to 100% for about 5 mins. I can understand this since it is importing the library for the first time.

The problem is if I have slim and iTunes running at the same time any small change made in iTunes (like adding or deleting a track) causes slim to hog the CPU. Slim will immediatly jump to 80% CPU utilization and stays there for a while. Seems like the only option is to shutdown slim while making iTunes changes and then fire it back up and wait for it to make it's updates.

My setup:

Windows XP SP2
P4 2.53GHz
1 GB Memory
Two Disks (C:111GB D: 228GB)

SqueezeBox one squeeze box connected over wired 100Mbps network

iTunes Settings:
Music Folder D:\My Music\iTunes\iTunes Music
Keep iTunes Music folder organized is checked
Copy files to iTunes Music folder when adding to library is checked
Library has 8539 songs, 312 Artists, and 583 Albums 44.88GB
Version 4.7.1.30
Most songs are mp3, though I have about 200 AAC files.

Slim Server:
Version 6.0.2
Server Settings:
Language: English
Music Folder: Blank
Playlists Folder: D:\My Music\My Playlists
iTunes: User iTunes
iTunes:
iTunes Reload Interval: 60
Ignore Songs Disabled in iTunes: Ignore songs unchecked in iTunes
Find iTunes Library Automatically: Find iTunes Library Automatically (though I have tried Specify iTunes Library Locations without any change)
iTunes Music Library.xml Location: D:\My Music\iTunes\iTunes Music Library.xml
iTunes Music Folder: D:\My Music\iTunes\iTunes Music
iTunes Playlist Format: Prefix: iTunes:
Plugins:
Load Plugins at startup Only
Datetime Screensaver - Active
Rescan Music Library - Active
Save Playlist - Active
iTunes Active
All other plugins disabled.
All other slim settings are default.

John Gorst
2005-05-07, 07:16
> Slim Server:
> Version 6.0.2
> Server Settings:
> Language: English
> Music Folder: Blank
> Playlists Folder: D:\My Music\My Playlists
> iTunes: User iTunes
> iTunes:
> iTunes Reload Interval: 60

This is your problem. Every time you make a change in itunes, within 60
seconds this will be detected by slimserver. This will trigger a rescan
(not sure if it is of all songs or just the itunes song list) which will
bump up the cpu useage. Set this to 24 hours (24*60*60) and it will
update it at the same time every day ( I assume if you started
slimserver at 2am it would run the itunes rescan at 2am the next day?)

HTH

tschmidt
2005-05-07, 08:27
Ok, thanks I will turn down the refresh interval. Should slim really take that much CPU though. Seems like it should play nicer with the other apps on the system. If it really is this system intensive it might be nice to be able to schedule it to run in the middle of the night rather than on an interval.

Also, I had the same setting with older versions and never noticed this big a CPU hit after a library update. Is the new version much more CPU hungry when it scans the library?

kdf
2005-05-07, 12:37
the iTunes scan should be taking as much CPU as is freely available, but not by
killing others. The exception is that itunes playlists are loaded in a burst.
do you have a number of large track count playlists in itunes?

tschmidt
2005-05-07, 17:58
Yes, I have a playlist that is all the songs in iTunes that are not checked (about 7000 songs). That is the only way in iTunes to filter unchecked songs out of the library. It is also an autoupdating playlist. So does slim server reload the entire playlist if a single song is added or removed?

Dan Sully
2005-05-08, 00:36
* tschmidt shaped the electrons to say...

>Yes, I have a playlist that is all the songs in iTunes that are not
>checked (about 7000 songs). That is the only way in iTunes to filter
>unchecked songs out of the library. It is also an autoupdating
>playlist. So does slim server reload the entire playlist if a single
>song is added or removed?

Yes.

-D
--
They're techno trousers, ex-NASA, fantastic for walkies!

Craig, James (IT)
2005-05-09, 09:33
>If it really is this system intensive it might be nice to be able to
schedule it to run in the middle of the
>night rather than on an interval.

You can;
Set the iTunes rescan interval to 0 and use the 'rescan' plugin to set a
scheduled time.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.