Files
document-haness/docs/virtualization/final/assets/diagrams/vms-sharing-one-nvme/vms-sharing-one-nvme.svg
T

95 lines
8.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="895" height="642" viewBox="0 0 895 642" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">가상 머신 둘과 호스트 프로세스가 하나의 NVMe 로 모인다</title>
<desc id="diagram-description">위쪽에 네 출발점이 나란히 있다. VM1 QEMU 는 WRITE X 와 READ Y, WRITE Z 를 내고 VM2 QEMU 는 READ A 와 WRITE B 를 내며, 그 옆에 호스트의 Nginx 와 다른 프로세스가 있다. 네 갈래가 모두 가운데의 Host Block Layer 하나로 모인다. Host Block Layer 는 그 I/O 가 가상 머신 안에서 시작했는지 호스트 프로세스에서 시작했는지를 본질적으로 구분해 처리하는 계층이 아니라 들어온 것을 모두 Host block request 로 다루고, 그 요청들을 queue 에서 관리해 맨 아래 NVMe 로 dispatch 한다. 여기서 생기는 경쟁이 Storage Contention 이고 CPU 실행 시간을 두고 벌어지는 CPU Contention 과는 다투는 자원이 다르다는 것은 본문 문단이 맡는다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;vms-sharing-one-nvme&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/virtualization/final/document.md&quot;,&quot;document_sha256&quot;:&quot;8c4ecc64c8cea9a4450ed7131fdd9cb2048dc092b66cd969f6346ed77887c210&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;159. 여러 VM이 하나의 NVMe를 공유하면&quot;,&quot;line&quot;:7039}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" />
</marker>
<style>
:root { color-scheme: light; }
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
.canvas { fill: #ffffff; }
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
.group-label-bg { fill: #ffffff; }
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
.edge.style-dotted { stroke-dasharray: 2 5; }
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.edge.emphasis-muted { stroke: #9ca3af; }
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
.edge-label-bg { fill: #ffffff; }
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
.node-shape.assumption { stroke-dasharray: 4 4; }
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
.controller-led { fill: #4b5563; }
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
.node-detail { font-size: 11px; fill: #374151; }
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="895" height="642" />
<polyline class="edge kind-data style-solid emphasis-normal" points="220.0,112.5 300.0,112.5 300.0,301.5 380.0,301.5" data-evidence="7042-7044" />
<polyline class="edge kind-data style-solid emphasis-normal" points="220.0,281.0 300.0,281.0 300.0,319.5 380.0,319.5" data-evidence="7044-7044" />
<polyline class="edge kind-data style-solid emphasis-normal" points="220.0,429.0 300.0,429.0 300.0,337.5 380.0,337.5" data-evidence="7044-7046" />
<polyline class="edge kind-data style-solid emphasis-normal" points="220.0,565.0 300.0,565.0 300.0,355.5 380.0,355.5" data-evidence="7044-7048" />
<polyline class="edge kind-data style-solid emphasis-normal" points="540.0,328.5 620.0,328.5 620.0,328.5 700.0,328.5" data-evidence="7044-7044,7067-7067" />
<rect class="edge-label-bg" x="584.2" y="286.5" width="71.6" height="22" rx="3" />
<text class="edge-label" x="620.0" y="301.5">dispatch</text>
<g id="node-vm1-qemu">
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="7042-7042,7054-7057" x="70.0" y="60.0" width="150.0" height="105.0" rx="7" />
<text class="node-label" x="145.0" y="87.0">VM1 QEMU</text>
<line class="node-detail-divider" x1="84.0" y1="108.0" x2="206.0" y2="108.0" />
<text class="node-detail" x="86.0" y="125.0">WRITE X</text>
<text class="node-detail" x="86.0" y="141.0">READ Y</text>
<text class="node-detail" x="86.0" y="157.0">WRITE Z</text>
</g>
<g id="node-vm2-qemu">
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="7044-7044,7059-7061" x="70.0" y="237.0" width="150.0" height="88.0" rx="7" />
<text class="node-label" x="145.0" y="264.0">VM2 QEMU</text>
<line class="node-detail-divider" x1="84.0" y1="285.0" x2="206.0" y2="285.0" />
<text class="node-detail" x="86.0" y="302.0">READ A</text>
<text class="node-detail" x="86.0" y="318.0">WRITE B</text>
</g>
<g id="node-nginx">
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="7046-7046" x="70.0" y="397.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="145.0" y="427.0">Nginx</text>
</g>
<g id="node-host-other">
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="7048-7051" x="70.0" y="533.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="145.0" y="563.0">Host 기타</text>
</g>
<g id="node-host-block-layer">
<rect class="node-shape kind-service emphasis-primary role-queue" data-evidence="7044-7044,7030-7035,7067-7067,7071-7073" x="380.0" y="284.5" width="160.0" height="88.0" rx="7" />
<text class="node-label" x="460.0" y="311.5">Host Block Layer</text>
<line class="node-detail-divider" x1="394.0" y1="332.5" x2="526.0" y2="332.5" />
<text class="node-detail" x="396.0" y="349.5">Host block request</text>
<text class="node-detail" x="396.0" y="365.5">blk-mq</text>
</g>
<g id="node-nvme">
<rect class="node-shape kind-device emphasis-normal role-sink" data-evidence="7044-7044,7032-7032,7079-7082" x="700.0" y="307.2" width="150.0" height="42.7" /><ellipse class="node-shape kind-device emphasis-normal role-sink" cx="775.0" cy="307.2" rx="75.0" ry="10.7" /><path class="storage-bottom" d="M 700.0 349.8 A 75.0 10.7 0 0 0 850.0 349.8" />
<text class="node-label" x="775.0" y="326.5">NVMe</text>
</g>
</svg>