[SlimDevices: Beta] Re: Windows Process Priority & Standby
mirage62 Wrote: > Yes, the latest version still starts a complete scan every time the > server is started :-( That would be a big problem for me. I'll submit an enhancement request to either have it removed or made optional. -- Mark Lanctot Mark Lanctot's Profile: http://forums.slimdevices.com/member.php?userid=2071 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
oreillymj Wrote: > Browny > I might be wrong, but I don't believe this is something which can be > set at install time. > > The .exe has to be compiled so that it sets itself up with a certain > priority at run time. I don't even know if it could be a prefs option. > > Mick Hi Mick, Agreed the Install program can't force it at install time, but it can set a flag either in the registry or the pref file that the exe should be able to use. I don't think you need to have the process priority set at compile time - there is an API call on Windows to set the priority dynamically. Cheers, Browny -- Browny http://www.last.fm/user/BrownySV/ Browny's Profile: http://forums.slimdevices.com/member.php?userid=2295 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Yes, the latest version still starts a complete scan every time the server is started :-( -- mirage62 mirage62's Profile: http://forums.slimdevices.com/member.php?userid=396 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
OK - although the process priority has been set back to normal (thanks Dan!) does it still rescan on startup? -- Mark Lanctot Mark Lanctot's Profile: http://forums.slimdevices.com/member.php?userid=2071 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I'd like to add my voice to the "please make this optional" crowd. I don't believe Windows processes should by default take a high priority. This would explain why I've been having problems. I installed 6.2.2 yesterday and had a variety of issues, which I tracked down to Slim having a high priority. Eventually, I was able to change this to normal, and everything was OK again. The problem arises when rescanning a MusicMagic (or Music IP now) library. Because Slim takes all the CPU priority, I think MIP runs into trouble. As a general rule, processes should be Normal, and set to high as the need arises perhaps. So, while 6.2.2 is set as High by default I'm not going to be able to use it. Chris. -- chris.mason chris.mason's Profile: http://forums.slimdevices.com/member.php?userid=3323 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
cbemoore Wrote: > This is only a problem during scanning - once the scan's finished, your > PC should respond fine. > That's true, but rescanning can take up quite some time (at least it does in my situation) cbemoore Wrote: > But if you download the latest nightly build (which appeared a few > minutes ago) you'll see that Dan's now changed the process priority > back to 'normal'. Thanks Dan! Thanks for that quick reaction, everything's back to normal now! :-) -- SlimPvC SlimPvC's Profile: http://forums.slimdevices.com/member.php?userid=51 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
SlimPvC Wrote: > Can anyone tell me how I can change the priority level back to normal? I > tried to do so via task manager (windows XP), but I can't: I get the > message 'access denies' because the process is in use. > Ending the process doesn't help - and reindexing starts after > restarting the service. It seems slimserver now keeps my PC occupied > for ages - I can even hardly type this forum message :-( > > To me, this is not an enhancement - please let's go back to 'normal'... This is only a problem during scanning - once the scan's finished, your PC should respond fine. But if you download the latest nightly build (which appeared a few minutes ago) you'll see that Dan's now changed the process priority back to 'normal'. Thanks Dan! -- cbemoore cbemoore's Profile: http://forums.slimdevices.com/member.php?userid=163 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
Re: [SlimDevices: Beta] Re: Windows Process Priority & Standby
Can anyone tell me how I can change the priority level back to normal? I Dan reverted that change. It should be back to "normal" in today's builds. -- Michael --- Help translate SlimServer by using the SlimString Translation Helper (http://www.herger.net/slim/) ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Can anyone tell me how I can change the priority level back to normal? I tried to do so via task manager (windows XP), but I can't: I get the message 'access denies' because the process is in use. Ending the process doesn't help - and reindexing starts after restarting the service. It seems slimserver now keeps my PC occupied for ages - I can even hardly type this forum message :-( To me, this is not an enhancement - please let's go back to 'normal'... -- SlimPvC SlimPvC's Profile: http://forums.slimdevices.com/member.php?userid=51 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I too, have experienced that the PC I'm running slimserver is almost unusable for about 15 minutes after startup. Also after a restart of the slimserver service. So the 'high' priority is no enhancement for me. -- SlimPvC SlimPvC's Profile: http://forums.slimdevices.com/member.php?userid=51 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Browny I might be wrong, but I don't believe this is something which can be set at install time. The .exe has to be compiled so that it sets itself up with a certain priority at run time. I don't even know if it could be a prefs option. Mick -- oreillymj oreillymj's Profile: http://forums.slimdevices.com/member.php?userid=699 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Please don't set priority to "high" - ever, if possible. Even "above normal" will mess up my convolver, which is in the transcoding pipeline (with normal process priority regardless of the slimserver setting) and needs more CPU than the base server does. If you need a boost on the handler thread to wake up faster, then boost the thread, not the process. -- inguz inguz's Profile: http://forums.slimdevices.com/member.php?userid=1139 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I'll post again as my initial post to this thread was ignored. I know this is 'beta' software - but please please please make the process priority optional. Anything other than 'Normal' screws up my TV viewing. The TV software (think TiVo on steroids) processes and demuxes 54MBit of Digital Terrestrial data every second. I'd prefer not to have to choose between TV or Slimserver - I want them both! -- stevieweevie stevieweevie's Profile: http://forums.slimdevices.com/member.php?userid=4338 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I would agree that this should definately be optional. As this is specific to the Windows Install could this not be an installation option - a question something like 'Will this machine be a dedicated Slimserver?' If the user says yes then set the process priority to High, otherwise leave it at Normal. -- Browny http://www.last.fm/user/BrownySV/ Browny's Profile: http://forums.slimdevices.com/member.php?userid=2295 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
* cbemoore shaped the electrons to say... And some feedback from me: I use my PC for general web/email/word processing, as well as a Slimserver server. Running Slimserver with high priority has no adverse effects in normal use, but when I rescan my (large) library, the PC is practically unusable for a couple of hours while while the scan is in progress. Ok - thanks. I'll probably change it to 'Above Normal'. Once the split-scanner code is merged to the trunk, would it be possible for the scanner process to run at normal priority, even though the SlimServer process is running at high priority?? Yes. We'll probably run the scanner at low priority. -D -- They're techno trousers, ex-NASA, fantastic for walkies! ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
And some feedback from me: I use my PC for general web/email/word processing, as well as a Slimserver server. Running Slimserver with high priority has no adverse effects in normal use, but when I rescan my (large) library, the PC is practically unusable for a couple of hours while while the scan is in progress. Once the split-scanner code is merged to the trunk, would it be possible for the scanner process to run at normal priority, even though the SlimServer process is running at high priority?? Cheers Chris -- cbemoore cbemoore's Profile: http://forums.slimdevices.com/member.php?userid=163 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Dan, Just some feedback on processes with high priority in Windows. The only other non-system app I have that runs with high priority is my Nero CD burning app. If this app hangs I find that I can't kill the process. I have to reboot my machine. Now I've never had Slimserver hang on me, but maybe it would be better to run the process at above-normal priority so that it can still be killed by taskmgr if needed. -- oreillymj oreillymj's Profile: http://forums.slimdevices.com/member.php?userid=699 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Dan Sully Wrote: > All - I just made a checkin to the 6.5 and 6.2.2 trees that sets the > Windows > Process Priority to 'High'. Please let me know if you experience any > issues > with this. The goal here is to reduce any sort of delay if your machine > has > been sitting idle for a while and you pick up the remote. > Hi Dan, would it be possible make this high priority 'optional' in some manner? Maybe a command line switch? The HTPC we have running Slimserver has a bunch of stuff that has to share CPU resource on a level playing field. For example, if one application steals too much CPU we lose access to 30 Digital Television Channels and have to go to Analogue which only gives us 4. I don't have any comment on the power saving plugin as the HTPC has to be on 24/7 chugging away with all Windows Power saving options disabled. Many thanks :-) -- stevieweevie stevieweevie's Profile: http://forums.slimdevices.com/member.php?userid=4338 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I had a problem (sync) which I solved by hiking up the priority of both Slimserver and SoftSqueeze (both on same machine, a dedicated server) with this freeware for Windows: http://www.prnwatch.com/prio.html Works fine - I simply set slim.exe to priority "realtime" and softsqueeze to the same. Works very well. You can do that without this program - but then Windows won't remember it after a reboot so it's not really an option. Prio also improves on the Task Manager interface with more information - so it's definitely worth installing since it doesn't cost anything. -- CarlOtto CarlOtto's Profile: http://forums.slimdevices.com/member.php?userid=3581 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Okay so it think this is working now. It now shos up in the plugins list. I've made a few changes, but I think the main fix required was as "Use" statement at the top of the module. I'm not sure if the sub enabled & sub getFunctions are required. package Plugins::PreventStandby::Plugin; # $Id: Plugin.pm 6838 2006-04-06 18:19:53Z dsully $ # PreventStandby.pm by Julian Neil ([EMAIL PROTECTED]) # # Prevent the server machine from going into standby when it is streaming # music to any clients. Only works in Windows because it uses the CPAN # Win32:API module. # # Excuse my perl.. first time I've ever used it. # # Thanks to the PowerSave plugin by Jason Holtzapplefor some basics, # to various ppl on the slim forums and to CPAN and the Win32::API module. # #-> Changelog # # 1.0 - 2006-04-05 - Initial Release use strict; use Slim::Utils::Misc; use Slim::Utils::OSDetect; use Win32::API; # how many seconds between checks for playing clients my $interval = 60; # keep the timer so we can kill it if we want my $timer = undef; # reference to the windows function of same name my $SetThreadExecutionState = undef; sub getDisplayName { return 'PLUGIN_PREVENTSTANDBY'; } sub enabled { return ($::VERSION ge '6.1'); } sub getFunctions { return ''; } sub checkClientActivity { $timer = undef; for my $client (Slim::Player::Client::clients()) { my $playmode = $client->playmode(); $::d_plugins && msgf("Prevent Standby plugin: client %s in playmode %s\n", $client->name, $playmode); if ($playmode ne 'stop' && $playmode ne 'pause') { $::d_plugins && msg("Prevent Standby plugin: setting thread execution state\n"); if (defined $SetThreadExecutionState) { $SetThreadExecutionState->Call(1); } startTimer(); return 1; } } startTimer(); return 0; } sub startTimer { $::d_plugins && msg("Prevent Standby plugin: startTimer called\n"); if (!defined $timer && defined $SetThreadExecutionState) { $::d_plugins && msg("Prevent Standby plugin: starting timer\n"); $timer = Slim::Utils::Timers::setTimer(0, time + $interval, \&checkClientActivity); $::d_plugins && !defined($timer) && msg("Prevent Standby plugin: starting timer failed\n"); } return defined($timer); } sub stopTimer { if (defined($timer)) { Slim::Utils::Timers::killSpecific($timer); $timer = undef; } } sub initPlugin { $::d_plugins && msg("Initialising Prevent Standby plugin: Only available under Windows\n"); if (Slim::Utils::OSDetect::OS() eq 'win') { $SetThreadExecutionState = Win32::API->new('kernel32', 'SetThreadExecutionState', 'N', 'N'); return startTimer(); } $::d_plugins && msg("Prevent Standby plugin: Only available under Windows\n"); } sub shutdownPlugin { stopTimer(); } sub strings { return ' PLUGIN_PREVENTSTANDBY EN Windows: Prevent System Standby While Playing '}; 1; __END__ -- oreillymj oreillymj's Profile: http://forums.slimdevices.com/member.php?userid=699 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Actually I added some further debug messages to the plugin and managed to get this printout from the plugin 2006-04-08 20:55:40.5156 Initialising Prevent Standby plugin: Only available under Windows 2006-04-08 20:55:40.5157 Initialization of Plugins::PreventStandby::Plugin failed: Can't locate object method "new" via package "Win32::API" (perhaps you forgot to load "Win32::API"?) at C:/Program Files/SlimServer/server/Plugins/PreventStandby/Plugin.pm line 102. 2006-04-08 20:55:40.5158 Requiring Plugins::MusicMagic::Plugin plugin. -- oreillymj oreillymj's Profile: http://forums.slimdevices.com/member.php?userid=699 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Just tried both of these new features for Windows users without much success. Taskmanager still shows Slim.exe as having a process priority of 8 - Normal. I believe that Services.exe runs with "Normal" priority and I'm not sure a child process could have a higher priority than the parent. Also the PreventStandby plugin does not seem to do anything on my system. It doesn't appear in the list of available plugins (not sure it's supposed to). But it also doesn't seem to write anything to a log file when d_plugins is enabled despite the fact that there are a number of debug messages in the code. Is there something special I need to do to enable this plugin. -- oreillymj oreillymj's Profile: http://forums.slimdevices.com/member.php?userid=699 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Sorry Jules, I think you were replying to Dans post not mine. Craig -- Craig Craig's Profile: http://forums.slimdevices.com/member.php?userid=96 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
bigjules Wrote: > The plugin only polls clients once a minute.. its not very often.. and > it does very little processing.. > > Cant really see how it would make things worse. Since the logic to prevent repeat tracks was added to Random play - it can take 6 seconds of high cpu usage and a tenfold increase in disk access's to add a new track. More than enough to cause an SB1 to empty its buffer. Craig -- Craig Craig's Profile: http://forums.slimdevices.com/member.php?userid=96 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
The plugin only polls clients once a minute.. its not very often.. and it does very little processing.. Cant really see how it would make things worse. -- bigjules bigjules's Profile: http://forums.slimdevices.com/member.php?userid=4805 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
I'm already seeing an issue whereby web UI refreshes or Random Mix adding new tracks causes excessive cpu usage, enough to cause the buffers on SB1's to empty and stutter. I've not tested the latest build but I would have thought that it would make things worse. Craig -- Craig Craig's Profile: http://forums.slimdevices.com/member.php?userid=96 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta
[SlimDevices: Beta] Re: Windows Process Priority & Standby
Thanks for putting that in Dan. -- bigjules bigjules's Profile: http://forums.slimdevices.com/member.php?userid=4805 View this thread: http://forums.slimdevices.com/showthread.php?t=22785 ___ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta