You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

423 lines
20 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="false_sharing.svg"
inkscape:export-filename="false_sharing.png"
inkscape:export-xdpi="200"
inkscape:export-ydpi="200"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#cccccc"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="1"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
showguides="true"
inkscape:zoom="0.97423331"
inkscape:cx="397.23544"
inkscape:cy="342.32047"
inkscape:window-width="1920"
inkscape:window-height="981"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g5769" />
<defs
id="defs2">
<marker
style="overflow:visible"
id="marker5530"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="5.3244081"
markerHeight="6.155385"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path5528" />
</marker>
<marker
style="overflow:visible"
id="marker5426"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="5.3244081"
markerHeight="6.155385"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path5424" />
</marker>
<rect
x="291.775"
y="443.46897"
width="336.96015"
height="91.451867"
id="rect4742" />
<pattern
inkscape:collect="always"
xlink:href="#Strips1_1"
id="pattern3505"
patternTransform="matrix(12.504054,-0.11227188,0.09059665,10.111497,0.04576498,-9.5882194e-4)" />
<pattern
inkscape:collect="always"
patternUnits="userSpaceOnUse"
width="2"
height="1"
patternTransform="translate(0,0) scale(10,10)"
id="Strips1_1"
inkscape:stockid="Stripes 1:1"
inkscape:isstock="true">
<rect
style="fill:black;stroke:none"
x="0"
y="-0.5"
width="1"
height="2"
id="rect2137" />
</pattern>
<marker
style="overflow:visible"
id="TriangleStart"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="5.3244081"
markerHeight="6.155385"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path135" />
</marker>
<rect
x="166.54443"
y="330.40202"
width="69.96129"
height="47.30114"
id="rect3183" />
<rect
x="88.731727"
y="32.252737"
width="108.46139"
height="75.985973"
id="rect290" />
<rect
x="88.731727"
y="32.252737"
width="108.46139"
height="75.985973"
id="rect465" />
<rect
x="88.731727"
y="32.252737"
width="108.46139"
height="75.985973"
id="rect5736" />
<rect
x="88.731727"
y="32.252737"
width="108.46139"
height="75.985973"
id="rect5771" />
</defs>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g1149"
transform="translate(-3.6258241,-0.13229282)"
inkscape:export-filename="g1149.png"
inkscape:export-xdpi="200"
inkscape:export-ydpi="200">
<g
id="g463"
transform="translate(110.2307,1.1378017)"
style="stroke-width:0.4;stroke-dasharray:none"
inkscape:label="g463">
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stop-color:#000000"
id="ellipse457"
cx="37.825474"
cy="18.585848"
rx="13.916038"
ry="9.6198111" />
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,3.7847768,7.0334454)"
id="text461"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect465);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-dasharray:none"><tspan
x="88.732422"
y="51.662593"
id="tspan5941">thread 2
</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.259692px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#TriangleStart)"
d="M 139.2324,29.309367 V 53.115334"
id="path3473"
transform="translate(-101.22013,-1.1207547)" />
</g>
<g
id="g5734"
style="stroke-width:0.4;stroke-dasharray:none"
transform="translate(39.786794,1.1378017)">
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,-0.97772338,7.0334454)"
id="text5728"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect5736);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-dasharray:none"><tspan
x="88.732422"
y="51.662593"
id="tspan5943">thread 1</tspan></text>
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stop-color:#000000"
id="ellipse5730"
cx="33.062969"
cy="18.585848"
rx="13.916038"
ry="9.6198111" />
<path
style="fill:none;stroke:#000000;stroke-width:0.259692px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#TriangleStart)"
d="M 75.355854,29.326414 V 53.132381"
id="path5732"
transform="translate(-42.292884,-1.1207547)" />
</g>
</g>
<g
id="g455"
style="stroke-width:0.4;stroke-dasharray:none"
transform="translate(-4.245488,99.337347)">
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,-0.97772338,7.0334454)"
id="text288"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect290);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-dasharray:none"><tspan
x="88.732422"
y="51.662593"
id="tspan5945">thread 1</tspan></text>
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stop-color:#000000"
id="path234"
cx="33.062969"
cy="18.585848"
rx="13.916038"
ry="9.6198111" />
</g>
<rect
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.399685;stroke-dasharray:none;stroke-opacity:1"
id="rect1073"
width="126.07201"
height="50.247486"
x="44.064724"
y="37.171539"
rx="1.8436004e-06"
ry="6.2074051" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="50.542717"
y="67.432076"
id="text3179"><tspan
sodipodi:role="line"
id="tspan3177"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="50.542717"
y="67.432076">cache line</tspan></text>
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,0.52264163,1.1519654)"
id="text3181"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect3183);display:inline;fill:#000000;fill-opacity:1;stroke:none"><tspan
x="166.54492"
y="346.17348"
id="tspan5947">cache</tspan></text>
<g
id="g4570">
<rect
style="fill:url(#pattern3505);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.264447;stroke-opacity:1"
id="rect1151"
width="126.33954"
height="8.2408533"
x="43.864811"
y="54.054497"
rx="1.844591e-06"
ry="4.1204267" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="68.205826"
y="59.812164"
id="text4520"><tspan
sodipodi:role="line"
id="tspan4518"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="68.205826"
y="59.812164">1</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="143.59903"
y="59.812164"
id="text4524"><tspan
sodipodi:role="line"
id="tspan4522"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="143.59903"
y="59.812164">3</tspan></text>
</g>
<g
id="g4614"
transform="translate(25.725847)">
<g
id="g4588"
transform="matrix(0.49508155,0,0,0.49508155,-18.559563,71.99131)">
<rect
style="fill:url(#pattern3505);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.264447;stroke-opacity:1"
id="rect4578"
width="126.33954"
height="8.2408533"
x="43.864811"
y="54.054497"
rx="1.844591e-06"
ry="4.1204267" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="68.205826"
y="59.812164"
id="text4582"><tspan
sodipodi:role="line"
id="tspan4580"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583;fill:#ff00ff"
x="68.205826"
y="59.812164">2</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="143.59903"
y="59.812164"
id="text4586"><tspan
sodipodi:role="line"
id="tspan4584"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="143.59903"
y="59.812164">3</tspan></text>
</g>
<g
id="g4600"
transform="matrix(0.49508155,0,0,0.49508155,75.327632,71.99131)">
<rect
style="fill:url(#pattern3505);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.264447;stroke-opacity:1"
id="rect4590"
width="126.33954"
height="8.2408533"
x="43.864811"
y="54.054497"
rx="1.844591e-06"
ry="4.1204267" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="68.205826"
y="59.812164"
id="text4594"><tspan
sodipodi:role="line"
id="tspan4592"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
x="68.205826"
y="59.812164">1</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#00ffff;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="143.59903"
y="59.812164"
id="text4598"><tspan
sodipodi:role="line"
id="tspan4596"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.58611px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#00ffff;stroke-width:0.264583"
x="143.59903"
y="59.812164">4</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.53526535;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#marker5426);marker-end:url(#marker5530)"
d="M -19.435515,58.174924 H 43.864807"
id="path4616" />
<path
style="fill:none;stroke:#000000;stroke-width:0.534424px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 12.214641,58.17493 V 87.708425"
id="path4738" />
<text
xml:space="preserve"
transform="matrix(0.53442374,0,0,0.53442374,-228.00322,-150.63383)"
id="text4740"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect4742);display:inline;fill:#000000;fill-opacity:1;stroke:none"><tspan
x="291.77539"
y="459.23989"
id="tspan5949">if one thread changes its variable, the </tspan><tspan
x="291.77539"
y="480.90652"
id="tspan5951">other has to reload the entire cache line </tspan><tspan
x="291.77539"
y="502.57314"
id="tspan5953">before changing their variable</tspan></text>
</g>
</g>
<g
id="g5769"
style="stroke-width:0.4;stroke-dasharray:none"
transform="translate(152.321,99.337352)">
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,-0.97772338,7.0334454)"
id="text5765"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.3333px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect5771);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-dasharray:none"><tspan
x="88.732422"
y="51.662593"
id="tspan5955">thread 2
</tspan></text>
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stop-color:#000000"
id="ellipse5767"
cx="33.062969"
cy="18.585848"
rx="13.916038"
ry="9.6198111" />
</g>
</g>
</svg>