grid-14-virt-clusters

Applications of on-demand virtual clusters to high performance computing
git clone https://git.igankevich.com/grid-14-virt-clusters.git
Log | Files | Refs

plot.gp (5453B)


      1 #!/usr/bin/gnuplot -persist
      2 
      3 set terminal svg enhanced dashed round dynamic size 1600, 900 font "DejaVU Sans,34" lw 2 background '#cbdfea'
      4 
      5 set style line 1 lt 1 lc rgb "#215c7e"
      6 set style line 2 lt 1 lc rgb "#56849e"
      7 set style line 3 lt 1 lc rgb "#778d98"
      8 set style line 4 lt 1 lc rgb "#0e3f5d"
      9 set style line 5 lt 1 lc rgb "#0e3f5d"
     10 set style line 6 lt 1 lc rgb "#0e3f5d" lw 4
     11 set style line 7 lt 1 lc rgb "#4f6266"
     12 set style line 8 lt 1 lc rgb "#7d0e0e" lw 4
     13 
     14 #set xrange [1:25]
     15 set yrange [0:*]
     16 set xtics 1,1 nomirror out textcolor rgb '#4f6266'
     17 set xlabel 'Nodes' textcolor rgb '#4f6266'
     18 set ytics nomirror out textcolor rgb '#4f6266'
     19 set ylabel 'Time [s]'  textcolor rgb '#4f6266'
     20 set border 3 ls 7
     21 unset key
     22 #set key center right Right outside textcolor rgb '#4f6266'
     23 #set style fill pattern 2 border
     24 
     25 set output 'create-boot.svg'
     26 set label 1 'Xen'          at graph 0.50,0.7 front textcolor rgb '#4f6266'
     27 set label 2 'LXC execute'  at graph 0.70,0.20 front textcolor rgb '#4f6266'
     28 set label 3 'LXC start'    at graph 0.80,0.03 front textcolor rgb '#4f6266'
     29 plot 'create-boot/xen.dat'  using 1:($2+$3+$4) with lines smooth csplines ls 3 lw 4 title 'Xen',\
     30      'create-boot/lxc.dat'  using 1:($2+$3+$4) with lines smooth csplines ls 2 lw 4 title 'LXC',\
     31      'create-boot/lxce.dat' using 1:($2+$3+$4) with lines smooth csplines ls 1 lw 4 title 'LXCE'
     32 
     33 set output 'create-boot-stages.svg'
     34 set key center top reverse Left textcolor rgb '#4f6266'
     35 unset label 3
     36 set label 1 'Create' at graph 0.70,0.2 front textcolor rgb '#cbdfea'
     37 set label 2 'Boot'   at graph 0.70,0.58 front textcolor rgb '#cbdfea'
     38 plot 'create-boot/lxc.dat' \
     39 	    using 1:($2+$3+$4):2 with filledcurves ls 3 fs solid noborder notitle,\
     40 	    '' using 1:2               with filledcurves above y1=0 ls 1 fs solid noborder notitle,\
     41 	    '' using 1:2               with lines ls 6 title 'LXC start',\
     42 	    '' using 1:($2+$3+$4)      with lines ls 6 notitle,\
     43      'create-boot/lxce.dat' using 1:2 with lines ls 8 title 'LXC execute',\
     44      '' using 1:($2+$3+$4) with lines ls 8 notitle
     45 
     46 unset key
     47 set xtics 2,1 nomirror out textcolor rgb '#4f6266'
     48 
     49 set output 'run.svg'
     50 unset label 3
     51 #set xrange [2:6]
     52 set label 1 'LXC'      at graph 0.52,0.94 front textcolor rgb '#4f6266'
     53 set label 2 'Physical' at graph 0.50,0.60 front textcolor rgb '#4f6266'
     54 plot 'lxc.dat'      using 1:($4+$5+$6) with lines smooth csplines ls 1 lw 4 notitle,\
     55 	 'physical.dat' using 1:($2+$3+$4) with lines smooth csplines ls 2 lw 4 notitle
     56 
     57 set xrange [2:*]
     58 set output 'run-stages.svg'
     59 #set output 'physical.svg'
     60 set label 1 'Copy in'  at graph 0.80,0.11 front textcolor rgb '#cbdfea'
     61 set label 2 'Run'      at graph 0.80,0.40 front textcolor rgb '#cbdfea'
     62 set label 3 'Copy out' at graph 0.80,0.62 front textcolor rgb '#cbdfea'
     63 set key center top reverse Left textcolor rgb '#4f6266'
     64 plot 'physical.dat'\
     65 	    using 1:($2+$3+$4):($2+$3) with filledcurves ls 3 fs solid noborder notitle,\
     66 	    '' using 1:($2+$3):2       with filledcurves ls 2 fs solid noborder notitle,\
     67 	    '' using 1:2               with filledcurves above y1=0 ls 1 fs solid noborder notitle,\
     68 	    '' using 1:2               with lines ls 6 title 'Physical',\
     69 	    '' using 1:($2+$3)         with lines ls 6 notitle,\
     70 	    '' using 1:($2+$3+$4)      with lines ls 6 notitle,\
     71  'lxc.dat' using 1:4               with lines ls 8 title 'LXC',\
     72 	    '' using 1:($4+$5)         with lines ls 8 notitle,\
     73 	    '' using 1:($4+$5+$6)      with lines ls 8 notitle
     74 
     75 
     76 #set output 'lxc.svg'
     77 #set label 1 'Copy in'  at graph 0.80,0.07 front textcolor rgb '#cbdfea'
     78 #set label 2 'Run'      at graph 0.80,0.33 front textcolor rgb '#cbdfea'
     79 #set label 3 'Copy out' at graph 0.80,0.62 front textcolor rgb '#cbdfea'
     80 #plot 'lxc.dat'\
     81 #	    using 1:($4+$5+$6):($4+$5) with filledcurves ls 3 fs solid noborder notitle,\
     82 #	    '' using 1:($4+$5):4       with filledcurves ls 2 fs solid noborder notitle,\
     83 #	    '' using 1:4               with filledcurves above y1=0 ls 1 fs solid noborder notitle,\
     84 #	    '' using 1:4               with lines ls 6 notitle,\
     85 #	    '' using 1:($4+$5)         with lines ls 6 notitle,\
     86 #	    '' using 1:($4+$5+$6)      with lines ls 6 notitle
     87 
     88 
     89 unset label 1
     90 unset label 2
     91 unset label 3
     92 
     93 set output 'all-stages.svg'
     94 set label 1 'Create'   at graph 0.80,0.07 front textcolor rgb '#cbdfea'
     95 set label 2 'Boot'     at graph 0.70,0.23 front textcolor rgb '#cbdfea'
     96 set label 3 'Copy in'  at graph 0.66,0.38 front textcolor rgb '#cbdfea'
     97 set label 4 'Run'      at graph 0.62,0.54 front textcolor rgb '#cbdfea'
     98 set label 5 'Copy out' at graph 0.48,0.63 front textcolor rgb '#cbdfea'
     99 plot 'lxc.dat'\
    100 	    using 1:($2+$3+$4+$5+$6):($2+$3+$4+$5) with filledcurves ls 2 fs solid noborder notitle,\
    101 	    '' using 1:($2+$3+$4+$5):($2+$3+$4)    with filledcurves ls 1 fs solid noborder notitle,\
    102 	    '' using 1:($2+$3+$4):($2+$3)          with filledcurves ls 3 fs solid noborder notitle,\
    103 	    '' using 1:($2+$3):2                   with filledcurves ls 2 fs solid noborder notitle,\
    104 	    '' using 1:2                           with filledcurves above y1=0 ls 1 fs solid noborder notitle,\
    105 	    '' using 1:2                           with lines ls 4 notitle,\
    106 	    '' using 1:($2+$3)                     with lines ls 4 notitle,\
    107 	    '' using 1:($2+$3+$4)                  with lines ls 4 notitle,\
    108 	    '' using 1:($2+$3+$4+$5)               with lines ls 4 notitle,\
    109 	    '' using 1:($2+$3+$4+$5+$6)            with lines ls 4 notitle