blob: e1e7e66e1b0a020f73902d2d46be3d054bd40b7e (
plain)
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
|
#!/bin/sh
# PCP QA Test No. 1003
# Check that Global clause is detected
#
seq=`basename $0`
echo "QA output created by $seq"
. ./common.qt
_check_display
which pmchart >/dev/null 2>&1 || _notrun "pmchart not installed"
status=0 # success is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# real QA test starts here
cat <<End-of-File | pmchart -Dappl2 -C -c - 2>&1 | _filter_views
#pmchart
Version 1.1 host dynamic
Global width 800
Global height 600
Global points 30
Chart Title "Memory Usage" Style stacking
# IRIX
Optional-Plot Color #f8ff00 Host * Metric mem.util.kernel
Optional-Plot Color #00ffff Host * Metric mem.util.fs_ctl
Optional-Plot Color #ff0000 Host * Metric mem.util.fs_dirty
Optional-Plot Color #fe00ff Host * Metric mem.util.fs_clean
Optional-Plot Color #0000fd Host * Metric mem.util.user
# IRIX and Linux
Plot Color #00ff00 Host * Metric mem.util.free
# Linux
Optional-Plot Color #fefe32 Host * Metric mem.util.mapped
Optional-Plot Color #fe68ad Host * Metric mem.util.bufmem
Optional-Plot Color #00f1ea Host * Metric mem.util.pageTables
Optional-Plot Color #e873e4 Host * Metric mem.util.slab
Optional-Plot Color #327ffe Host * Metric mem.util.cached
Optional-Plot Color #007f00 Host * Metric mem.util.other
Chart Title "Dirty Buffers" Style stacking
Optional-Plot Color #fe3732 Host * Metric mem.util.dirty
Optional-Plot Color #ff8900 Host * Metric mem.util.writeback
Optional-Plot Color #008900 Host * Metric mem.util.cache_clean
End-of-File
|