climateprediction.net home page
Using ThreadMaster with BOINC 5.2.13

Using ThreadMaster with BOINC 5.2.13

Questions and Answers : Windows : Using ThreadMaster with BOINC 5.2.13
Message board moderation

To post messages, you must log in.

AuthorMessage
old_user36393

Send message
Joined: 18 Jan 05
Posts: 4
Credit: 8,257
RAC: 0
Message 20679 - Posted: 23 Feb 2006, 18:54:20 UTC

Can anybody talk me through this. I want to be able to set a limit on processor usage to 50%.

cheers
Mike
ID: 20679 · Report as offensive     Reply Quote
Profile geophi
Volunteer moderator

Send message
Joined: 7 Aug 04
Posts: 2184
Credit: 64,822,615
RAC: 5,275
Message 20704 - Posted: 24 Feb 2006, 3:25:57 UTC
Last modified: 24 Feb 2006, 13:25:26 UTC

I\'m going to answer this with a post from Thyme Lawn at the BBC boards. He\'ll come along and yell at me if my modification for sulphur isn\'t correct. ;-)


Thanks to Andy who posted the initial version of these instructions in answer to a question expressing concern about CPU temperature. I\'ve modified Andy\'s instructions to provide a registry import file instead of requiring manual entry of values into the registry.

+++++

If have heat related problems (or are simply worried about the cpdn keeping your system at 100% CPU usage) is possible to limit the % of processor time that the sulphur climate model will use.

  • Download the threadmaster program from the Add-ons page.

  • Run the installation program install.cmd.

  • Highlight the following section of code and type Ctrl C to copy it to the clipboard.

    +++ Code starts on the next line +++
    Windows Registry Editor Version 6.00
    
    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\ThreadMaster\\Parameters\\Applications]
    \"sulphur_um_4.22_windows_intelx86.exe\"=\"50\"
    \"sulphur_um_4.22_windows_intelx86\"=\"50\"
    +++ End of code +++

  • Open a text editor (e.g. Notepad) window and type Ctrl V to paste the clipboard. If you want to change the maximum CPU usage from the 50% set above modify the values before taking the next step.

  • Save the file as C:\\Program Files\\BOINC\\sulphur.reg

  • Double click on the file you\'ve just saved to import the settings into the registry.

  • Restart the computer. Approximately 30 seconds after the restart you should see that the sulphur program will be using the limit you specified. (BOINC manager will say that the project is using 100% resources but if you check in task manager it will only be using the amount you specified.)


If you experience any problems (e.g. other programs running slower than normal) you can temporarily stop threadmaster by going Start - Control Panel - Administrative Tools - Services. Scroll down to the Thread Master entry, double click on it to open the Thread Master Properties window. Click on the \'Stop\' button followed by \'OK\' when the service has stopped. Task manager will now show the CPU usage as 100%.

If you wish to stop Thread Master from automatically starting up repeat the process to get to the Thread Master Properties window, but this time change the startup type to \'Manual\'.

If you ever decide that you want to uninstall Thread Master you need to open a command prompt window (Start - Run, type \'cmd\' and hit return). Type the following command sequence:


  • cd %windir%\\system32\\ThreadMaster
  • net stop threadmaster
  • threadmast -remove
  • cd ..
  • rmdir /s /q ThreadMaster


Hope this helps people out. If anyone notices any errors in the instructions or has difficulty following them please let me know and I will update the instructions.

ID: 20704 · Report as offensive     Reply Quote
old_user36393

Send message
Joined: 18 Jan 05
Posts: 4
Credit: 8,257
RAC: 0
Message 20710 - Posted: 24 Feb 2006, 8:09:55 UTC - in response to Message 20704.  


I just tried that registry thing, copied it to notepad, saved as sulphur.reg in BOINC root dir and then double clicked it. It asked me if i was sure i wanted to add it, i clicked yes. Then i get an error message saying sulpur.reg wasnt intended for use with this version on windows. Im using Win XP SP 2 if that helps.
ID: 20710 · Report as offensive     Reply Quote
old_user36393

Send message
Joined: 18 Jan 05
Posts: 4
Credit: 8,257
RAC: 0
Message 20711 - Posted: 24 Feb 2006, 8:18:15 UTC - in response to Message 20710.  


Ok ive cracked it. I searched for another .reg file and that one had \"Windows Registry Editor Version 5.00\" rather than version 6.00. So i changed the code to:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\ThreadMaster\\Parameters\\Applications]
\"sulphur_um_4.22_windows_intelx86.exe\"=\"50\"
\"sulphur_um_4.22_windows_intelx86\"=\"50\"

and that successfully added.

Just need to restart now.
ID: 20711 · Report as offensive     Reply Quote
old_user36393

Send message
Joined: 18 Jan 05
Posts: 4
Credit: 8,257
RAC: 0
Message 20712 - Posted: 24 Feb 2006, 8:29:59 UTC - in response to Message 20711.  

yep that works. takes a little while to kick in but it works. processor usage starts off at 100, sits there for a bit then drops down to around 50%.

thanks for you help :D. only needed a little bit of tweaking for my version of windows.

Mike
ID: 20712 · Report as offensive     Reply Quote

Questions and Answers : Windows : Using ThreadMaster with BOINC 5.2.13

©2024 cpdn.org