3 次代码提交 c4f0267c2b ... d425d329ee

作者 SHA1 备注 提交日期
  Arne Babenhauserheide d425d329ee add success-count for the lifetime plots 2 年之前
  Arne Babenhauserheide 52a0d112fe change port to smaller node to have performance that matches typical new users 2 年之前
  Arne Babenhauserheide fdc95a1785 default port 2 年之前
共有 2 个文件被更改,包括 39 次插入5 次删除
  1. 32 1
      fetchpull-plot.gnuplot
  2. 7 4
      fetchpull.w

+ 32 - 1
fetchpull-plot.gnuplot

@@ -84,7 +84,7 @@ set cbtics add ("2048" 2048)
 set cbtics add ("4096" 4096)
 set cbtics add ("4096" 4096)
 set ylabel "days since upload"
 set ylabel "days since upload"
 set cblabel "time to download (s)"
 set cblabel "time to download (s)"
-set title "fetchpull: lifetime"
+set title "fetchpull: lifetime download-time"
 set term png size 800,600
 set term png size 800,600
 set output "fetchpull-lifetime-realtime.png"
 set output "fetchpull-lifetime-realtime.png"
 plot "<(grep realtime\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "realtime succeeded"
 plot "<(grep realtime\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "realtime succeeded"
@@ -92,6 +92,37 @@ set output "fetchpull-lifetime-small.png"
 plot "<(grep small\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "small succeeded"
 plot "<(grep small\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "small succeeded"
 set output "fetchpull-lifetime-bulk.png"
 set output "fetchpull-lifetime-bulk.png"
 plot "<(grep bulk\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "bulk succeeded"
 plot "<(grep bulk\\;\\#t fetchpull-stats-get.csv)" using 1:4:3 palette lw 1 title "bulk succeeded"
+
+
+# download time heatmaps (do not work well yet)
+# set view map
+# set dgrid3d
+# set pm3d interpolate 16,16
+# set title "fetchpull: average download time"
+# 
+# set output "fetchpull-lifetime-bulk-download-time.png"
+# splot "<(grep 'bulk;#t' fetchpull-stats-get.csv)" using 1:4:3 palette with pm3d title "bulk succeeded"
+# set output "fetchpull-lifetime-small-download-time.png"
+# splot "<(grep 'small;#t' fetchpull-stats-get.csv)" using 1:4:3 palette with pm3d title "bulk succeeded"
+
+# success count plots
+set title "fetchpull: lifetime: monthly success-count"
+unset datafile separator
+unset logscale cb
+unset cbtics
+set cbtics format "%g "
+set cblabel "successful downloads (count)"
+# simple monthly binning
+set timefmt "%Y-%m"
+set format x "%Y-%m"
+
+set output "fetchpull-lifetime-realtime-success-count.png"
+plot "<(grep 'realtime;#t' fetchpull-stats-get.csv | sed 's/-..;/;/;s/;[^;]+//;s/;[^;]*//;s/;[^;]*//;s/;/ /g' | sort | uniq -c)" using 2:3:1 palette lw 4 title "realtime succeeded"
+set output "fetchpull-lifetime-small-success-count.png"
+plot "<(grep 'small;#t' fetchpull-stats-get.csv | sed 's/-..;/;/;s/;[^;]+//;s/;[^;]*//;s/;[^;]*//;s/;/ /g' | sort | uniq -c)" using 2:3:1 palette lw 4 title "small succeeded"
+set output "fetchpull-lifetime-bulk-success-count.png"
+plot "<(grep 'bulk;#t' fetchpull-stats-get.csv | sed 's/-..;/;/;s/;[^;]+//;s/;[^;]*//;s/;[^;]*//;s/;/ /g' | sort | uniq -c)" using 2:3:1 palette lw 4 title "bulk succeeded"
+
 replot
 replot
 quit
 quit
 
 

+ 7 - 4
fetchpull.w

@@ -115,7 +115,7 @@ define : KSK-for-request prefix time days-before mode
 define sock #f
 define sock #f
 
 
 define : fcp-socket-create
 define : fcp-socket-create
-    define addrs : getaddrinfo "127.0.0.1" "9483"
+    define addrs : getaddrinfo "127.0.0.1" "9489"
     define addr : first addrs
     define addr : first addrs
     define s : socket (addrinfo:fam addr) (addrinfo:socktype addr) (addrinfo:protocol addr)
     define s : socket (addrinfo:fam addr) (addrinfo:socktype addr) (addrinfo:protocol addr)
     connect s : addrinfo:addr addr
     connect s : addrinfo:addr addr
@@ -791,9 +791,12 @@ define : website-content port
              p : img : @ (src "fetchpull-get-failed-bulk.png") (alt "fetch-pull failed bulk download graph")
              p : img : @ (src "fetchpull-get-failed-bulk.png") (alt "fetch-pull failed bulk download graph")
              p : img : @ (src "fetchpull-put.png") (alt "fetch-pull upload graph")
              p : img : @ (src "fetchpull-put.png") (alt "fetch-pull upload graph")
              p : img : @ (src "fetchpull-put-failed.png") (alt "fetch-pull failed upload graph")
              p : img : @ (src "fetchpull-put-failed.png") (alt "fetch-pull failed upload graph")
-             p : img : @ (src "fetchpull-lifetime-realtime.png") (alt "lifetime plot, realtime")
-             p : img : @ (src "fetchpull-lifetime-small.png") (alt "lifetime plot, small bulk")
-             p : img : @ (src "fetchpull-lifetime-bulk.png") (alt "lifetime plot, large bulk")
+             p : img : @ (src "fetchpull-lifetime-realtime.png") (alt "lifetime plot: time per download, realtime")
+             p : img : @ (src "fetchpull-lifetime-small.png") (alt "lifetime plot: time per download, small bulk")
+             p : img : @ (src "fetchpull-lifetime-bulk.png") (alt "lifetime plot: time per download, large bulk")
+             p : img : @ (src "fetchpull-lifetime-realtime-success-count.png") (alt "lifetime plot: successes per month, realtime")
+             p : img : @ (src "fetchpull-lifetime-small-success-count.png") (alt "lifetime plot: successes per month, small bulk")
+             p : img : @ (src "fetchpull-lifetime-bulk-success-count.png") (alt "lifetime plot: successes per month, large bulk")
              h2 "explanation"
              h2 "explanation"
              p "Files uploaded regularly with the download attempted after some delay. 
              p "Files uploaded regularly with the download attempted after some delay. 
 Realtime is uploaded with realtime priority, small and bulk with bulk priority. 
 Realtime is uploaded with realtime priority, small and bulk with bulk priority.