245 lines
21 KiB
XML
245 lines
21 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1220" viewBox="0 0 1600 1220" role="img" aria-labelledby="title desc">
|
||
|
|
<title id="title">The obipipeline parallel scheduler</title>
|
||
|
|
<desc id="desc">Each pipeline stage has its own queue. The scheduler always takes an item from the non-empty queue of highest rank and runs it on a shared pool of workers. The result goes into the next queue, or to the output after the last stage.</desc>
|
||
|
|
<style>
|
||
|
|
text{font-family:Helvetica,Arial,sans-serif;fill:#182338}
|
||
|
|
.title{font-size:34px;font-weight:700}
|
||
|
|
.sub{font-size:17px;fill:#55637a}
|
||
|
|
.section{font-size:15px;font-weight:700;letter-spacing:1.4px;fill:#526078}
|
||
|
|
.head{font-size:19px;font-weight:700}
|
||
|
|
.body{font-size:15px;fill:#35445a}
|
||
|
|
.small{font-size:13px;fill:#55637a}
|
||
|
|
.mono{font-family:Menlo,Consolas,monospace;font-size:13px;fill:#26364f}
|
||
|
|
.chip{font-size:13px;font-weight:700}
|
||
|
|
.badge{font-size:14px;font-weight:700;fill:#fff}
|
||
|
|
.panel{fill:#fff;stroke:#d7deea;stroke-width:1.5}
|
||
|
|
.sched{fill:#eeeaff;stroke:#8d7bdc;stroke-width:2.2}
|
||
|
|
.row{fill:#fff;stroke:#c3b9ee;stroke-width:1.2}
|
||
|
|
.pool{fill:#f4f7fc;stroke:#a8b8d4;stroke-width:1.6}
|
||
|
|
.worker{fill:#fff;stroke:#b9c6dc;stroke-width:1.3}
|
||
|
|
.chan{fill:#fff6e4;stroke:#dcb361;stroke-width:1.5}
|
||
|
|
.io{fill:#eef1f6;stroke:#9aa8bd;stroke-width:1.6}
|
||
|
|
.off{fill:none;stroke:#aab4c4;stroke-width:2;stroke-dasharray:5 5}
|
||
|
|
.line{fill:none;stroke:#52647e;stroke-width:2.4}
|
||
|
|
.err{fill:none;stroke:#c0473a;stroke-width:2;stroke-dasharray:6 5}
|
||
|
|
</style>
|
||
|
|
<defs>
|
||
|
|
<marker id="p" markerWidth="15" markerHeight="14" refX="12" refY="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0L15 7L0 14z" fill="#b9501c"/></marker>
|
||
|
|
<linearGradient id="ramp" x1="400" x2="1310" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#e6e2fb"/><stop offset="1" stop-color="#4b3f9e"/></linearGradient>
|
||
|
|
<marker id="a" markerWidth="9" markerHeight="8" refX="8" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0L9 4L0 8z" fill="#52647e"/></marker>
|
||
|
|
<marker id="e" markerWidth="9" markerHeight="8" refX="8" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0L9 4L0 8z" fill="#c0473a"/></marker>
|
||
|
|
</defs>
|
||
|
|
<rect width="1600" height="1220" fill="#f7f9fc"/>
|
||
|
|
<text x="50" y="58" class="title" text-anchor="start" >The obipipeline parallel scheduler</text>
|
||
|
|
<text x="50" y="88" class="sub" text-anchor="start" >Stages are not bound to threads: each has its queue, and a shared pool of workers is fed from the most advanced non-empty one.</text>
|
||
|
|
<rect x="40" y="112" width="1520" height="165" rx="16" class="panel" />
|
||
|
|
<text x="66" y="144" class="section" text-anchor="start" >WHAT YOU DECLARE: A LINEAR PIPELINE</text>
|
||
|
|
<rect x="110" y="170" width="190" height="78" rx="12" class="io" />
|
||
|
|
<text x="205.0" y="203" class="head" text-anchor="middle" >Source</text>
|
||
|
|
<text x="205.0" y="228" class="small" text-anchor="middle" >items, pulled in sequence</text>
|
||
|
|
<rect x="400" y="170" width="230" height="78" rx="12" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.8"/>
|
||
|
|
<text x="515.0" y="203" class="head" text-anchor="middle" >Stage S0</text>
|
||
|
|
<text x="515.0" y="228" class="small" text-anchor="middle" >transform, 1 → 1</text>
|
||
|
|
<rect x="730" y="170" width="230" height="78" rx="12" fill="#fde4d6" stroke="#b9501c" stroke-width="1.8"/>
|
||
|
|
<text x="845.0" y="203" class="head" text-anchor="middle" >Stage S1</text>
|
||
|
|
<text x="845.0" y="228" class="small" text-anchor="middle" >flat transform, 1 → N</text>
|
||
|
|
<rect x="1060" y="170" width="230" height="78" rx="12" fill="#d6f1e6" stroke="#137a58" stroke-width="1.8"/>
|
||
|
|
<text x="1175.0" y="203" class="head" text-anchor="middle" >Stage S2</text>
|
||
|
|
<text x="1175.0" y="228" class="small" text-anchor="middle" >transform, 1 → 1</text>
|
||
|
|
<rect x="1390" y="170" width="120" height="78" rx="12" class="io" />
|
||
|
|
<text x="1450.0" y="203" class="head" text-anchor="middle" >Sink</text>
|
||
|
|
<text x="1450.0" y="228" class="small" text-anchor="middle" >final items</text>
|
||
|
|
<path d="M300 209H398" class="line" marker-end="url(#a)"/>
|
||
|
|
<path d="M630 209H728" class="line" marker-end="url(#a)"/>
|
||
|
|
<path d="M960 209H1058" class="line" marker-end="url(#a)"/>
|
||
|
|
<path d="M1290 209H1388" class="line" marker-end="url(#a)"/>
|
||
|
|
<rect x="40" y="297" width="1520" height="600" rx="16" class="panel" />
|
||
|
|
<text x="66" y="329" class="section" text-anchor="start" >HOW TASKS ARE SCHEDULED: ONE QUEUE PER STAGE, HIGHEST RANK SERVED FIRST</text>
|
||
|
|
<text x="420" y="366" class="head" text-anchor="middle" >Queue 0</text>
|
||
|
|
<text x="420" y="387" class="small" text-anchor="middle" style="fill:#55637a;font-weight:700">lower rank: waits</text>
|
||
|
|
<rect x="295" y="398" width="250" height="60" rx="10" fill="#fff" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<rect x="493" y="413" width="42" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="514.0" y="433.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="445" y="413" width="42" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="466.0" y="433.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="397" y="413" width="42" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="418.0" y="433.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="349" y="413" width="42" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="370.0" y="433.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="301" y="413" width="42" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="322.0" y="433.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<text x="740" y="366" class="head" text-anchor="middle" >Queue 1</text>
|
||
|
|
<text x="740" y="387" class="small" text-anchor="middle" style="fill:#b9501c;font-weight:700">highest non-empty rank: picked</text>
|
||
|
|
<rect x="615" y="398" width="250" height="60" rx="10" fill="#fff" stroke="#b9501c" stroke-width="3.4"/>
|
||
|
|
<rect x="813" y="413" width="42" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="834.0" y="433.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="765" y="413" width="42" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="786.0" y="433.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="717" y="413" width="42" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="738.0" y="433.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<text x="1060" y="366" class="head" text-anchor="middle" >Queue 2</text>
|
||
|
|
<text x="1060" y="387" class="small" text-anchor="middle" style="fill:#55637a;font-weight:700">empty: skipped</text>
|
||
|
|
<rect x="935" y="398" width="250" height="60" rx="10" fill="#fff" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="1060" y="433" class="small" text-anchor="middle" >(nothing waiting)</text>
|
||
|
|
<rect x="70" y="392" width="170" height="72" rx="12" class="io" />
|
||
|
|
<text x="155" y="422" class="head" text-anchor="middle" >Source</text>
|
||
|
|
<text x="155" y="447" class="small" text-anchor="middle" >new items</text>
|
||
|
|
<path d="M240 428H293" class="line" marker-end="url(#a)"/>
|
||
|
|
<rect x="1340" y="392" width="170" height="72" rx="12" class="io" />
|
||
|
|
<text x="1425" y="422" class="head" text-anchor="middle" >Output</text>
|
||
|
|
<text x="1425" y="447" class="small" text-anchor="middle" >results</text>
|
||
|
|
<path d="M370 458V566" class="off"/>
|
||
|
|
<path d="M1010 458V566" class="off"/>
|
||
|
|
<path d="M740 458V564" fill="none" stroke="#b9501c" stroke-width="4.5" marker-end="url(#p)"/>
|
||
|
|
<circle cx="740" cy="513" r="13" fill="#4b3f9e"/>
|
||
|
|
<text x="740" y="518" class="badge" text-anchor="middle" >1</text>
|
||
|
|
<text x="762" y="505" class="body" text-anchor="start" >take one item</text>
|
||
|
|
<rect x="295" y="568" width="895" height="70" rx="14" class="sched" />
|
||
|
|
<text x="742" y="597" class="head" text-anchor="middle" >Scheduler: always serve the non-empty queue of highest rank</text>
|
||
|
|
<text x="742" y="622" class="body" text-anchor="middle" >the closer to the output, the higher the rank</text>
|
||
|
|
<path d="M740 638V698" class="line" marker-end="url(#a)"/>
|
||
|
|
<circle cx="740" cy="668" r="13" fill="#4b3f9e"/>
|
||
|
|
<text x="740" y="673" class="badge" text-anchor="middle" >2</text>
|
||
|
|
<text x="762" y="673" class="body" text-anchor="start" >run it as an S1 task on a free worker</text>
|
||
|
|
<rect x="295" y="700" width="895" height="160" rx="14" class="pool" />
|
||
|
|
<text x="742" y="730" class="small" text-anchor="middle" >One shared pool of workers: any of them can run any stage</text>
|
||
|
|
<rect x="315" y="752" width="204" height="80" rx="9" class="worker" />
|
||
|
|
<text x="417" y="780" class="body" text-anchor="middle" style="font-weight:700">Worker 1</text>
|
||
|
|
<rect x="357" y="791" width="44" height="28" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="379.0" y="810.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<text x="411" y="810" class="small" text-anchor="start" >busy</text>
|
||
|
|
<rect x="532" y="752" width="204" height="80" rx="9" class="worker" />
|
||
|
|
<text x="634" y="780" class="body" text-anchor="middle" style="font-weight:700">Worker 2</text>
|
||
|
|
<rect x="574" y="791" width="44" height="28" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="596.0" y="810.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<text x="628" y="810" class="small" text-anchor="start" >busy</text>
|
||
|
|
<rect x="749" y="752" width="204" height="80" rx="9" fill="#fff" stroke="#b9501c" stroke-width="3"/>
|
||
|
|
<text x="851" y="780" class="body" text-anchor="middle" style="font-weight:700">Worker 3</text>
|
||
|
|
<rect x="791" y="791" width="44" height="28" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="813.0" y="810.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<text x="845" y="810" class="small" text-anchor="start" >new task</text>
|
||
|
|
<rect x="966" y="752" width="204" height="80" rx="9" class="worker" />
|
||
|
|
<text x="1068" y="780" class="body" text-anchor="middle" style="font-weight:700">Worker 4</text>
|
||
|
|
<rect x="1008" y="791" width="44" height="28" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="1030.0" y="810.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<text x="1062" y="810" class="small" text-anchor="start" >busy</text>
|
||
|
|
<path d="M1190 780H1245V522H1120V460" class="line" marker-end="url(#a)"/>
|
||
|
|
<path d="M1245 522H1425V466" class="line" marker-end="url(#a)"/>
|
||
|
|
<circle cx="1245" cy="660" r="13" fill="#4b3f9e"/>
|
||
|
|
<text x="1245" y="665" class="badge" text-anchor="middle" >3</text>
|
||
|
|
<text x="1270" y="655" class="body" text-anchor="start" >the result of a stage n task</text>
|
||
|
|
<text x="1270" y="677" class="body" text-anchor="start" >goes into queue n+1,</text>
|
||
|
|
<text x="1270" y="699" class="body" text-anchor="start" >or to the output after</text>
|
||
|
|
<text x="1270" y="721" class="body" text-anchor="start" >the last stage</text>
|
||
|
|
<text x="1270" y="757" class="small" text-anchor="start" >(a 1 → N stage such as S1</text>
|
||
|
|
<text x="1270" y="776" class="small" text-anchor="start" >feeds it several items, one by one)</text>
|
||
|
|
<rect x="40" y="917" width="960" height="268" rx="16" class="panel" />
|
||
|
|
<text x="66" y="949" class="section" text-anchor="start" >ONE POOL, EVERY STAGE AT ONCE (ILLUSTRATIVE SCHEDULE)</text>
|
||
|
|
<text x="130" y="989" class="body" text-anchor="end" >Worker 1</text>
|
||
|
|
<rect x="150" y="968" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="211.0" y="988.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="278" y="968" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="339.0" y="988.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="406" y="968" width="186" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="499.0" y="988.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="598" y="968" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="627.0" y="988.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="662" y="968" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="691.0" y="988.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="726" y="968" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="787.0" y="988.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="854" y="968" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="883.0" y="988.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<text x="130" y="1029" class="body" text-anchor="end" >Worker 2</text>
|
||
|
|
<rect x="150" y="1008" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="211.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="278" y="1008" width="186" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="371.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="470" y="1008" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="499.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="534" y="1008" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="595.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="662" y="1008" width="186" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="755.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="854" y="1008" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="883.0" y="1028.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<text x="130" y="1069" class="body" text-anchor="end" >Worker 3</text>
|
||
|
|
<rect x="150" y="1048" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="211.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="278" y="1048" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="307.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="342" y="1048" width="186" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="435.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="534" y="1048" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="563.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="598" y="1048" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="627.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="662" y="1048" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="723.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="790" y="1048" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="819.0" y="1068.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<text x="130" y="1109" class="body" text-anchor="end" >Worker 4</text>
|
||
|
|
<rect x="150" y="1088" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="211.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="278" y="1088" width="122" height="30" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="339.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#2a64b8">S0</text>
|
||
|
|
<rect x="406" y="1088" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="435.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="470" y="1088" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="499.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="534" y="1088" width="186" height="30" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="627.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#b9501c">S1</text>
|
||
|
|
<rect x="726" y="1088" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="755.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<rect x="790" y="1088" width="58" height="30" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="819.0" y="1108.0" class="chip" text-anchor="middle" style="fill:#137a58">S2</text>
|
||
|
|
<path d="M150 1138H960" class="line" marker-end="url(#a)"/>
|
||
|
|
<text x="960" y="1158" class="small" text-anchor="end" >time</text>
|
||
|
|
<text x="150" y="1168" class="small" text-anchor="start" >Items overtake each other: output order is not guaranteed.</text>
|
||
|
|
<rect x="1020" y="917" width="540" height="268" rx="16" class="panel" />
|
||
|
|
<text x="1046" y="949" class="section" text-anchor="start" >WHY DOWNSTREAM FIRST?</text>
|
||
|
|
<text x="1046" y="982" class="body" text-anchor="start" style="font-weight:700;fill:#8a5a12">If new items came first</text>
|
||
|
|
<text x="1046" y="1013" class="small" text-anchor="start" >in progress</text>
|
||
|
|
<rect x="1130" y="995" width="18" height="26" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="1139.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#2a64b8"> </text>
|
||
|
|
<rect x="1152" y="995" width="18" height="26" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="1161.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#2a64b8"> </text>
|
||
|
|
<rect x="1174" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1183.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1196" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1205.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1218" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1227.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1240" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1249.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1262" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1271.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1284" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1293.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1306" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1315.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1328" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1337.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1350" y="995" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1359.0" y="1013.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<text x="1420" y="1013" class="small" text-anchor="end" >results</text>
|
||
|
|
<text x="1046" y="1042" class="small" text-anchor="start" >work piles up inside the pipeline, nothing comes out yet</text>
|
||
|
|
<text x="1046" y="1070" class="body" text-anchor="start" style="font-weight:700;fill:#137a58">Downstream first (what obipipeline does)</text>
|
||
|
|
<text x="1046" y="1101" class="small" text-anchor="start" >in progress</text>
|
||
|
|
<rect x="1130" y="1083" width="18" height="26" rx="6" fill="#dbe9fb" stroke="#2a64b8" stroke-width="1.6"/>
|
||
|
|
<text x="1139.0" y="1101.0" class="chip" text-anchor="middle" style="fill:#2a64b8"> </text>
|
||
|
|
<rect x="1152" y="1083" width="18" height="26" rx="6" fill="#fde4d6" stroke="#b9501c" stroke-width="1.6"/>
|
||
|
|
<text x="1161.0" y="1101.0" class="chip" text-anchor="middle" style="fill:#b9501c"> </text>
|
||
|
|
<rect x="1174" y="1083" width="18" height="26" rx="6" fill="#d6f1e6" stroke="#137a58" stroke-width="1.6"/>
|
||
|
|
<text x="1183.0" y="1101.0" class="chip" text-anchor="middle" style="fill:#137a58"> </text>
|
||
|
|
<text x="1420" y="1101" class="small" text-anchor="end" >results</text>
|
||
|
|
<rect x="1430" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<rect x="1448" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<rect x="1466" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<rect x="1484" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<rect x="1502" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<rect x="1520" y="1087" width="14" height="18" rx="3" fill="#52647e"/>
|
||
|
|
<text x="1046" y="1130" class="small" text-anchor="start" >results come out early and the pipeline stays unclogged</text>
|
||
|
|
<text x="1046" y="1166" class="body" text-anchor="start" >Buffers have a fixed size: when full, upstream waits.</text>
|
||
|
|
</svg>
|