[tor-bugs] #9826 [Tor]: tor process priority in windows

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 26 08:33:44 UTC 2013


#9826: tor process priority in windows
-----------------------------+--------------------------------
     Reporter:  bolvan       |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:  Tor: unspecified
    Component:  Tor          |    Version:  Tor: unspecified
   Resolution:               |   Keywords:  priority tor-relay
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------

Comment (by bolvan):

 Replying to [comment:2 nickm]:
 > On unix, if you want to run a program with a other-than-usual priority,
 you use the program "nice" to launch it and control its priority setting.
 Does Windows not have one of those?

 In windows it's possible to start process with altered priority from cmd
 with "start" command.
 From WinAPI point of view - you can set priority class in dwCreationFlags
 parameter of function CreateProcess().
 However this technique does not apply to service (daemon) processes.
 In unix launch of daemons is usually controlled by launch scripts in
 /etc/init.d. Its easy to write 'nice' there. In windows service processes
 are lauched by a system process holding SCM (service control manager).
 Launch parameters for the service are in the registy :
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service_name>.
 I'm not aware of any way to specify priority class there. If you know -
 pls share.

 Also in the bundle tor is launched directly by vidalia, not by custom
 shell script, so there's also no way to alter priority.
 IMHO the simpliest way to alter priority - inside the process itself.
 This will work 100% no matter how tor.exe is launched.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9826#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list