hp education services education.hp.com 33 glanceplus version b.02 h4262s module 3 slides

19
1 hp education services education.hp.co m GlancePlus Version B.02 H4262S Module 3 Slides

Upload: elwin-reeves

Post on 27-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

1

hp education services

education.hp.com

GlancePlus

Version B.02H4262S Module 3 Slides

Page 2: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

2 © 2001 Hewlett-Packard Company

H4262S B.02

This is GlancePlus

• Motif-based interface that offers exceptional ease-of-learning and ease-of-use• State-of-the-art, award-winning on-line Help system.• Rules-based diagnostics that use customizable system performance rules to identify system performance problems and bottlenecks.• Alarms that are triggered when customizable system performance thresholds are exceeded.• Tailor information gathering and display to suit your needs.• Integrated into OpenView environments.

Features

• Get detailed views of CPU, disk, and memory resource activity• View disk I/O rates and queue lengths by disk device to determine if your disk loads are well balanced• Monitor virtual memory I/O and paging• Measure NFS activity• And much more ...

Capabilities

Page 3: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

3 © 2001 Hewlett-Packard Company

H4262S B.02

GlancePlus Pak Overview

Performance data collection and alarming

Online performance monitoring and diagnostic

Performance analysis and correlation

Forecasting and capacity planning

Central alarm monitoring and event management

Automated Web-based Reporting

GlancePlus

cen

tral

man

ag

em

en

t syste

m

man

ag

ed

n

od

e

PerfView

PerfView

Planner

PerfView

Analyzer

PerfView

Monitor

Service Reporter

MeasureWare

NETWORKS

DATABASES

SYSTEMS

APPS

INTERNET

Page 4: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

4 © 2001 Hewlett-Packard Company

H4262S B.02

gpm and glance

Page 5: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

5 © 2001 Hewlett-Packard Company

H4262S B.02

glance — The Character Mode Interface

Page 6: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

6 © 2001 Hewlett-Packard Company

H4262S B.02

Looking at a glance Screen

Page 7: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

7 © 2001 Hewlett-Packard Company

H4262S B.02

gpm — The Graphical User Interface

Page 8: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

8 © 2001 Hewlett-Packard Company

H4262S B.02

Process Information

Process Information Detailed data on each active process CPU data Disk I/O data Memory Use Wait Reasons Open Files

Process Features Access via Main Reports selection Process List Each Process has:

–Process Resources–Open Files

Page 9: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

9 © 2001 Hewlett-Packard Company

H4262S B.02

Adviser Components

Adviser Windows –Symptom History–Symptom Status/Snapshot–Alarm History–Adviser Syntax

Button Label Colors–Alarm Button for Alarm Statements–Graph Buttons for Symptom Statements

Icon Border Color–Changes to Red or Yellow on Alarms

Adviser Alarm syntax is the same as MeasureWare.!

Page 10: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

10 © 2001 Hewlett-Packard Company

H4262S B.02

The alarmdef File Syntax

## This example alarmdef syntax will send email when a single process is# using a significant amount of cpu, and it has has accumulated over 10# minutes of cpu time in total. We avoid processes with pids < 100# assuming they're system processes and they know what they're doing.#

hogpid = hogpidPROCESS LOOP{

if (PROC_CPU_TOTAL_UTIL > 60) and (PROC_CPU_TOTAL_TIME_CUM > 600) and (PROC_PROC_ID > 100) and (PROC_PROC_ID != hogpid) then { exec "echo 'Possible runaway process detected by mwa' | mail root@mgrnode"

hogpid=PROC_PROC_ID }

}

Page 11: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

11 © 2001 Hewlett-Packard Company

H4262S B.02

adviser Bottleneck Syntax Example# The following symptoms are used by the default Alarm Window# Bottleneck alarms. They are re-evaluated every interval and# the probabilities are summed. These summed probabilities are# checked by the bottleneck alarms. The buttons on the gpm# main window will turn yellow when a probability exceeds 50%# for an interval, and red when a probability exceeds 90% for# an interval. You may edit these rules to suit your environment:

symptom CPU_Bottleneck type=CPUrule GBL_CPU_TOTAL_UTIL > 75 prob 25rule GBL_CPU_TOTAL_UTIL > 85 prob 25rule GBL_CPU_TOTAL_UTIL > 90 prob 25rule GBL_PRI_QUEUE > 3 prob 25

