Vdbench and Swat: how to identify what is what when using 'ps -ef'

For obvious reasons I frequently have multiple Swat or Vdbench processes running, and sometimes get confused as to what is what. 'ps' output is not very helpful. I can maybe compare the heap size values, but I don't always remember them:

hvxxxx 21027 21008   0 09:02:01 pts/12      0:06 java -Xmx512m -Xms128m -cp ./:./classes:./swat.jar:./javachart.jar:./swing-layo
hvxxxx 21060 21041   0 09:02:04 pts/6       0:03 java -Xmx1024m -Xms512m -cp ./:./classes:./swat.jar:./javachart.jar:./swing-lay

A primitive little trick now is making my life easier by using the -D java parameter. It shows me that I am running one background data collector and one local real time monitor (swat -c and swat -l)

hvxxxx 21102 21083   0 09:04:49 pts/12      0:07 java -Dreq=-c -Xmx512m -Xms128m -cp ./:./classes:./swat.jar:./javachart.jar:./s
hvxxxx 21240 21221   0 09:06:01 pts/6       0:34 java -Dreq=-l -Xmx1024m -Xms512m -cp ./:./classes:./swat.jar:./javachart.jar:./

Update to the swat script, you can make a similar change to the Vdbench script

if ("$1" == "-t" || "$1" == "-p" || "$1" == "-l") then
  $java -Dreq=$1 -Xmx1024m -Xms512m -cp $cp Swt.swat $\*
else
  $java -Dreq=$1 -Xmx512m  -Xms128m -cp $cp Swt.swat $\*
endif



 Henk.

Comments:

Hi Henk,

I download Swat 3.02 to collect EMC VMAX storage perf statistics, but no luck.

I used STF both from GUI and command line, both returned error:
/opt/swat/302 # ./swat -s -r2048 -e1800 /tmp/swat-out
16:03:00.878 swat execution parameter: '-s'
16:03:00.879 swat execution parameter: '-r 2048'
16:03:00.879 swat execution parameter: '-e 1800'
16:03:00.879 swat positional parameter: '/tmp/swat-out'
16:03:00.882
16:03:00.882 Tool will expire on: Thu Feb 13 16:45:12 EST 2014
16:03:00.882
invalid parameter: s

Parameter scan error

swat usage:
swat -p: Swat Performance Monitor (SPM)
swat -l: Swat Performance Monitor (SPM Local Real Time)
swat -t: Swat Trace Facility (STF)
swat -m: Swat Trace Monitor (STM)
swat -c[]: Swat Performance Monitor Data Collector
swat -s[]: Swat I/O trace
swat -x[]: Swat Trace data Extraction
swat -a[]: Swat Trace Analysis
swat -h[]: Swat Help

For detailed usage info enter 'swat -x -h' where 'x' is any swat action

Note: starting Swat 3.02 'swat -i' has been replaced with 'swat -s'

#

is this a known issue for this ? or is there any fix for this ?

thank you in advance,

James Yang,

Posted by Jianhua Yang on August 09, 2010 at 07:09 AM MDT #

Try this:

http://blogs.sun.com/henk/entry/fix_for_stf_trace_start

Posted by Henk Vandenbergh on August 09, 2010 at 08:28 AM MDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Blog for Henk Vandenbergh, author of Vdbench, and Sun StorageTek Workload Analysis Tool (Swat). This blog is used to keep you up to date about anything revolving around Swat and Vdbench.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
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
   
       
Today