210 likes | 499 Views
Performance Tools. Version B.02 H4262S Module 2 Slides. HP-UX Performance Tools. HP-UX Performance Tools. Objective: Identify the various performance tools available on HP-UX. Demonstrate their mechanics. Discuss their features. Compare and contrast the differences between these tools.
E N D
Performance Tools Version B.02 H4262S Module 2 Slides
HP-UX Performance Tools Objective: • Identify the various performance tools available on HP-UX. • Demonstrate their mechanics. • Discuss their features. • Compare and contrast the differences between these tools. acctcom bdf/df diskinfo dmesg fsadm glance/gpm HP-PAK ioscan iostat ipcs/ipcrm lanadmin LVM mount NetMetrix netstat nfsstat ndd nice PerfView ping PRM/WLM ps renice rtprio sar scsictl serialize setprivgrp size swapinfo sysdef timex/time top tunefs vmstat w/uptime
Sources of Tools • Standard tools • Tools found on UNIX systems, including HP-UX • Tools frequently found on other UNIX systems • HP-UX-specific tools • Tools found only on HP-UX • Optional tools • Tools licensed and sold separately(Generally available only on HP-UX)
Types of Tools Data Collection Performance Network Monitoring Run-Time Monitoring System Configuration and Utilization Application Profiling and Monitoring Performance Administration
Criteria for Comparing the Tools • Source of data • Scope • Additional cost versus no cost • Intrusiveness • Accuracy • Ease of use • Portability • Metrics available • Data collection and storage • Permissions required
Data Sources Kernel Instrumentation Kernel Memory Trace Buffers /dev/kmem Shared midaemon Memory iostat sar Segment ps vmstat Measurement scopeux Interface Library Logfiles Socket glance extract pv utility
Performance Monitoring Tools (Standard UNIX) Global Metrics Process Details Alarming Capability iostat Yes No No ps No Yes No sar Yes No No time No Some No timex Some Some No top Yes Some No uptime,w Some Some No vmstat Yes No No
Global Metrics Process Details Alarming Capability Performance Monitoring Tools(HP Specific) glance Yes Yes Yes gpm Yes Yes Yes monitor (9.x) Yes Yes No
Data Collection Performance Tools (Standard UNIX) Global Metrics Process Details Alarming Capability acctcom Some Some No sar Yes No No
Data Collection Performance Tools(HP-Specific) Global Metrics Process Details Alarming Capability MeasureWare Yes Yes Yes PerfView Yes Yes Yes Data Source Integ User Definable User Definable User Definable
Network Performance Tools (Standard UNIX) Resource Super User Access Required netstat Various LAN Statistics No nfsstat Network File Sharing Statistics No ping Test Network Connectivity and Packet No Round-Trip Response Time
Network Performance Tools(HP-Specific) Resource Super User Access Required Layer 2 Networking Statistics and Yes lanadmin NIC Reset LAN Hardware and Software Status No lanscan nettune (10.X) Change Kernel Networking Parameters Yes Change Kernel Networking Parameters Yes Change Kernel Networking Parameters ndd (11.X) Collects network performance data Yes NetMetrix using RMON LAN probes
Performance Administrative Tools (Standard UNIX) Resource Super User Access Required List Semaphores, Message Queues, and No ipcs Shared Memory Segments Destroy Semaphores, Message Queues, Yes ipcrm and Shared Memory Segments Setting Process Priorities Yes nice Modifying Process Priorities Yes renice
Resource Super User Access Required List system privileged groups getprivgrp No Allocate special system privileges setprivgrp Yes Set real time process priority (HP) rtprio Privileged Access Set POSIX real time process priority rtsched Privileged Access Set parameters on SCSI devices scsictl Yes Mark a program to run serially serialize Privileged Access Online JFS management tool fsadm Yes Display JFS extent attributes getext No Sets/changes JFS extent attributes setext Yes Create a file system newfs Yes Change a file system’s attributes tunefs Yes Process Resource Manager PRM Yes Web Quality of Service WebQoS Yes Performance Administrative Tools(HP-Specific)
System Configuration and Utilization Information (Standard UNIX) Resource Portability Local and remote mounted file system space Some bdf Mounted file systems Yes df Local and remote file system mounts Yes mount
System Configuration and Utilization Information (HP-Specific) Resource Portability Size and model of local disk drives No diskinfo I/O tree and memory details Some dmesg I/O tree and addressing No ioscan Local volume group contents/attributes No vgdisplay Local physical volume contents/attributes No pvdisplay Local logical volume contents/attributes No lvdisplay Swap space utilization No swapinfo Sizes and values of kernel tables and parms Some sysdef Query, set, or reset system parameters Some kmtune
Application Profiling and Monitoring Tools (Standard UNIX) Resource Super User Access Required Application Profiler No prof Enhanced Application Profiler No gprof Define and measure response time of transactions for an application No arm
Application Profiling and Monitoring Tools (HP-Specific) Super User Access Required Description Program utilization and measurement analysis No puma ttd cxperf Tracks how much time is spent between specific lines of code in a program No cxperf is an interactive runtime performance analyzer for programs compiled with C, C++ and Fortran 90 compilers No
Different categories of performance tools Standard UNIX tools versus HP-specific tools Separately purchasable tools Kernel register-based tools versus midaemon-based Tools Summary
Lab Before we continue with a more focused discussion of glanceand gpm, lets spend some time exploring the generic UNIX and HP-UX-specific tools discussed so far. As you answer the following questions, try to categorize each tool as to its type and scope.