You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crail.apache.org by at...@apache.org on 2018/01/21 10:20:39 UTC

[21/53] [partial] incubator-crail-website git commit: Moving all website source into a site directory

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/39417b15/site/_plots/blog/memory-tier/broadcast/generate.sh
----------------------------------------------------------------------
diff --git a/site/_plots/blog/memory-tier/broadcast/generate.sh b/site/_plots/blog/memory-tier/broadcast/generate.sh
new file mode 100755
index 0000000..8c77e08
--- /dev/null
+++ b/site/_plots/blog/memory-tier/broadcast/generate.sh
@@ -0,0 +1,16 @@
+if [ $# -ne 1 ]; then 
+	echo "which file"
+	exit 1 
+fi 
+ 
+totalLines=$(cat $1 | wc -l)
+echo "total line numbers: $totalLines" 
+rm ./xx
+for i in `seq 1 100`;
+do 
+   lx=$(( $i * $totalLines ))
+   lxx=$(( $lx / 100 ))
+   sed -n "${lxx}p" $1 >> ./xx
+done    
+
+cat ./xx | awk '{print $1,"\t",NR}' > cdf-$1

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/39417b15/site/_plots/blog/memory-tier/broadcast/plot.gp
----------------------------------------------------------------------
diff --git a/site/_plots/blog/memory-tier/broadcast/plot.gp b/site/_plots/blog/memory-tier/broadcast/plot.gp
new file mode 100755
index 0000000..0209090
--- /dev/null
+++ b/site/_plots/blog/memory-tier/broadcast/plot.gp
@@ -0,0 +1,25 @@
+#set terminal pdf color font "Times-Roman, 20"  
+set term svg size 640,300 font "Times-Roman, 12"
+set output "cdf-broadcast-128-read.svg"
+set yrange [0:100]
+set ylabel "CDF"
+
+set xlabel "read 128b broadcast latency"
+set xrange [1:100000]
+
+set xtics ( "1us" 1,\
+"10us" 10,\
+"100us" 100,\
+"1ms" 1000,\
+"10ms" 10000,\
+"100ms" 100000)
+
+set logscale x
+
+set grid
+
+set key bottom right maxrows 3 samplen 1 
+
+plot 'cdf-crail' using 1:2 title "crail" with lines lc rgb "green" lw 4,\
+'cdf-vanilla' using 1:2 title "vanilla" with lines lc rgb "red" lw 4,\
+'cdf-network-read' using 1:2 notitle with lines lc rgb "grey" lw 4