United States-English |
|
|
HP-UX System Administrator's Guide: Routine Management Tasks: HP-UX 11i Version 3 > Chapter 6 Managing System PerformanceMeasuring Performance |
|
The saying, “you can’t manage what you don’t measure,” is especially true of system and workgroup performance. Here are some ways to gauge your workgroup’s performance against the “Guidelines” earlier in this section. To see how disk activity is distributed across your disks, run sar -d with a time interval and frequency, for example: This runs sar -d ten times with a five-second sampling interval. The %busy column shows the percentage of time the disk (device) was busy during the sampling interval. Compare the numbers for each of the disks the shared file systems occupy (note the Average at the end of the report). Another way to sample disk activity is to run iostat with a time interval, for example: This will report activity every five seconds. Look at the bps and sps columns for the disks (device) that hold shared file systems. bps shows the number of kilobytes transferred per second during the period; sps shows the number of seeks per second (ignore msps). If some disks with shared file systems are consistently much busier than others, you should consider redistributing the load. See HP-UX System Administrator’s Guide: Logical Volume Management. In the case of an HFS file system, the client’s NFS read/write block size should match the block size for that file system on the server.
Enabling asynchronous writes tells the NFS server to send the client an immediate acknowledgment of a write request, before writing the data to disk. This improves NFS throughput, allowing the client to post a second write request while the server is still writing out the first. This involves some risk to data integrity, but in most cases the performance improvement is worth the risk. You can use HP SMH to see whether asynchronous writes are enabled on a server’s shared file systems. If needed you can change the setting of the Asynchronous Writes flag, while the file system is still mounted and shared. Run nfsstat -rc on an NFS client to get an idea of how the server is performing. You’ll get a report that looks like this:
badxid should be small in relation to timeout. If these numbers are nearly the same, it may mean the server is overloaded and generating duplicate replies to RPC requests that have timed out and been retransmitted. Check the server’s memory, disk and NFS configuration; see the “Guidelines” in the previous section. vmstat displays a wealth of information; use the -n option to make it more readable on an 80-column display. The column to watch most closely is po. If it is not zero, the system is paging. If the system is paging consistently, you probably need more RAM. Although many different processes use sockets, and can contribute to socket overflows, regular socket overflows on an NFS server may indicate that you need to run more nfsd processes. The command, will show you a cumulative number for socket overflows (since the last boot). If you see this number rising significantly, and NFS clients are seeing poor response from this server, try starting more nfsds; see “Increasing the Number of nfsd Daemons”. If you have followed all the “Guidelines” and are still seeing poor response time, the problem may be with the network itself - either with a particular piece of hardware or with the configuration of the network. To see cumulative statistics on a server, run If your system has been running for a long time, the numbers will be large and may not reliably reflect the present state of things. You can run netstat iteratively; for example In this case (after the first line), netstat reports activity every five seconds. Input and output errors should be very low in relation to input and output packets - much less than 1%. A higher rate of output errors on only one server may indicate a hardware problem affecting the server’s connection to the network. Collisions (colls) should be less than 5%; a higher rate indicates heavy network use which your users are probably experiencing as poor performance. Network traffic and configuration may be beyond your control, but you can at least raise a flag with your network administrator. |
Printable version | ||
|