Overview

  • SMARTT (System Metrics - Annotation Recording and Tracing Tool) is a tool to capture and display system metrics data from the system. It is designed to allow visualization of arbitrary metrics. At present it allows to visualize and track metrics for all perf data and can also supplement with metrics one wants to inject from other applications.

Installation

Deb package for an older version is available here.

  • sudo add-apt-repository ppa:goelkunal/multimedia
    sudo apt-get update
    sudo apt-get install smartt-*

However the latest tarball release can be downloaded from here.

Installation from the tarball:

Install necessary dev packages

  • sudo apt-get install libncurses5-dev libncursesw5-dev libelf-dev libnewt-dev libdw-dev binutils-dev libgtk2.0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad

Unpack and build smartt

  • tar xzvf smartt-0.5.tar.gz
    cd smartt-0.5
    cd smartt-client
    make
    cd ../smartt-server
    make
    cd ../smartt-top
    make
    cd ../smartt-perf
    make
    cd ../smartt-player
    make

Note: The above steps have been verified on Pandaboard only.

Using smartt

Note: Some configuration files need to be copied into /etc/smartt in order to run the smartt-server and smartt-client. Get those files in the attachment: smartt-client.conf smartt-networks.conf smartt-server.conf

In different console run smartt-server and smartt-client

  • $ ./smartt-server
    [SMART-SERVER] # Listening... 
    [I] SMART Server Started                                : Success
    [I] Waiting Request from SMART Client                   : Waiting
    [I] Connected to SMART Client @ 127.0.0.1:5100  : Success
    [I] Waiting for user configuration from SMART Client    : Waiting
    [I] User Configuration Received                         : Success
    [I] Capturing System Metrics for PID [ 3943]            : Running
    [R] Sys info captured and send to server at epoch time [1307613973] 
    [R] Sys info captured and send to server at epoch time [1307613974] 
    [R] Sys info captured and send to server at epoch time [1307613975] 
    [R] Sys info captured and send to server at epoch time [1307613976] 
    [R] Sys info captured and send to server at epoch time [1307613977] 
    [R] Sys info captured and send to server at epoch time [1307613978] 
    [R] Sys info captured and send to server at epoch time [1307613979] 
    [R] Sys info captured and send to server at epoch time [1307613980] 
    [R] Sys info captured and send to server at epoch time [1307613981] 
    [R] Sys info captured and send to server at epoch time [1307613982] 
    [I] Capturing System Metrics for PID [ 3943]            : Completed
    
    [SMART-SERVER] # Listening... 
    $ ./smartt-client
    [SMARTT-CLIENT] # r
    
    [I] SMARTT Client Started                               : Success
    [I] Waiting SMARTT Server to Accept                     : Waiting
    [I] Accepted Connection from SMARTT Server              : Success
    [I] Enter the Pid to track (PID=0 for smartt-player)    : 3943
                            *************************************************************************************************************
                            *                                                                                                           *
                            *                           System Metrics - Annotation Recording & Tracing Tool (SMARTT)                   *
                            *                                                                                                           *
                            *************************************************************************************************************
    
    [ PID(s) ][ TIME-STAMP ][  CPU-CYCLES   (w) ][  INSTRUCN'S   (w) ][  CACHE-M'SS   (w) ][  MEM-USAGE    (w) ][  CU-FPS  ][  AV-FPS  ][  REND'D  ][  DROP'D  ]
    
      3943      1307613414    cc 54078      (.)    in 5700       (.)    cm 209        (.)    mu 627048     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613415    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627268     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613416    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627148     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613417    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627360     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613418    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627344     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613419    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627376     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613420    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627344     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613421    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627360     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613422    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627320     (.)    cf 0.00     af 0.00      re 0        dr 0     
      3943      1307613423    cc 0          (.)    in 0          (.)    cm 0          (.)    mu 627244     (.)    cf 0.00     af 0.00      re 0        dr 0     
     ########################################### REPORT GENERATION #############################################
     Report No    :  0001         Events Enabled      :  0004                                                   
     Start Time   :               Total Samples       :  0010                                                   
     End Time     :               Stat Counter(secs)  :  1.00                                                
     Total Time   :               Watermark levels    :                                                         
     ###########################################################################################################
    
    [SMARTT-CLIENT] # 

Future areas


CategoryHowTo

AvikSil/smartt (last modified 2011-06-09 12:13:54)