This article introduces the software that limits the maximum CPU usage of processes: Threadmaster.

Source: Internet
Author: User
Home Page
Http://threadmaster.tripod.com/
'Doesn't seem to go up...
This link is acceptable.
Http://bednorz.uni2.net/anyland/threadmaster/threadmaster.htm

Introduction:
Threadmaster monitors threads and handle high CPU utilization on a per application basis.
Threadmaster is a background service implementing a CPU quota mechanic on top of the standard Thread Scheduling Algorithms of the Microsoft Windows 2000 operating systems.
Threadmaster monitors all running applications, and detects when a application starts to use excessive processor resources. it dynamically hunt down the offending thread, and clamp the CPU for this thread. this feature ensures that other users can remain working without noticing anything. the clamped process will eventually finish, and the Clamp will be removed automatically.

:The current version is ver. 1.12 build 182.
Http://bednorz.uni2.net/anyland/threadmaster/tminst112.zip

The installation software only supports Win2000 and later systems.

The installation is very simple. Unpack the compressed package and run install. cmd.
There is an unmount method on the home page, or it is simpler. You can download a script and execute it:
Http://bednorz.uni2.net/anyland/threadmaster/uninst.cmd

Configuration detailsConfiguration

The software does not have a GUI. You can directly modify the registry for all settings:
Threadmaster has no GUI interface, all configuration is done by using a well known tool "Regedit ". changing registry keys not described in this section, may cause serious problems. use Registry Editor at your own risk. after any changes in the configuration Please restart the Threadmaster service for the changes to take effect.
All the default values in Threadmaster is based on 2 CPU Compaq Server, but can be used on any configuration.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters]

Cputhresholdpct
CPU load threshold per application. This is a global setting and affect all applications, unless other settings are defined in the "application" or "exceptions" sections.
Default: 15%, valid range 3-100.

Mainsampletime
Time in seconds for application load above "cputhresholdpct"
This value define the measurement time Threadmaster using for calculating the average CPU utilization for applications.
Default: 30 sec. Values abve 10 sec. Accepted.

Threadoverloadactionstart
Command to execute at action start.
Default: None

Threadoverloadactionstop
Command to execute at action stopping. See the sample files "threadloginstall. Reg" and "threadlog. cmd" these files may be edited for your own usage.
Default: None

A list of special applications and the allowed CPU load. only applications different from the general rule defined by "cputhresholdpct ". applications running as a single published application, in container instances, can profit by setting the applicationkey as low as 5%.
The list is read dynamically.

Important: In Multithreaded Applications with multiple CPU incentive threads, don't set this value below the current number of CPU incentive threads, this may cause the application to "hang ", or run extremely slow.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters \ applications]
Appimagenamea N application image name and max. Load threshold pct. (n)
Appimagenameb M valid range 3-100
...
Appimagenamex x

A list of applications not handled. make sure all vital and Basis System processes are listed here, otherwise the system may not work properly. do not take it for granted that antivirus programs etc. are vital, in this sense.
The list is only enumerated when Threadmaster starts.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters \ exceptions]
Imagenamea
Imagenameb
...
Imagenamex

Statistics is updated by Threadmaster, this section documents the work of Threadmaster.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Statistics]

Explanation of Chinese characters, some key preparations

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters]
Cputhresholdpct
This is the place where the maximum CPU usage of a general process is set. Valid value: 3-100

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters \ applications]
The CPU usage of a specific process can be restricted here

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Threadmaster \ Parameters \ exceptions]
Here, you can set a list of processes that are not affected by the above usage limit. Some system processes are already in the list by default, or you can modify them yourself.

Manual uninstall
Operation at the command prompt:
% Windir % \ system32 \ Threadmaster \
Run "net stop Threadmaster"
Run "threadmast-Remove"
Delete the "% WINDIR % \ system32 \ Threadmaster \" Directory

 
ArticleFrom: China distributed computer Forum

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.