Misc tweaks of figures
cover Misc tweaks of figures
Hi Paul,
This patch set consists of minor tweaks of figures.
Patch 1/5 shrinks a couple of unnecessarily large figures.
Patches 2/5--4/5 take care of Figure 10.19 and its derivative, Figure E.7.
Consistently using solid traces for resizable hash tables helps readers to follow the discussion.
Patch 4/5 also adds a footnote on the upper three traces which look like two traces.
Patch 5/5 changes marks of "x)" to "(x)" so that they match how they are called out in the text.
Thanks, Akira
--
Akira Yokosawa (5):
Shrink Figures 9.27 and 14.3 in 2c builds
datastruct: Break gnuplot command line per each plot trace
datastruct: Use consistent dash type in Figures 10.19 and E.7
datastruct: Expand on the dash type of traces in Figure 10.19
datastruct: Change marks in Figures 10.20 and 10.21 to "(x)"
.../data/hps.resize.2020.09.05a/perftestresize.eps | 10 +++++----- .../data/hps.resize.2020.09.05a/plots-resize.sh | 7 ++++++- .../hps.resize.2020.09.27a/perftestresizebig.eps | 10 +++++----- .../data/hps.resize.2020.09.27a/plots-resize.sh | 8 +++++++- advsync/rt.tex | 2 +- datastruct/datastruct.tex | 13 ++++++++----- datastruct/zipperhashgrow.svg | 14 +++++++------- datastruct/zipperhashshrink.svg | 12 ++++++------ defer/rcuusage.tex | 2 +- 9 files changed, 46 insertions(+), 32 deletions(-)
base-commit: 333422f99c550d4ba5809525e7eeebf1a5ab16e8
Signature · 1 line
2.17.1
PATCH 1/5 Shrink Figures 9.27 and 14.3 in 2c builds
\textwidth is too large for them in 2c builds. Use \onecolumntextwidth defined in the preamble instead.
--- advsync/rt.tex | 2 +- defer/rcuusage.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
advsync/rt.tex +1 -1
@@ -133,7 +133,7 @@ it can alert the hospital staff. \begin{figure*} \centering -\resizebox{\textwidth}{!}{\rotatebox{90}{\includegraphics{cartoons/realtime-lazy-crop}}} +\resizebox{\onecolumntextwidth}{!}{\rotatebox{90}{\includegraphics{cartoons/realtime-lazy-crop}}} \caption{Real-Time Response: Notification Insufficient} \ContributedBy{Figure}{fig:advsync:Real-Time Response: Notification Insufficient}{Melissa Broussard}
defer/rcuusage.tex +1 -1
@@ -855,7 +855,7 @@ longer any readers still referencing it. \begin{figure*} \centering -\resizebox{\textwidth}{!}{\includegraphics{defer/RCUspacetime}} +\resizebox{\onecolumntextwidth}{!}{\includegraphics{defer/RCUspacetime}} \caption{RCU Spatial/Temporal Synchronization} \label{fig:defer:RCU Spatial/Temporal Synchronization} \end{figure*}
Signature · 1 line
2.17.1
PATCH 2/5 datastruct: Break gnuplot command line per each plot trace
In reply to Akira YokosawaThis change has no effect on the resulting plots. It is meant for ease of seeing diffs in the following change.
--- .../hash/data/hps.resize.2020.09.05a/plots-resize.sh | 7 ++++++- .../hash/data/hps.resize.2020.09.27a/plots-resize.sh | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-)
CodeSamples/datastruct/hash/data/hps.resize.2020.09.05a/plots-resize.sh +6 -1
@@ -48,5 +48,10 @@ set label 2 "2,097,152" at 10,8000 left # set label 3 "131,072" at 10,5000 left # set label 4 "rwlock" at 0.3,1.6 left # set label 5 "refcnt" at 0.15,2.8 left -plot "perftestS.2097152.${tag}.dat" w l, "perftestR.2097152.${tag}.dat" w l, "perftestL.2097152.${tag}.dat" w l, "perftestS.262144.${tag}.dat" w l, "perftestR.262144.${tag}.dat" w l, "perftestL.262144.${tag}.dat" w l +plot "perftestS.2097152.${tag}.dat" w l,\ + "perftestR.2097152.${tag}.dat" w l,\ + "perftestL.2097152.${tag}.dat" w l,\ + "perftestS.262144.${tag}.dat" w l,\ + "perftestR.262144.${tag}.dat" w l,\ + "perftestL.262144.${tag}.dat" w l ---EOF---
CodeSamples/datastruct/hash/data/hps.resize.2020.09.27a/plots-resize.sh +7 -1
@@ -50,5 +50,11 @@ set label 2 "2,097,152" at 10,8000 left # set label 3 "131,072" at 10,5000 left # set label 4 "rwlock" at 0.3,1.6 left # set label 5 "refcnt" at 0.15,2.8 left -plot "perftestS.2097152.${tag}.dat" w l, "perftestR.2097152.${tag}.dat" w l, "perftestL.2097152.${tag}.dat" w l, "perftestS.262144.${tag}.dat" w l, "perftestR.262144.${tag}.dat" w l, "perftestL.262144.${tag}.dat" w l, "perftestL.2097152.hps.2020.09.27a.dat" w l +plot "perftestS.2097152.${tag}.dat" w l,\ + "perftestR.2097152.${tag}.dat" w l,\ + "perftestL.2097152.${tag}.dat" w l,\ + "perftestS.262144.${tag}.dat" w l,\ + "perftestR.262144.${tag}.dat" w l,\ + "perftestL.262144.${tag}.dat" w l,\ + "perftestL.2097152.hps.2020.09.27a.dat" w l ---EOF---
Signature · 1 line
2.17.1
PATCH 3/5 datastruct: Use consistent dash type in Figures 10.19 and E.7
In reply to Akira YokosawaUse solid lines for traces of resizable hash tables.
--- .../data/hps.resize.2020.09.05a/perftestresize.eps | 10 +++++----- .../data/hps.resize.2020.09.05a/plots-resize.sh | 12 ++++++------ .../hps.resize.2020.09.27a/perftestresizebig.eps | 10 +++++----- .../data/hps.resize.2020.09.27a/plots-resize.sh | 14 +++++++------- 4 files changed, 23 insertions(+), 23 deletions(-)
CodeSamples/datastruct/hash/data/hps.resize.2020.09.05a/perftestresize.eps +5 -5
@@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Title: perftestresize.eps %%Creator: gnuplot 5.2 patchlevel 2 -%%CreationDate: Sat Sep 26 14:47:30 2020 +%%CreationDate: Fri Oct 22 17:49:45 2021 %%DocumentFonts: (atend) %%BoundingBox: 50 50 302 410 %%Orientation: Portrait
@@ -1872,7 +1872,7 @@ SDict begin [ /Creator (gnuplot 5.2 patchlevel 2) % /Producer (gnuplot) % /Keywords () - /CreationDate (Sat Sep 26 14:47:30 2020) + /CreationDate (Fri Oct 22 17:49:45 2021) /DOCINFO pdfmark end } ifelse
@@ -2247,6 +2247,7 @@ LTb % Begin plot #1 1.000 UL LTb +LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont /vshift -33 def
@@ -2308,7 +2309,6 @@ LCb setrgbcolor % Begin plot #2 stroke LTb -LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1161 M
@@ -2430,7 +2430,7 @@ LCb setrgbcolor % Begin plot #4 stroke LTb -LT3 +LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1576 M
@@ -2553,7 +2553,7 @@ LCb setrgbcolor stroke 1.200 UL LTb -[8.0 dl1 4.0 dl2 1.0 dl1 2.5 dl2 1.0 dl1 2.5 dl2 1.0 dl1 4.0 dl2 ] 0 setdash +LT2 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1577 M
CodeSamples/datastruct/hash/data/hps.resize.2020.09.05a/plots-resize.sh +6 -6
@@ -48,10 +48,10 @@ set label 2 "2,097,152" at 10,8000 left # set label 3 "131,072" at 10,5000 left # set label 4 "rwlock" at 0.3,1.6 left # set label 5 "refcnt" at 0.15,2.8 left -plot "perftestS.2097152.${tag}.dat" w l,\ - "perftestR.2097152.${tag}.dat" w l,\ - "perftestL.2097152.${tag}.dat" w l,\ - "perftestS.262144.${tag}.dat" w l,\ - "perftestR.262144.${tag}.dat" w l,\ - "perftestL.262144.${tag}.dat" w l +plot "perftestS.2097152.${tag}.dat" dt 2 w l,\ + "perftestR.2097152.${tag}.dat" dt 1 w l,\ + "perftestL.2097152.${tag}.dat" dt 3 w l,\ + "perftestS.262144.${tag}.dat" dt 2 w l,\ + "perftestR.262144.${tag}.dat" dt 1 w l,\ + "perftestL.262144.${tag}.dat" dt 3 w l ---EOF---
CodeSamples/datastruct/hash/data/hps.resize.2020.09.27a/perftestresizebig.eps +5 -5
@@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Title: perftestresizebig.eps %%Creator: gnuplot 5.2 patchlevel 2 -%%CreationDate: Sun Sep 27 15:11:07 2020 +%%CreationDate: Fri Oct 22 18:24:07 2021 %%DocumentFonts: (atend) %%BoundingBox: 50 50 302 410 %%Orientation: Portrait
@@ -1872,7 +1872,7 @@ SDict begin [ /Creator (gnuplot 5.2 patchlevel 2) % /Producer (gnuplot) % /Keywords () - /CreationDate (Sun Sep 27 15:11:07 2020) + /CreationDate (Fri Oct 22 18:24:07 2021) /DOCINFO pdfmark end } ifelse
@@ -2247,6 +2247,7 @@ LTb % Begin plot #1 1.000 UL LTb +LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont /vshift -33 def
@@ -2308,7 +2309,6 @@ LCb setrgbcolor % Begin plot #2 stroke LTb -LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1161 M
@@ -2430,7 +2430,7 @@ LCb setrgbcolor % Begin plot #4 stroke LTb -LT3 +LT1 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1576 M
@@ -2553,7 +2553,7 @@ LCb setrgbcolor stroke 1.200 UL LTb -[8.0 dl1 4.0 dl2 1.0 dl1 2.5 dl2 1.0 dl1 2.5 dl2 1.0 dl1 4.0 dl2 ] 0 setdash +LT2 LCb setrgbcolor /NimbusSanL-Regu findfont 100 scalefont setfont 670 1577 M
CodeSamples/datastruct/hash/data/hps.resize.2020.09.27a/plots-resize.sh +7 -7
@@ -50,11 +50,11 @@ set label 2 "2,097,152" at 10,8000 left # set label 3 "131,072" at 10,5000 left # set label 4 "rwlock" at 0.3,1.6 left # set label 5 "refcnt" at 0.15,2.8 left -plot "perftestS.2097152.${tag}.dat" w l,\ - "perftestR.2097152.${tag}.dat" w l,\ - "perftestL.2097152.${tag}.dat" w l,\ - "perftestS.262144.${tag}.dat" w l,\ - "perftestR.262144.${tag}.dat" w l,\ - "perftestL.262144.${tag}.dat" w l,\ - "perftestL.2097152.hps.2020.09.27a.dat" w l +plot "perftestS.2097152.${tag}.dat" dt 2 w l,\ + "perftestR.2097152.${tag}.dat" dt 1 w l,\ + "perftestL.2097152.${tag}.dat" dt 3 w l,\ + "perftestS.262144.${tag}.dat" dt 2 w l,\ + "perftestR.262144.${tag}.dat" dt 1 w l,\ + "perftestL.262144.${tag}.dat" dt 3 w l,\ + "perftestL.2097152.hps.2020.09.27a.dat" dt 7 w l ---EOF---
Signature · 1 line
2.17.1
PATCH 4/5 datastruct: Expand on the dash type of traces in Figure 10.19
In reply to Akira YokosawaThe text reads "The uppermost three traces", but there appear to be only two traces.
Put a footnote explaining how the dashed trace is composed.
Also mention the dash types in the text.
--- datastruct/datastruct.tex | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
datastruct/datastruct.tex +8 -5
@@ -1613,7 +1613,10 @@ fixed-size 524,288-bucket hash table, and a third for a resizable hash table that shifts back and forth between 262,144 and 524,288 buckets, with a one-millisecond pause between each resize operation. -The uppermost three traces are for the 262,144-element hash table. +The uppermost three traces are for the 262,144-element hash table.\footnote{ + You see only two traces? + The dashed one is composed of two traces that differ + only slightly, hence the irregular-looking dash pattern.} The dashed trace corresponds to the two fixed-size hash tables, and the solid trace to the resizable hash table. In this case, the short hash chains cause normal lookup overhead
@@ -1626,10 +1629,10 @@ In particular, the entire hash table fits into L3 cache. % millisecond is clearly too short a time. The lower three traces are for the 2,097,152-element hash table. -The upper trace corresponds to the 262,144-bucket fixed-size hash table, -the trace in the middle for low CPU counts and at the bottom for high -CPU counts to the resizable hash table, and the other trace -to the 524,288-bucket fixed-size hash table. +The upper dashed trace corresponds to the 262,144-bucket fixed-size +hash table, the solid trace in the middle for low CPU counts and at +the bottom for high CPU counts to the resizable hash table, +and the other trace to the 524,288-bucket fixed-size hash table. The fact that there are now an average of eight elements per bucket can only be expected to produce a sharp decrease in performance, as in fact is shown in the graph.
Signature · 1 line
2.17.1
PATCH 5/5 datastruct: Change marks in Figures 10.20 and 10.21 to "(x)"
In reply to Akira YokosawaThis change improves consistency with the text.
--- datastruct/zipperhashgrow.svg | 14 +++++++------- datastruct/zipperhashshrink.svg | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-)
datastruct/zipperhashgrow.svg +7 -7
@@ -165,7 +165,7 @@ sodipodi:role="line" id="tspan2987" x="17.100805" - y="452.72961">g)</tspan></text> + y="452.72961">(g)</tspan></text> <g id="g3763" transform="translate(0,422)">
@@ -339,7 +339,7 @@ y="78.729584" x="17.100805" id="tspan5034" - sodipodi:role="line">b)</tspan></text> + sodipodi:role="line">(b)</tspan></text> <g id="g5036" transform="translate(0,38)"
@@ -403,7 +403,7 @@ sodipodi:role="line" id="tspan5468" x="17.100805" - y="162.72958">c)</tspan></text> + y="162.72958">(c)</tspan></text> <text sodipodi:linespacing="125%" id="text5552"
@@ -414,7 +414,7 @@ y="248.72958" x="17.100805" id="tspan5554" - sodipodi:role="line">d)</tspan></text> + sodipodi:role="line">(d)</tspan></text> <text xml:space="preserve" style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
@@ -425,7 +425,7 @@ sodipodi:role="line" id="tspan5621" x="17.100805" - y="328.72958">e)</tspan></text> + y="328.72958">(e)</tspan></text> <text sodipodi:linespacing="125%" id="text5681"
@@ -436,7 +436,7 @@ y="22.410172" x="16.510962" id="tspan5683" - sodipodi:role="line">a)</tspan></text> + sodipodi:role="line">(a)</tspan></text> <g id="g3318" transform="translate(-0.72284698,0)">
@@ -1256,7 +1256,7 @@ y="390.72958" x="17.100805" id="tspan4442" - sodipodi:role="line">f)</tspan></text> + sodipodi:role="line">(f)</tspan></text> <g id="g4444" transform="translate(0,360)"
datastruct/zipperhashshrink.svg +6 -6
@@ -109,7 +109,7 @@ sodipodi:role="line" id="tspan2987" x="17.100805" - y="30.72958">a)</tspan></text> + y="30.72958">(a)</tspan></text> <g id="g3763"> <rect
@@ -282,7 +282,7 @@ y="88.729584" x="17.100805" id="tspan5034" - sodipodi:role="line">b)</tspan></text> + sodipodi:role="line">(b)</tspan></text> <g id="g5036" transform="translate(0,58)">
@@ -504,7 +504,7 @@ sodipodi:role="line" id="tspan5468" x="17.100805" - y="172.72958">c)</tspan></text> + y="172.72958">(c)</tspan></text> <g transform="translate(0,142)" id="g5470">
@@ -697,7 +697,7 @@ y="258.72958" x="17.100805" id="tspan5554" - sodipodi:role="line">d)</tspan></text> + sodipodi:role="line">(d)</tspan></text> <g id="g5556" transform="translate(0,228)">
@@ -890,7 +890,7 @@ sodipodi:role="line" id="tspan5621" x="17.100805" - y="340.72958">e)</tspan></text> + y="340.72958">(e)</tspan></text> <g transform="translate(0,310)" id="g5623"
@@ -1074,7 +1074,7 @@ y="416.51285" x="17.100805" id="tspan5683" - sodipodi:role="line">f)</tspan></text> + sodipodi:role="line">(f)</tspan></text> <path transform="translate(106.08632,395.53399)" d="m 134.85536,18.471052 c 0,3.626297 -2.9397,6.565992 -6.56599,6.565992 -3.6263,0 -6.56599,-2.939695 -6.56599,-6.565992 0,-3.626297 2.93969,-6.565991 6.56599,-6.565991 3.62629,0 6.56599,2.939694 6.56599,6.565991 z"
Signature · 1 line
2.17.1
Quoted 13 lines · Akira Yokosawa
Hi Paul,
This patch set consists of minor tweaks of figures.
Patch 1/5 shrinks a couple of unnecessarily large figures.
Patches 2/5--4/5 take care of Figure 10.19 and its derivative, Figure E.7.
Consistently using solid traces for resizable hash tables helps readers to follow the discussion.
Patch 4/5 also adds a footnote on the upper three traces which look like two traces.
Quoted 2 lines
Patch 5/5 changes marks of "x)" to "(x)" so that they match how they are called out in the text.
Looks good, thank you! Queued and pushed.
Thanx, Paul
Quoted 25 lines
Thanks, Akira
--
Akira Yokosawa (5):
Shrink Figures 9.27 and 14.3 in 2c builds
datastruct: Break gnuplot command line per each plot trace
datastruct: Use consistent dash type in Figures 10.19 and E.7
datastruct: Expand on the dash type of traces in Figure 10.19
datastruct: Change marks in Figures 10.20 and 10.21 to "(x)".../data/hps.resize.2020.09.05a/perftestresize.eps | 10 +++++----- .../data/hps.resize.2020.09.05a/plots-resize.sh | 7 ++++++- .../hps.resize.2020.09.27a/perftestresizebig.eps | 10 +++++----- .../data/hps.resize.2020.09.27a/plots-resize.sh | 8 +++++++- advsync/rt.tex | 2 +- datastruct/datastruct.tex | 13 ++++++++----- datastruct/zipperhashgrow.svg | 14 +++++++------- datastruct/zipperhashshrink.svg | 12 ++++++------ defer/rcuusage.tex | 2 +- 9 files changed, 46 insertions(+), 32 deletions(-)base-commit:
333422f99c550d4ba5809525e7eeebf1a5ab16e8Signature · 1 line
2.17.1