Documente Academic
Documente Profesional
Documente Cultură
1 Formore information about resource management and partitioning, see “Server Consolidation: Examining the Application Consolidation Approach” by Paul Rad and Dwayne Rodi
in Dell Power Solutions, November 2002.
Command-line interface
GUI
Windows Server 2003, Resource monitor
Enterprise Edition
Performance
monitor WSRM
Process-matching
criteria
Resource-
allocation policy
Process API
Dynamic process
priority management
Understanding the WSRM architecture preemptive (round-robin) scheduling system that executes threads
WSRM manages and controls system resource usage by using a based on their priority—with higher priority threads executing first.
dynamic process–priority management algorithm that determines Therefore, lowering the priority of a process indirectly reduces its
how to allocate resources among multiple processes. The WSRM ser- resource utilization.
vice monitors the resource allocations at a regular polling interval. Users can control the resource utilization of applications, services,
During each poll, the service determines whether the processes and processes through the two main components of WSRM: process-
match their target allocations. If a process exceeds its target alloca- matching criteria and resource-allocation policies (see Figure 3).
tion, the WSRM service lowers the priority of the process.
A process consists of one or more threads, and the thread is Using process-matching criteria to define managed processes
the executable component of the process. Because the priority of WSRM uses a process-matching mechanism to group multiple
the parent process greatly influences the priority of its threads, low- processes that match administrator-specified rules. This group is
ering the priority of a process also lowers the priority of its threads then assigned to a resource-allocation policy. This policy sets the
in most cases. The Windows OS implements a priority-driven, system resource limits for that group.
Figure 4 shows a process-matching criterion that matches the
processes handling IIS 6.0 requests. The IIS 6.0 architecture introduced
CALENDAR AND ACCOUNTING FUNCTIONS the concept of application pools that allow Web site applications to
be isolated from each other. This feature can be leveraged by WSRM
Two particularly useful features of WSRM are the following: to set resource limits for applications in each pool. This action helps
• WSRM calendar: This feature allows automatic activation of dif- a single server to host multiple Web sites while ensuring that no single
ferent resource-allocation policies based on a predefined schedule. application will starve any others of resources.
The calendar is especially useful when the load on managed Some critical system processes, such as the local security author-
applications, and hence their resource requirements, vary system- ity service, are by default set to be unmanaged, so that these
atically over a period of time. processes can utilize as much of the system resources as required.
This default setting is implemented in WSRM by including these
• WSRM accounting: This function provides a mechanism to processes in the system-defined exclusion list. Administrators can
store and retrieve records of the behavior of managed processes. also set other processes to be unmanaged. Although the system-
This information can be used to generate reports, provide charge- defined exclusion list itself cannot be modified, administrators can
back accounting data, and also to study application behavior from add or remove processes to or from the user-defined exclusion list.
the standpoint of resource utilization. All processes in the system-defined exclusion list and in the user-
defined exclusion list become unmanaged processes.
WSRM:
http://www.microsoft.com/windowsserver2003/downloads/wsrm.mspx
Figure 7. WSRM Resource Monitor showing CPU utilization when CPU allocation was 55 percent for the
SQL Server process and 35 percent for IIS