Bugzilla – Bug 65
Windows service should run as high priority
Last modified: 2008-12-15 13:05:17 UTC
The windows service's priority should be upped to improve overall performance.
Suggested code from Paul Walker: eval{ require Win32::Process }; if( $@ ) { print OUT $@; } print OUT "Got WIN32 in $$\n"; if( ! Win32::Process::Open( $procobj, $$, 0 ) ) { print OUT "OPEN " . $! . "\n"; } $procobj->GetPriorityClass( $priclass ); print OUT $priclass . "\n"; if( ! $procobj->SetPriorityClass( 128 ) ) { print OUT $! . "\n"; } $procobj->GetPriorityClass( $priclass ); print OUT $priclass . "\n";
Do we want to add this for 6.0?
Will look at this again after 6.0
Chris Key checked in code to set the priority of both the server and scanner via Settings.
Does this patch change the default priority on windows?
No. Only the option to. At one point I changed the priority of the scanner, and people complained. Chris' patch let's the choose.
Subject: Re: Windows service should run as high priority On Aug 30, 2006, at 12:02 PM, Slim Devices Bugzilla wrote: > At one point I changed the priority of the scanner, and people > complained. > Chris' patch let's the choose. Ok. I was more thinking of having the main process bumped up, not the scanner. Bumping up the scanner will make a lot of people sad.
This bug appears to have been fixed in the latest release! If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look. Make sure to include the version number of the software you are seeing the error with.