Add a diagram comparing loop and nbd.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 17 Nov 2018 12:12:11 +0000 (12:12 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 17 Nov 2018 12:15:17 +0000 (12:15 +0000)
2019-fosdem/2150-loop-vs-nbd.html [new file with mode: 0644]
2019-fosdem/2150-loop-vs-nbd.svg [new file with mode: 0644]

diff --git a/2019-fosdem/2150-loop-vs-nbd.html b/2019-fosdem/2150-loop-vs-nbd.html
new file mode 100644 (file)
index 0000000..7ff66d1
--- /dev/null
@@ -0,0 +1,7 @@
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<h1>How does nbd compare to loop?</h1>
+
+<img src="2150-loop-vs-nbd.svg" width="800" />
diff --git a/2019-fosdem/2150-loop-vs-nbd.svg b/2019-fosdem/2150-loop-vs-nbd.svg
new file mode 100644 (file)
index 0000000..0e350e3
--- /dev/null
@@ -0,0 +1,257 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="177.53894mm"
+   height="126.31223mm"
+   viewBox="0 0 177.53894 126.31223"
+   version="1.1"
+   id="svg8"
+   inkscape:version="0.92.3 (2405546, 2018-03-11)"
+   sodipodi:docname="1100-loop-vs-nbd.svg">
+  <defs
+     id="defs2">
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker1297"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         id="path1295"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:isstock="true"
+       style="overflow:visible"
+       id="marker1177"
+       refX="0"
+       refY="0"
+       orient="auto"
+       inkscape:stockid="Arrow1Lend"
+       inkscape:collect="always">
+      <path
+         transform="matrix(-0.8,0,0,-0.8,-10,0)"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         id="path1175"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lend"
+       style="overflow:visible"
+       inkscape:isstock="true"
+       inkscape:collect="always">
+      <path
+         id="path826"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.98994949"
+     inkscape:cx="368.93606"
+     inkscape:cy="227.94331"
+     inkscape:document-units="mm"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     fit-margin-top="10"
+     fit-margin-left="10"
+     fit-margin-right="10"
+     fit-margin-bottom="10"
+     inkscape:window-width="1600"
+     inkscape:window-height="816"
+     inkscape:window-x="0"
+     inkscape:window-y="41"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid1105"
+       originx="-2.0443983"
+       originy="-148.24082" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-2.0443983,-22.446948)">
+    <rect
+       style="fill:#ff2f2a;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none"
+       id="rect815"
+       width="67.886459"
+       height="75.904549"
+       x="12.294398"
+       y="62.604626" />
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none"
+       id="rect817"
+       width="56.92841"
+       height="21.381561"
+       x="17.639788"
+       y="70.622704" />
+    <rect
+       y="107.66439"
+       x="17.639788"
+       height="21.381561"
+       width="56.92841"
+       id="rect819"
+       style="fill:#ffffff;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:0.26499999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow1Lend)"
+       d="M 44.901281,70.355441 44.979167,43"
+       id="path821"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       x="16.929972"
+       y="40.487801"
+       id="text1145"><tspan
+         sodipodi:role="line"
+         id="tspan1143"
+         x="16.929972"
+         y="40.487801"
+         style="stroke-width:0.26458332">/dev/loop0</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       x="26.979441"
+       y="83.876778"
+       id="text1149"><tspan
+         sodipodi:role="line"
+         id="tspan1147"
+         x="26.979441"
+         y="83.876778"
+         style="stroke-width:0.26458332">loop.ko</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       x="37.028912"
+       y="122.65569"
+       id="text1153"><tspan
+         sodipodi:role="line"
+         id="tspan1151"
+         x="37.028912"
+         y="122.65569"
+         style="stroke-width:0.26458332">file</tspan></text>
+    <rect
+       y="62.604626"
+       x="102.78199"
+       height="38.603706"
+       width="66.551346"
+       id="rect1155"
+       style="fill:#ff2f2a;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none" />
+    <rect
+       y="70.622704"
+       x="108.12737"
+       height="21.381561"
+       width="56.92841"
+       id="rect1157"
+       style="fill:#ffffff;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none" />
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:#333333;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none"
+       id="rect1159"
+       width="56.92841"
+       height="21.381561"
+       x="108.12737"
+       y="114.01437" />
+    <path
+       sodipodi:nodetypes="cc"
+       inkscape:connector-curvature="0"
+       id="path1161"
+       d="M 135.38904,70.355441 135.46692,43"
+       style="fill:none;stroke:#000000;stroke-width:0.26499999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker1177)" />
+    <text
+       id="text1165"
+       y="40.487801"
+       x="107.41756"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       xml:space="preserve"><tspan
+         style="stroke-width:0.26458332"
+         y="40.487801"
+         x="107.41756"
+         id="tspan1163"
+         sodipodi:role="line">/dev/nbd0</tspan></text>
+    <text
+       id="text1169"
+       y="83.876778"
+       x="116.93785"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       xml:space="preserve"><tspan
+         style="stroke-width:0.26458332"
+         y="83.876778"
+         x="116.93785"
+         id="tspan1167"
+         sodipodi:role="line">nbd.ko</tspan></text>
+    <text
+       id="text1173"
+       y="129.00568"
+       x="119.57896"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       xml:space="preserve"><tspan
+         style="stroke-width:0.26458332"
+         y="129.00568"
+         x="119.57896"
+         id="tspan1171"
+         sodipodi:role="line">nbdkit</tspan></text>
+    <path
+       style="fill:none;stroke:#000000;stroke-width:0.26499999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker1297)"
+       d="M 134.9375,114.4375 V 93.270833"
+       id="path1293"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:0.5;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+       x="137.58333"
+       y="106.5"
+       id="text2183"><tspan
+         sodipodi:role="line"
+         id="tspan2181"
+         x="137.58333"
+         y="106.5"
+         style="font-size:3.52777767px;line-height:0.5;stroke-width:0.26458332">tcp/ip or</tspan><tspan
+         sodipodi:role="line"
+         x="137.58333"
+         y="111.86057"
+         style="font-size:3.52777767px;line-height:0.5;stroke-width:0.26458332"
+         id="tspan2185">unix socket</tspan></text>
+  </g>
+</svg>