114 lines
9.1 KiB
XML
114 lines
9.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="642" viewBox="0 0 680 642" role="img" aria-labelledby="diagram-title diagram-description">
|
|
<title id="diagram-title">게스트 두 대는 호스트에서 qemu 프로세스 두 개다</title>
|
|
<desc id="diagram-description">위에서 아래로 읽는다. 호스트 test-server 경계 안에 libvirtd 가 있고 그 아래에 qemu-system-x86_64 프로세스가 게스트 수만큼 있다. 경계 밖 아래쪽에 게스트 kc-lab-1 과 kc-lab-2 가 각각 따로 있고, 게스트가 보는 디스크와 인터페이스는 자기를 담은 프로세스가 virtio 로 내준다. 프로세스에 적힌 RSS 와 게스트에 적힌 available 은 같은 메모리를 다른 껍질에서 읽은 값이다. machine.slice 와 virbr0 는 이 그림에 넣지 않았고 본문이 맡는다.</desc>
|
|
<metadata>{"techviz":{"spec_version":"1.1","id":"guest-as-host-process","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"0ae5674723f25dc85d5069529890f07be1a11b768b56901103fa3ea6ac3dcf55","anchor":{"kind":"heading","value":"0층. 가상화 — 「바닥」 아래에 있는 것","line":935}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":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="680" height="642" />
|
|
<rect class="group-box" x="75.0" y="35.0" width="440.0" height="361.0" rx="8" />
|
|
<rect class="group-label-bg" x="89.0" y="25.0" width="127.0" height="22" />
|
|
<text class="group-label" x="99.0" y="40.0">호스트 test-server</text>
|
|
<rect class="group-box" x="40.0" y="420.0" width="255.0" height="177.0" rx="8" />
|
|
<rect class="group-label-bg" x="54.0" y="410.0" width="106.0" height="22" />
|
|
<text class="group-label" x="64.0" y="425.0">게스트 kc-lab-1</text>
|
|
<rect class="group-box" x="295.0" y="420.0" width="255.0" height="177.0" rx="8" />
|
|
<rect class="group-label-bg" x="309.0" y="410.0" width="106.0" height="22" />
|
|
<text class="group-label" x="319.0" y="425.0">게스트 kc-lab-2</text>
|
|
<polyline class="edge kind-control style-solid emphasis-normal" points="286.0,152.0 286.0,200.0 185.0,200.0 185.0,248.0" data-evidence="946-948,956-956" />
|
|
<rect class="edge-label-bg" x="203.1" y="158.0" width="64.9" height="22" rx="3" />
|
|
<text class="edge-label" x="235.5" y="173.0">프로세스 생성</text>
|
|
<polyline class="edge kind-control style-solid emphasis-normal" points="304.0,152.0 304.0,204.2 405.0,204.2 405.0,256.5" data-evidence="946-948,956-956" />
|
|
<rect class="edge-label-bg" x="322.1" y="162.2" width="64.9" height="22" rx="3" />
|
|
<text class="edge-label" x="354.5" y="177.2">프로세스 생성</text>
|
|
<polyline class="edge kind-data style-solid emphasis-normal" points="185.0,370.0 185.0,418.0 167.5,418.0 167.5,466.0" data-evidence="987-990,994-998" />
|
|
<rect class="edge-label-bg" x="90.2" y="376.0" width="172.1" height="22" rx="3" />
|
|
<text class="edge-label" x="176.2" y="391.0">virtio 디스크 · virtio-net</text>
|
|
<polyline class="edge kind-data style-solid emphasis-normal" points="405.0,361.5 405.0,413.8 422.5,413.8 422.5,466.0" data-evidence="987-990,994-998" />
|
|
<rect class="edge-label-bg" x="327.7" y="371.8" width="172.1" height="22" rx="3" />
|
|
<text class="edge-label" x="413.8" y="386.8">virtio 디스크 · virtio-net</text>
|
|
<g id="node-libvirtd">
|
|
<rect class="node-shape kind-service emphasis-normal role-source" data-evidence="946-948,956-956" x="220.0" y="81.0" width="150.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="295.0" y="108.0">libvirtd</text>
|
|
<line class="node-detail-divider" x1="234.0" y1="129.0" x2="356.0" y2="129.0" />
|
|
<text class="node-detail" x="236.0" y="146.0">qemu:///system</text>
|
|
</g>
|
|
<g id="node-qemu-kc-lab-1">
|
|
<rect class="node-shape kind-service emphasis-primary role-service" data-evidence="946-948,987-987,1032-1032" x="105.0" y="248.0" width="160.0" height="122.0" rx="7" />
|
|
<text class="node-label" x="185.0" y="275.0">qemu-system-x86_64</text>
|
|
<line class="node-detail-divider" x1="119.0" y1="296.0" x2="251.0" y2="296.0" />
|
|
<text class="node-detail" x="121.0" y="313.0">kc-lab-1</text>
|
|
<text class="node-detail" x="121.0" y="329.0">vCPU 2</text>
|
|
<text class="node-detail" x="121.0" y="345.0">할당 3584MB</text>
|
|
<text class="node-detail" x="121.0" y="361.0">RSS 3765MB</text>
|
|
</g>
|
|
<g id="node-qemu-kc-lab-2">
|
|
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="946-948,967-976,1033-1033" x="325.0" y="256.5" width="160.0" height="105.0" rx="7" />
|
|
<text class="node-label" x="405.0" y="283.5">qemu-system-x86_64</text>
|
|
<line class="node-detail-divider" x1="339.0" y1="304.5" x2="471.0" y2="304.5" />
|
|
<text class="node-detail" x="341.0" y="321.5">kc-lab-2</text>
|
|
<text class="node-detail" x="341.0" y="337.5">할당 2560MB</text>
|
|
<text class="node-detail" x="341.0" y="353.5">RSS 2633MB</text>
|
|
</g>
|
|
<g id="node-guest-kernel-1">
|
|
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="994-998,1039-1039" x="70.0" y="466.0" width="195.0" height="105.0" rx="7" />
|
|
<text class="node-label" x="167.5" y="493.0">Debian 게스트 커널</text>
|
|
<line class="node-detail-divider" x1="84.0" y1="514.0" x2="251.0" y2="514.0" />
|
|
<text class="node-detail" x="86.0" y="531.0">enp1s0 · 192.168.122.11</text>
|
|
<text class="node-detail" x="86.0" y="547.0">총 3423MB</text>
|
|
<text class="node-detail" x="86.0" y="563.0">available 1959MB</text>
|
|
</g>
|
|
<g id="node-guest-kernel-2">
|
|
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="994-998,1040-1040" x="325.0" y="466.0" width="195.0" height="105.0" rx="7" />
|
|
<text class="node-label" x="422.5" y="493.0">Debian 게스트 커널</text>
|
|
<line class="node-detail-divider" x1="339.0" y1="514.0" x2="506.0" y2="514.0" />
|
|
<text class="node-detail" x="341.0" y="531.0">enp1s0 · 192.168.122.12</text>
|
|
<text class="node-detail" x="341.0" y="547.0">총 2480MB</text>
|
|
<text class="node-detail" x="341.0" y="563.0">available 1899MB</text>
|
|
</g>
|
|
</svg>
|