Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (1611 KB)
Chapter 34 System Performance (Overview)Getting good performance from a computer or network is an important part of system administration. This chapter is an overview of some of the factors that contribute to maintaining and managing the performance of the computer systems in your care. This is a list of the overview information in this chapter. What's New in Managing System Performance?This section describes new Solaris 8 features in the area of managing system performance. SPARC: busstatA new system monitoring tool, busstat, provides command line access to the bus-related hardware performance counters in the system. It enables the gathering of system-wide bus performance statistics directly from the system hardware. The current list of supported hardware is SBus, AC and PCI devices. These are all SPARC system devices. Currently, there are no IA supported devices. The busstat command enables the measurement of system-wide statistics such as memory bank reads/writes, clock cycles, number of interrupts, streaming DVMA read/write transfers etc. Superuser can use busstat to program these counters. Ordinary users can only read counters programmed previously by superuser. The busstat command lists the devices in a system that are found to support these hardware performance counters. If no supported devices are found in the system, the following message is displayed:
See busstat(1M) for more information on using this monitoring tool. The cpustat and cputrack CommandsYou can use the new cpustat and cputrack commands for monitoring the performance of a system or a process. The cpustat command gathers system-wide CPU information. This command must be run by the superuser. The cputrack command is similar to the truss command for displaying information about an application or a process. This command can be run by regular users. Developers can create their own versions of these monitoring tools by using the same library APIs that were used to build the cpustat command. See cpustat(1M) and cputrack(1) for more information. prstatThe prstat command displays information about active processes on the system. You can specify whether you want information on specific processes, UIDs, CPU IDs, or processor sets. By default, prstat displays information about all processes sorted by CPU usage. You can display detailed process microstate accounting information with prstat -m, which provides the percentage of time the process has spent processing system traps, text page faults, data page faults, and waiting for CPU, also known as CPU latency time. See prstat(1M) for more information. Obsolete Interprocess Communication ParametersThe Interprocess Communication (IPC) Message facility has been made more scalable in the Solaris 8 release by using kmem_alloc(9F) rather than rmalloc(9F) to allocate message text. Therefore, the previously-documented msginfo_msgssz, msginfo_msgmap, and msginfo_msgseg tunables, which were artifacts of the rmalloc-based implementation, are obsolete in this release. Where to Find System Performance TasksUse these references to find step-by-step instructions for monitoring system performance. System Performance and System ResourcesThe performance of a computer system depends upon how the system uses and allocates its resources. It is important to monitor your system's performance on a regularly so that you know how it behaves under normal conditions. You should have a good idea of what to expect, and be able to recognize a problem when it occurs. System resources that affect performance are described in the following table.
Chapter 36, Monitoring Performance (Tasks) describes the tools that display statistics about the activity and the performance of the computer system. Sources of Performance Tuning InformationPerformance is a broad subject that can't be adequately covered in these chapters. Sun provides performance tuning courses, online performance tuning information and several books are available that cover various aspects of improving performance and tuning your system or network.
System or network performance tuning is covered in the following books:
Processes and System PerformanceTerms related to processes are described in the table below. Table 34-1 Process Terminology
A process can consist of multiple LWPs and multiple application threads. The kernel schedules a kernel-thread structure, which is the scheduling entity in the SunOS environment. Various process structures are described in the table below. Table 34-2 Process Structures
The figure below illustrates the relationship of these structures. Figure 34-1 Process Structures
Most process resources are accessible to all the threads in the process. Almost all process virtual memory is shared. A change in shared data by one thread is available to the other threads in the process. Commands for Managing ProcessesThe table below describes commands for managing processes. Table 34-3 Commands for Managing Processes
Another feature enables the control of process groups over processor sets. Using processor sets means process groups can bind to a group of processors rather than to just a single processor. The /usr/sbin/psrset command gives a system administrator control over the creation and management of processor sets. See psrset(1M) for more information. See Chapter 35, Managing Processes (Tasks) for more information about commands for managing processes. About Monitoring PerformanceWhile your computer is running, counters in the operating system are incremented to keep track of various system activities. System activities that are tracked are:
Monitoring ToolsThe Solaris software provides several tools to help you keep track of how your system is performing. These include: Table 34-4 Performance Monitoring Tools
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||