Changes between Version 3 and Version 4 of GEMINI/Tutorial/GEC19/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment


Ignore:
Timestamp:
03/11/14 22:44:58 (10 years ago)
Author:
ezkissel@indiana.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEMINI/Tutorial/GEC19/GENI_Desktop_and_GEMINI_blipp/ExecuteExperiment

    v3 v4  
    1010== Overview ==
    1111
    12 The goal of this exercise is to configure BLiPP (Basic Lightweight Periscope Probes) and enable active measurements within your slice.  An example !NetLogger script will be used to generate data that will be collected with an active BLiPP probe.
     12The goal of this exercise is to configure BLiPP (Basic Lightweight Periscope Probes) and enable active measurements within your slice.  An example !NetLogger script will be used to generate data that will be collected with an active BLiPP probe.  A final exercise will use a !NetLogger wrapper library to instrument and existing application.
    1313
    1414[[BR]][[BR]]
     
    7272
    7373
    74 == __Exercise Tasks__ ==
     74== __Exercise Task 1 -- Python !NetLogger__ ==
    7575
    7676For the following exercise, if you do not have your own source code that you want to try and instrument with !NetLogger, you can simply use the
     
    104104}}}
    105105 a. '''Task 3:''' Configure a !NetLogger probe to read the log file and graph the measurements.
     106
     107== __Exercise Task 2 -- Instrument existing application __ ==
     108
     109In this exercise, we will make use of a transparent !NetLogger wrapper than can intercept standard socket calls in existing applications.  This includes read()/write() and send()/recv().  When using the wrapper, you can specify an output file where the log messages are stored.  The !NetLogger probe instructions above can be used to let BLiPP push those measurements into the measurement store for graphing and archiving as we did before.
     110
     111We will use 'iperf' as our test application to instrument with the wrapper library.  The iperf program should already be installed on the GEMINI intrumentized node.  If not, you can 'yum install iperf' or select another application to test with.  The following is an example of how to use the wrapper (assumes default csh on default Fedora 15 images).
     112
     113{{{
     114setenv NL_WRAPPER /usr/local/lib/nl_wrapper.so
     115setenv NL_FILE /tmp/iperf.log
     116
     117iperf -c VM-0 -t 120 -i 2
     118------------------------------------------------------------
     119Client connecting to VM-0, TCP port 5001
     120TCP window size: 49.7 KByte (default)
     121------------------------------------------------------------
     122[  4] local 10.10.1.1 port 49730 connected with 10.10.1.1 port 5001
     123[ ID] Interval       Transfer     Bandwidth
     124[  4]  0.0- 2.0 sec  5.65 GBytes  24.3 Gbits/sec
     125[  4]  2.0- 4.0 sec  6.48 GBytes  27.8 Gbits/sec
     126[  4]  4.0- 6.0 sec  6.22 GBytes  26.7 Gbits/sec
     127[  4]  6.0- 8.0 sec  6.74 GBytes  29.0 Gbits/sec
     128...
     129
     130tail -f /tmp/iperf.log
     131ts=2014-03-12T02:44:40.734545Z event=wrapper.calipers.write v.sum=2496921600.000000 v.min=131072.000000 v.max=131072.000000 v.mean=131072.000000 v.sd=0.000000 r.sum=63101.880412 r.min=0.000654 r.max=5.041231 r.mean=3.312435 r.sd=0.628077 g.sum=7558.227539 g.min=0.198364 g.max=1528.854370 g.mean=0.396757 g.sd=11.074916 count=19050 dur=1.000013 dur.i=0.990672
     132ts=2014-03-12T02:44:41.734688Z event=wrapper.calipers.write v.sum=3468034048.000000 v.min=131072.000000 v.max=131072.000000 v.mean=131072.000000 v.sd=0.000000 r.sum=94498.685749 r.min=0.612486 r.max=5.041231 r.mean=3.571514 r.sd=0.395003 g.sum=7539.329529 g.min=0.198364 g.max=1.632690 g.mean=0.284944 g.sd=0.050552 count=26459 dur=1.000008 dur.i=0.988195
     133ts=2014-03-12T02:44:42.734783Z event=wrapper.calipers.write v.sum=3484024832.000000 v.min=131072.000000 v.max=131072.000000 v.mean=131072.000000 v.sd=0.000000 r.sum=94586.291226 r.min=0.217728 r.max=4.854519 r.mean=3.558417 r.sd=0.267479 g.sum=7536.308289 g.min=0.205994 g.max=4.592896 g.mean=0.283522 g.sd=0.048784 count=26581 dur=1.000032 dur.i=0.987799
     134ts=2014-03-12T02:44:43.734906Z event=wrapper.calipers.write v.sum=3365928960.000000 v.min=131072.000000 v.max=131072.000000 v.mean=131072.000000 v.sd=0.000000 r.sum=89386.429279 r.min=0.422813 r.max=4.854519 r.mean=3.480780 r.sd=0.440131 g.sum=7541.175842 g.min=0.205994 g.max=2.365112 g.mean=0.293659 g.sd=0.055629 count=25680 dur=1.000017 dur.i=0.988437
     135...
     136}}}