PDA

View Full Version : 5.2 Stutter



Clive Chater
2004-07-03, 03:37
OK, that would figure. What other issues would there be if the cache
writing was disabled completely. Or what if the cache writing was
configured to do it write once every 24hours at 3am. I assume if I
restarted the server at 3am cache writing would start at that point.

Is this file I am supposed to edit in plain text? How do I comment out the
lines. I am used to VB where I would just use a '. Is it the same?

Thanks

Clive

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Richard Purdie
Sent: 03 July 2004 10:56
To: Slim Devices Discussion
Subject: [slim] 5.2 Stutter

Clive Chater:
> I would really appreciate it if the SlimDevices team would fix this.
Every
> other glitch and problem in the past has been eradicated by their hard
work.
> I am generally very happy with the setup. It's just a little annoying
when
> these dropouts occur. Also when I have people around for meals etc I
have
> to keep making excuses for it.
>
> If I can be of any help with logs or debugging please let me know.

I strongly suspect this stutter is being caused when the server saves
it's cache (which happens every 30 mins). In the long run this problem
goes away if/when Slim Server switches to a proper database for storing
the cache data. That isn't going to happen overnight however.

Short term solutions include:

Altering the frequency the server saves the cache. This is controlled by
the line "my $dbSaveInterval = 3600" in Slim/Info.pm.
Disable the this saving of the cache completely by commenting out the
two lines in sub saveDBCacheTimer in the same file.
Increasing the processing power of the machine running the Slim Server
Reducing the size of the music library.

Obviously some of these are better than others and none are ideal. Given
people with large libraries are seeing this as a problem, the above bits
of code should probably become preferences for now. Dean/Vidur?

--
RP

Richard Purdie
2004-07-03, 08:22
Clive Chater:

I've just had another look at the code after James Dunn's comment about
not running the cache and the timer is set to an hour between cache
saves, not 30 mins. It therefore follows that it probably isn't the
cache saving that is the issue but something else. My apologies on that
as I could have sworn the cache was saved every 30 mins!

I've replied to your questions in case you do want to rule it out for
certain:

> OK, that would figure. What other issues would there be if the cache
> writing was disabled completely.

Cache writing would still happen after a rescan which is when it is most
needed. It just means the copy of the data on the disk may be out of
date and any restart time may be longer. It depends what changes you
make to the library in the meantime really.

> Or what if the cache writing was
> configured to do it write once every 24hours at 3am.

That would be another option.

> I assume if I
> restarted the server at 3am cache writing would start at that point.

Correct.

> Is this file I am supposed to edit in plain text? How do I comment
out the
> lines. I am used to VB where I would just use a '. Is it the same?

The files are plain text and you'd place a '#' at the start of the line
to comment them out.

--
RP