Add partitions and tags.

This commit is contained in:
Philippe PITTOLI 2024-05-12 02:41:18 +02:00
parent c95bd22c23
commit 8d912b98a4

171
graphs.ms
View File

@ -6,7 +6,7 @@ reset
.PE
.G1
label left "Request duration (ns)" "(Median and" "fifth percentiles)"
label left "Request duration for an index (ns)" "(Median and" "fifth percentiles)"
label bot "Number of cars"
# minx = 1e12; maxx = -1e12
@ -15,23 +15,34 @@ n = sigx = sigx2 = sigy = sigxy = 0
obram = obuncache = obcache = obsemi = 0
cbram = cbuncache = cbcache = cbsemi = 0
coord y -5,100000
coord y -5,75000
copy "data/index.d" thru X
cx = $1*5
# ram cached semi uncached
line from $1*5,$2 to $1*5,$4
line from $1*5,$5 to $1*5,$7
line from $1*5,$8 to $1*5,$10
line from $1*5,$11 to $1*5,$12
line from cx,$2 to cx,$4
line from cx,$5 to cx,$7
line from cx,$8 to cx,$10
line from cx,$11 to cx,$13
#ty = $3
cx = $1*5
cbram = $3
cbcache = $6
cbsemi = $9
cbuncache = $11
cbuncache = $12
#if obram > 0 then line from $1*5, else
if (obram > 0) then {line from cx,cbram to ox,obram}
if (obcache > 0) then {line from cx,cbcache to ox,obcache}
.gcolor blue
if (obsemi > 0) then {line from cx,cbsemi to ox,obsemi}
.gcolor
.gcolor green
if (obuncache > 0) then {line from cx,cbuncache to ox,obuncache}
.gcolor
obram = cbram
obcache = cbcache
@ -41,14 +52,150 @@ copy "data/index.d" thru X
# ram cached semi uncached
.gcolor red
bullet at $1*5,$3
bullet at cx,cbram
.gcolor
bullet at $1*5,$6
bullet at cx,cbcache
.gcolor blue
bullet at $1*5,$11
bullet at cx,cbsemi
.gcolor
.gcolor green
bullet at $1*5,$13
bullet at cx,cbuncache
.gcolor
#n = n+1
#sigx = sigx+$1; sigx2 = sigx2+$1*$1
#sigy = sigy+ty; sigxy = sigxy+$1*ty
#minx = min(minx,$1); maxx = max(maxx,$1)
X
## Calculate least squares fit and draw it
#slope = (n*sigxy - sigx*sigy) / (n*sigx2 - sigx*sigx)
#inter = (sigy - slope*sigx) / n
## print slope; print inter
#line from minx,slope*minx+inter to maxx,slope*maxx+inter
.G2
.G1
label left "Request duration for a partition (ns)" "(Median and" "fifth percentiles)"
label bot "Number of cars"
# minx = 1e12; maxx = -1e12
n = sigx = sigx2 = sigy = sigxy = 0
obram = obuncache = obcache = obsemi = 0
cbram = cbuncache = cbcache = cbsemi = 0
coord y -5,40000
copy "data/partitions.d" thru X
cx = $1*5
# ram cached semi uncached
line from cx,$2 to cx,$4
line from cx,$5 to cx,$7
line from cx,$8 to cx,$10
line from cx,$11 to cx,$13
#ty = $3
cbram = $3
cbcache = $6
cbsemi = $9
cbuncache = $12
if (obram > 0) then {line from cx,cbram to ox,obram}
if (obcache > 0) then {line from cx,cbcache to ox,obcache}
.gcolor blue
if (obsemi > 0) then {line from cx,cbsemi to ox,obsemi}
.gcolor
.gcolor green
if (obuncache > 0) then {line from cx,cbuncache to ox,obuncache}
.gcolor
obram = cbram
obcache = cbcache
obsemi = cbsemi
obuncache = cbuncache
ox = cx
# ram cached semi uncached
.gcolor red
bullet at cx,cbram
.gcolor
bullet at cx,cbcache
.gcolor blue
bullet at cx,cbsemi
.gcolor
.gcolor green
bullet at cx,cbuncache
.gcolor
#n = n+1
#sigx = sigx+$1; sigx2 = sigx2+$1*$1
#sigy = sigy+ty; sigxy = sigxy+$1*ty
#minx = min(minx,$1); maxx = max(maxx,$1)
X
## Calculate least squares fit and draw it
#slope = (n*sigxy - sigx*sigy) / (n*sigx2 - sigx*sigx)
#inter = (sigy - slope*sigx) / n
## print slope; print inter
#line from minx,slope*minx+inter to maxx,slope*maxx+inter
.G2
.G1
label left "Request duration for a tag (ns)" "(Median and" "fifth percentiles)"
label bot "Number of cars"
# minx = 1e12; maxx = -1e12
n = sigx = sigx2 = sigy = sigxy = 0
obram = obuncache = obcache = obsemi = 0
cbram = cbuncache = cbcache = cbsemi = 0
coord y -5,40000
copy "data/tags.d" thru X
cx = $1*5
# ram cached semi uncached
line from cx,$2 to cx,$4
line from cx,$5 to cx,$7
line from cx,$8 to cx,$10
line from cx,$11 to cx,$13
#ty = $3
cbram = $3
cbcache = $6
cbsemi = $9
cbuncache = $12
if (obram > 0) then {line from cx,cbram to ox,obram}
if (obcache > 0) then {line from cx,cbcache to ox,obcache}
.gcolor blue
if (obsemi > 0) then {line from cx,cbsemi to ox,obsemi}
.gcolor
.gcolor green
if (obuncache > 0) then {line from cx,cbuncache to ox,obuncache}
.gcolor
obram = cbram
obcache = cbcache
obsemi = cbsemi
obuncache = cbuncache
ox = cx
# ram cached semi uncached
.gcolor red
bullet at cx,cbram
.gcolor
bullet at cx,cbcache
.gcolor blue
bullet at cx,cbsemi
.gcolor
.gcolor green
bullet at cx,cbuncache
.gcolor
#n = n+1