The script is used to parse Lustre debug log and generate rpc trace file.

Requirements: Lustre 1.8 or 2.0, Gnuplot.

Steps:
1. Get lustre debug log. 
    a. lctl set_param debug +rpctrace
    b. run your benchmark.
    c. lctl dk > /tmp/debug.log

2. Parsing the Lustre debug log 

   sh plot.sh debug.log

   Then it will create a rpc.png under your current directory. You probably need adjust rpc.dem to adjust
   the scale of X/Y axis to make your graphes looks better.


 
