PDA

View Full Version : Question about 6.5b1 on OS 10.4.6



Nikhil
2006-05-12, 19:23
My main setup consists of SlimServer 6.1.1 running off a Buffalo Linkstation (1st Gen PowerPC version) with mostly flac files and some mp3s, so no server side transcoding. Also all extras such as album artwork have been disabled. The SB2 has firmware 15. This has worked great for me, so I have never bothered upgrading. Why fix what isn't broken.

As a backup, I have the contents of the Linkstation mirrored on a firewire drive attached to a Mac Mini (1.42 GHz PowerPC, OS 10.4.6). I run another Slim Server off this mac, which I frequently update with nightly builds. I mainly use this to stream to SoftSqueeze over the net to work (transcoding flac to 160 kbps mp3s). This also works wonderfully for me. (it takes a few seconds to start a new song, but I can easily forgive it because my home Comcast upload speed is quite crummy as is our office connection, plus it has to do all that transcoding).

Today, I was testing the Mac server with the SB2 and noticed that contrary to my expectations, the performance was worse than what I get with the Linkstation. e.g. when in a random mix, if I skip a couple of tracks ahead, the song will play for about 8-10 seconds, then stutter, then pause a few seconds, and then resume again. I have never noticed this with playlists in 6.1.1 from the Linkstation. I made sure all extras like album art, server statistics, etc were disabled, and also toggled between no transcoding of flac, or alternatively transcoding to wav .. all to no effect. The processor and memory usage on the mac are pretty low (averages 5-15%, and occasionally peaks to abot 50%) and there aren't too many other processes running.

Any ideas what is happening here?

Thanks,

Regards,

Nikhil

Nikhil
2006-05-13, 10:15
I think I have partially addressed the problem, by upgrading to a 6.5b1 Mac nightly from yesterday. The audio stuttering does not happen any more. Its only the display that freezes for a few seconds now. Mildly annoying, but no longer an issue as far as I am concerned.

Nikhil

andyg
2006-05-13, 10:18
Does the display only freeze when you're using the web interface? If you want, you can run with --perfwarn=0.5 and it might help us figure out where the problem is.

Nikhil
2006-05-13, 10:48
I wasn't using the web interface when I noticed the problem, in fact my browser wasn't even on.

the '--perfwarn=0.5' option ... how would I enable this on the Mac?

Nikhil

andyg
2006-05-13, 11:09
Open up Terminal and run from the command line:

cd ~/Library/PreferencePanes/SlimServer.prefPane/Contents/server
./slimserver.pl --perfwarn=0.5

Nikhil
2006-05-13, 12:25
ok done ...

what am I looking for now? Do you want me to send a log file or send you the text output in the terminal window?

I don't know if this is because of the 'perfwarn' switch or because I have just had lunch and my mind is playing tricks on me, but I haven't noticed the freeze since I restarted even though there appears to be a longer pause between tracks.

Nikhil

Nikhil
2006-05-13, 12:27
Here's what it says:



2006-05-13 15:15:43.5307 Request Task > 0.5 : 1.17318296432495
2006-05-13 15:15:43.5324 Notify: Slim::Player::Playlist::modifyPlaylistCallback
2006-05-13 15:15:43.5332 Response Time > 0.5 : 1.17605400085449
2006-05-13 15:15:53.1527 Timer Task > 0.5 : 0.611921072006226
2006-05-13 15:15:53.1540 Slim::Buttons::ScreenSaver::screenSaver
2006-05-13 15:15:53.1548 Response Time > 0.5 : 0.614065885543823
2006-05-13 15:17:19.6078 Request Task > 0.5 : 0.569100141525269
2006-05-13 15:17:19.6096 Execute: Slim::Control::Commands::playlistJumpCommand
2006-05-13 15:17:19.6172 Request Task > 0.5 : 0.580451965332031
2006-05-13 15:17:19.6181 Execute: Slim::Control::Commands::buttonCommand
2006-05-13 15:17:19.6187 Timer Task > 0.5 : 0.583076000213623
2006-05-13 15:17:19.6192 Slim::Hardware::IR::checkRelease
2006-05-13 15:17:19.6200 Response Time > 0.5 : 0.584443092346191
2006-05-13 15:17:26.1514 Select Task > 0.5 : 6.50694704055786
2006-05-13 15:17:26.1525 Slim::Web::HTTP::sendStreamingResponse
2006-05-13 15:17:26.1537 Response Time > 0.5 : 6.50940608978271
2006-05-13 15:17:52.8379 Request Task > 0.5 : 0.592267036437988
2006-05-13 15:17:52.8396 Execute: Slim::Control::Commands::playlistJumpCommand
2006-05-13 15:17:52.8474 Request Task > 0.5 : 0.603018045425415
2006-05-13 15:17:52.8538 Execute: Slim::Control::Commands::buttonCommand
2006-05-13 15:17:52.8547 Timer Task > 0.5 : 0.611436128616333
2006-05-13 15:17:52.8555 Slim::Hardware::IR::checkRelease
2006-05-13 15:17:52.8565 Response Time > 0.5 : 0.613310813903809
2006-05-13 15:22:18.8641 Timer Task > 0.5 : 0.507690906524658
2006-05-13 15:22:18.8658 Slim::Buttons::Common::_periodicUpdate
2006-05-13 15:22:18.8666 Response Time > 0.5 : 0.510355949401855


--- and a bit later ... now i'm noticing the problem again ----

2006-05-13 16:36:29.4756 Request Task > 0.5 : 4.61795997619629
2006-05-13 16:36:29.4769 Notify: Plugins::RandomPlay::Plugin::commandCallback
2006-05-13 16:36:29.4782 Response Time > 0.5 : 4.62418293952942
2006-05-13 16:37:37.7077 Request Task > 0.5 : 0.575215816497803
2006-05-13 16:37:37.7097 Execute: Slim::Control::Commands::playlistJumpCommand
2006-05-13 16:37:37.7200 Request Task > 0.5 : 0.588814973831177
2006-05-13 16:37:37.7211 Execute: Slim::Control::Commands::buttonCommand
2006-05-13 16:37:37.7236 Timer Task > 0.5 : 0.593553066253662
2006-05-13 16:37:37.7244 Slim::Hardware::IR::checkRelease
2006-05-13 16:37:37.7258 Response Time > 0.5 : 0.59578800201416
2006-05-13 16:37:48.9040 Request Task > 0.5 : 10.594743013382
2006-05-13 16:37:48.9057 Notify: Plugins::RandomPlay::Plugin::commandCallback
2006-05-13 16:37:48.9076 Response Time > 0.5 : 10.6008229255676
2006-05-13 16:37:49.7969 Request Task > 0.5 : 0.872148036956787
2006-05-13 16:37:49.7981 Notify: Slim::Player::Playlist::modifyPlaylistCallback
2006-05-13 16:37:49.7991 Response Time > 0.5 : 0.890375137329102
2006-05-13 16:37:50.5437 Request Task > 0.5 : 0.729671001434326
2006-05-13 16:37:50.5448 Notify: Slim::Player::Playlist::modifyPlaylistCallback
2006-05-13 16:37:50.5457 Response Time > 0.5 : 0.745738983154297

andyg
2006-05-13, 14:02
Looks like the problem might be Random Play. Are you using that? Try playing something without using Random and see if you still have problems.

Nikhil
2006-05-13, 14:23
yup, that's it. random play is the culprit. any solutions / workarounds?

Thanks,

N

mjt5282
2006-05-13, 17:22
maybe your Mac Mini needs more entropy to make Random() return faster ? Just a guess.