alarm CPU_Bottleneck > 50 for 2 minutes start if CPU_Bottleneck > 90 then red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%" else yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%" repeat every 10 minutes if CPU_Bottleneck > 90 then red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%" else yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%" end reset alert "End of CPU Bottleneck Alert"

Page 12: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

12 © 2001 Hewlett-Packard Company

H4262S B.02

The parm File

parm file application definitions are used by both GlancePlus and MeasureWare.

A .parm in a user's $HOME directory will override the system parm file.

application = and the associatedparameters defines the logicalgroupings used to define eachapplication on the machine.

!Examples:application=Real Timepriority=0-127

application=Prog Dev Group 1file-vi,xdb,abb,ld,lintuser=bill,debbie

application=Prog Dev Group 2file=vi,xdb,abb,ld,lintuser=ted,rebecc,test*

application=Compilersfile=cc,ccom,pc,pascomp

application =user =file =priority =group =

application =user =file =priority =group =

Page 13: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

13 © 2001 Hewlett-Packard Company

H4262S B.02

GlancePlus Data Flow

KIHP-UX kernel

midaemon

“nums” interface

glance gpm

Terminal display

Adviser output Motif display

Adviser definitions

parm file

application definitions

Adviser definitions

Page 14: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

14 © 2001 Hewlett-Packard Company

H4262S B.02

Key GlancePlus Usage Tips

• Use it for “What’s going on right now.”• The gpm online help is very useful — especially on item help.• Drill down from higher level reports to more detailed resource reports.• Understand what the adviser is telling you.• Sort, filter, and choose metrics in gpm; especially the Process List.• In character-mode glance use:

• ? screen to navigate • h for help• o screen for setting thresholds and process list sorting

• Edit the adviser alarms to be right for you.• Adjust update interval to control CPU overhead.• Process details including thread lists, wait states, memory regions, open files, and system call reports can be used to impress your programming staff ! 8^)

Page 15: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

15 © 2001 Hewlett-Packard Company

H4262S B.02

Global, Application, and Process Data• Global metrics reflect system-wide activity (sum of all applications).• Process metrics reflect specific per-process (including thread) activity.• Application metrics sum activity for a set of processes. They keep track

of activity for all processes, however short-lived, even if they are not reported individually.

• Glance updates all metric values at the same time. MeasureWare summarizes Global, Application, and other class data over 5-minute intervals and summarizes Process data over 1-minute intervals.

• Multiprocessor effects: Global and Application CPU percentages reflect normalization over the number of processors (percentage of availability for entire system). Process and thread-level CPU percentages are not normalized by the number of processors.

Page 16: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

16 © 2001 Hewlett-Packard Company

H4262S B.02

Can’t Solve What’s Not a Problem!

• A looping process by itself is not a problem.• Know what’s “normal” for your environment. • Keep historical performance data for reference.• Measure response times.• Use the tools to find out what is affecting performance.• Isolate bottlenecks and address them when there is a problem.• When tuning, make only one change at a time and then measure its effect.• Optimize your time resource: don’t fix what isn’t broken; sometimes

more hardware is the cheapest answer; set yourself up to react quicker next time.

Page 17: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

17 © 2001 Hewlett-Packard Company

H4262S B.02

Metrics: “No Answers without Data”

• Rate and utilization metrics are more useful than counts and times, because they are independent of the collection interval.

• Cumulative metrics measure over the total duration of collection.• Most metrics are broken down into subsets by type. Work from the top

down.• Blocked states reflect individual process or thread wait reasons. Global

queue metrics are derived from process blocked states.• CPU is a “symmetric” resource. Scheduler will balance load on the

multiprocessor, whereas disks and network interface activity depend on where data is located.

• Memory utilization is not as important as paging activity and buffer cache sizing.

Page 18: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

18 © 2001 Hewlett-Packard Company

H4262S B.02

Summary

• Don’t try to understand all the capabilities and extensions to the tools, just the ones of most use to you.

• Start with developing an understanding of what is “normal” on your systems.

• Refine and develop alarms customized for your environment.

• Work from examples in documentation, gpm online help, config files, and example directories.

Page 19: Hp education services education.hp.com 33 GlancePlus Version B.02 H4262S Module 3 Slides

19 © 2001 Hewlett-Packard Company

H4262S B.02

HP GlancePlus Guided Tour

cpu

process

memory

Topics• Main Window• CPU Bottlenecks• Memory Bottlenecks• Configuration Information• Alarm and Symptoms