File: Use3DViews.rst

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (92 lines) | stat: -rw-r--r-- 4,676 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.. _Use3DViews:

Using 3D views
################

.. contents::

Overview
*********

Visual tools take advantage of common cognitive skills, especially for visual pattern matching and scene change discrimination. The motivation for visualization of performance data is very similar to that used for engineering visualization, visual simulation, and database mining through visualization - visually rich representations of complex data sets are powerful aids to understanding and detection of unexpected relationships.

Extract the PCP archives and configuration files we will use in this tutorial into the current working directory::

    $ . /etc/pcp.env
    $ tar xzf $PCP_DEMOS_DIR/tutorials/pmview.tar.gz

Live monitoring and user interface concepts
*********************************************

The mpvis command monitors the CPU utilization for each CPU::

    $ mpvis

.. figure:: ../../images/pmview_mpvis.png

* Move the cursor over each block in the scene. Take time to read the (changed) text box above the 3D scene and understand what it is telling you. In particular, identify the source of the metric, the name of the metric, the instance of the metric, the current value.

* Click on the "Live" button or Ctrl-T or **Options -> Show Time Control** from the menu bar. In the PCP Live Time Control dialog, experiment with changing the update Interval (this is the interval at which new metric values are fetched from pmcd).

* Quit with **File -> Quit** or Ctrl-Q.

Retrospective monitoring and tool drill-down
**********************************************

The dkvis command monitors the per-disk I/O activity::

    $ dkvis -a pmie/babylon.perdisk

.. figure:: ../../images/pmview_dkvis.png

* In the dkvis window (above the top left-hand corner of the scene) change the **Scale** to be 5 using either the thumbwheel or the text box to the right of the thumbwheel.

* In the associated **PCP Archive Time Control** dialog, changing the update **Interval** to 2 minutes (remember to Enter after you have changed the **Interval** text box).

* Double click the **Play** button. When the replay finished, drag the slider in the **PCP Archive Time Control** dialog back to near the middle of the range and release the slider.

* Back in the *dkvis* window, move the cursor over each block in the scene. Take time to read the (changed) text box above the 3D scene and understand what it's telling you. In particular, identify the source of the metric, the name of the metric, the instance of the metric, the current value.

* Select all of the blocks for controller **dks1** (use "Shift-select" to do multiple selections), and then **Launch -> pmchart** from the main menu. In the pmchart window use **File -> Open View** from the menu bar to add the **LoadAvg** view. This is a "drill-down" example.

* Use the **PCP Archive Time Control** dialog again - this time notice that you're controlling movement through both *dkvis* and *pmchart* using the same time control window (that's because pmchart was launched from dkvis).

* Quit from *dkvis*. Notice that pmchart and the pmtime dialog remain. Quit from *pmchart*.

The "vis" tools
******************

Try some of the other "vis" tools. All of these are "front-ends" to *pmview* as shown in this diagram:

.. figure:: ../../images/vis.png

In a command shell enter::

    $ osvis

Move the cursor over each baseplane for more information. Now enter::

    $ pmafm pmie/godzillaweb.folio replay

pmafm is a folio manager which allows you to work with a folio of archives for many visualisation tools; in this case, with the folio godzillaweb.

Simple scene construction
*****************************

The text file pmview/example.view specifies a *pmview* configuration having one baseplane with one bar containing three metrics (5, 10, and 15 minute load averages), and separate bars for each of the disk read and write metrics.

To display this scene, run::

    $ pmview < pmie/example.view

As a learning exercise, copy example.view and modify the configuration so that instead of having the disk metrics as two separate blocks (bars), they appear as a single stacked bar showing both metrics, one on top of the other.

**Hints:**

* The *osvis* tool we saw earlier uses stacked bars for memory and CPU utilization.

* The configuration generated by **any** *pmview* front-end script can be viewed using a **-V** option to the front-end tool, and a **-C** option means quit after generating the configuration (do not launch pmview). So the following may be helpful::
  
    $ osvis -V -C 
    
* The *pmview(1)* man page describes the *pmview* configuration format in detail. Look for the **_stack** object.