Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go ยป
No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 559 times and has 1 reply Next Thread
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Setting process priority to HIGH automaticly

Hello,

I know, I know... setting the priority of the wcg process doesn't offer a lot of extra performance, but I was fiddling around with "windows scripting" and I created a small script that you can schedule. It changes the priority of all wcg_* processes to HIGH. You can alter the priority by setting different constants.

Just save it as an ASCII file with extention ".vbs" so you can run it
(Windows platform offcourse wink )


Const NORMAL = 32
Const LOW = 64
Const REALTIME = 128
Const HIGH = 256
Const BELOW_NORMAL = 16384
Const ABOVE_NORMAL = 32768

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
("Select * from Win32_Process")
For Each objProcess in colProcesses
If Left(objProcess.Name,4) = "wcg_" Then
objProcess.SetPriority(HIGH)
End If
Next

----------------------------------------
Former grid.org slave


----------------------------------------
[Edit 4 times, last edit by E. Frijters at Nov 20, 2007 1:39:28 PM]
[Nov 20, 2007 1:29:47 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Setting process priority to HIGH automaticly

Hi Effy,

Urban legends.... the science app will behave nice.... your gain will be seconds at the most and the potential of affecting other processes is always there.

BUT, you gave me an idea to set BOINC.exe automatically to high. That way the benchmark always gets near maximum attention. I continue to think it the greatest nonsense of all for the credits to be given for real CPU cycles to be impaired by wall-clock effects.

ciao
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
[Nov 20, 2007 1:42:30 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread