kv-memory-hierarchy.d2 2.49 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
direction: right

vars: {
  d2-config: {
    theme-overrides: {
      N1: "#e0e0e0"
      N2: "#a0a0a0"
      N3: "#707070"
      N4: "#404040"
      N5: "#5d5d5d"
      N6: "#151515"
      N7: "#0a0a0a"

      B1: "#0a0a0a"
      B2: "#111111"
      B3: "#181818"
      B4: "#222222"
      B5: "#5d5d5d"
      B6: "#404040"

      AA2: "#76b900"
      AA4: "#3d7ab5"
      AA5: "#c4a035"

      AB4: "#7a3050"
      AB5: "#2a6b55"
    }
  }
}

gpu: "GPU (HBM)" {
  style: {
    fill: "#2a4a10"
    stroke: "#76b900"
    stroke-width: 2
    font-color: "#e0e0e0"
    font-size: 24
    bold: true
    border-radius: 0
  }
  latency: "~ns" {
    shape: text
    style: {
      font-size: 18
      font-color: "#76b900"
    }
  }
  cap: "Fastest, smallest" {
    shape: text
    style: {
      font-size: 14
      font-color: "#8a8a8a"
      italic: true
    }
  }
}

cpu: "CPU (pinned DRAM)" {
  style: {
    fill: "#0f1e30"
    stroke: "#3d7ab5"
    stroke-width: 2
    font-color: "#e0e0e0"
    font-size: 24
    bold: true
    border-radius: 0
  }
  latency: "~us" {
    shape: text
    style: {
      font-size: 18
      font-color: "#3d7ab5"
    }
  }
  cap: "10-100x GPU capacity" {
    shape: text
    style: {
      font-size: 14
      font-color: "#8a8a8a"
      italic: true
    }
  }
}

nvme: "Local NVMe" {
  style: {
    fill: "#142025"
    stroke: "#50a090"
    stroke-width: 2
    font-color: "#e0e0e0"
    font-size: 24
    bold: true
    border-radius: 0
  }
  latency: "~ms" {
    shape: text
    style: {
      font-size: 18
      font-color: "#50a090"
    }
  }
  cap: "TBs per node" {
    shape: text
    style: {
      font-size: 14
      font-color: "#8a8a8a"
      italic: true
    }
  }
}

remote: "Remote Storage (NIXL)" {
  style: {
    fill: "#201810"
    stroke: "#c08050"
    stroke-width: 2
    font-color: "#e0e0e0"
    font-size: 24
    bold: true
    border-radius: 0
  }
  latency: "~ms (RDMA)" {
    shape: text
    style: {
      font-size: 18
      font-color: "#c08050"
    }
  }
  cap: "Cluster-wide, shared" {
    shape: text
    style: {
      font-size: 14
      font-color: "#8a8a8a"
      italic: true
    }
  }
}

gpu -> cpu: "offload" {
  style: {
    stroke: "#c4a035"
    stroke-width: 2
    font-color: "#c4a035"
    font-size: 18
  }
}

cpu -> nvme: "write-through" {
  style: {
    stroke: "#c4a035"
    stroke-width: 2
    font-color: "#c4a035"
    font-size: 18
  }
}

nvme -> remote: "replicate" {
  style: {
    stroke: "#c4a035"
    stroke-width: 2
    font-color: "#c4a035"
    font-size: 18
  }
}