Performance Basics for HP-UX

Performance Basics for HP-UX

Performance Basics for HP-UX by Bill Hassell HP-UX System Administration Consultant And Chief Cook And Bottle Washer Slide -1 Performance Basics Introduction ■ What is Performance? ■ Measurement Points ■ Bottlenecks – Compute Cycles – I/O Transactions Slide -2 Performance Basics Agenda ■ Defining “Slow” – Interactive Response Time – Total Job Completion Time ■ Measurement Tools Slide -3 Performance Basics Vocabulary ■ Common Performance Terms – Compute-bound – I/O Bound – Disk Thrashing –Swap Thrashing – Resource Limits Slide -4 Performance Basics uptime(1) ■ Quickest look at system: uptime 5:36pm up 9 days,16:33, 46 users, load average: 1.85, 1.63, 1.47 ■ User count and load (runqueue) Slide -5 Performance Basics sar(1) ■ System Activity Reporter -b Buffer Cache Activity -c System Calls -d Block Device Activity -u CPU Utilization Slide -6 Performance Basics sar -b Slide -7 Performance Basics sar -c Slide -8 Performance Basics sar -d Slide -9 Performance Basics sar -u Slide -10 Performance Basics sar(1) (cont.) ■ System Activity Reporter –-a File Access – -m Message/Semaphore Activity – -v Kernel Parameters Slide -11 Performance Basics sar -a Slide -12 Performance Basics sar -m Slide -13 Performance Basics sar -v Slide -14 Performance Basics iostat(1) ■ Report I/O Statistics – Number of seeks per second – Kbytes transferred per second – Milliseconds per average seek Slide -15 Performance Basics iostat 1 1 iostat 1 2 Slide -16 Performance Basics iostat 1 1 iostat 1 2 (with dd) Slide -17 Performance Basics vmstat(1) ■ Virtual Memory Statistics – -d Disk Transfers per second – -S Processes swapped – -f Forks and VM Pages Slide -18 Performance Basics vmstat(1) (cont.) ■ Process Statistics – r in run queue – b blocked for resources – w runnable/ShortSleep but swapped ■ Memory Statistics – avm active virtual pages – free size of free list Slide -19 Performance Basics vmstat(1) (cont.) ■ Page Statistics: – re page reclaims – at address translation faults – pi pages paged in – po pages paged out ■ Faults – in device interrupts/sec – sy system calls per second – cs CPU context switch Slide -20 Performance Basics vmstat(1) (cont.) ■ CPU Statistics – us user time normal/lowPri –sy system time – id CPU idle Slide -21 Performance Basics vmstat Slide -22 Performance Basics vmstat Slide -23 Performance Basics vmstat(1) (cont.) ■ 1 liners: – vmstat –f (fork activity) – vmstat –s (summary) ■ Zero counters –vmstat-z Slide -24 Performance Basics vmstat(1) (cont.) ■ 1 liners: – vmstat –f (fork activity) – vmstat –s (summary) ■ Zero counters –vmstat-z Slide -25 Performance Basics top(1) ■ Top Processes on the System ■ System data - Summary – name and time – Load Average 1,5,15 minutes – % time in user,nice,system,idle,etc ■ Memory – Virtual and Real ■ Individual Processes Slide -26 Performance Basics top Slide -27 Performance Basics top Slide -28 Performance Basics HP Performance Tools ■ HP GlancePlus – for real-time system performance monitoring ■ HP Performance Collection Software – for collecting and managing historical system performance data. – MeasureWare uses the unique kernel daemon midaemon to minimize intrusion and maximize accuracy. Slide -29 Performance Basics Glance |Command | Screen Displayed / Description | a | All CPU Detail Screen | c | CPU Detail Screen | d | Disk Detail Screen | g | Global Screen | i | Disk I/O by File System Screen | k | Diskless Server Resource Utilization Screen | l | Lan Detail Screen | m | Memory Detail Screen | n | NFS Detail Screen | t | System Table Utilization Screen | u | Disk Queue Lengths Screen | v | Logical Volume Detail Screen | w | Swap Detail Screen | ? | Commands Menu Slide -30 Performance Basics Slide -31 Performance Basics Slide -32 Performance Basics Slide -33 Performance Basics Slide -34 Performance Basics Slide -35 Performance Basics Slide -36 Performance Basics Slide -37 Performance Basics Slide -38 Performance Basics Slide -39 Performance Basics Slide -40 Performance Basics Slide -41 Performance Basics Slide -42 Performance Basics Slide -43 Performance Basics Slide -44 Performance Basics Slide -45 Performance Basics Slide -46 Performance Basics gpm (Motif version) ■ gpm – [-nosave] – [-rpt [rptname]] – [-sharedclr] – [-nice nicevalue] – [-lock] – [-disks <n>] – [-kernel <path>] – [-nfs <n>] – [-pids <n>] – [Xoptions] Slide -47 Performance Basics CPU saturated while : do : done Slide -48 Performance Basics Disk saturated du / > /dev/null Slide -49 Performance Basics Network saturated du /nfs1 > /dev/null Slide -50 Performance Basics Resource Chart Slide -51 Performance Basics High swapping Slide -52 Performance Basics Alternate representation Pie charts (CPU bound) Slide -53 Performance Basics Conclusions ■ Isolate CPU versus I/O problems – CPU-bound – swap (RAM) pressure – I/O (LAN, disk, tape, etc) ■ Tools – Unix classics – Glance and Measureware ■ HP Training Courses Slide -54 Performance Basics.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    54 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us