Repository navigation
Expand file tree
/
Copy pathResourceProfiles.json
More file actions
403 lines (403 loc) · 10.7 KB
/
Copy pathResourceProfiles.json
File metadata and controls
403 lines (403 loc) · 10.7 KB
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
{
"default": "balanced",
"status": "finite_initial_policy_native_boundary_and_calibration_observations_recorded",
"core": [
{
"metric": "inputBytes",
"unit": "bytes",
"conservative": 4194304,
"balanced": 33554432,
"offline": 268435456,
"check": "Before each admitted byte; includes whitespace and source retention."
},
{
"metric": "maxDepth",
"unit": "open containers",
"conservative": 64,
"balanced": 128,
"offline": 256,
"check": "Before stack push; scalar root depth 0, root container depth 1."
},
{
"metric": "nodes",
"unit": "values",
"conservative": 100000,
"balanced": 1000000,
"offline": 4000000,
"check": "Before each value; keys are charged separately."
},
{
"metric": "objectMembers",
"unit": "members per object",
"conservative": 20000,
"balanced": 100000,
"offline": 500000,
"check": "Before member insertion; total members also charge nodes/work."
},
{
"metric": "arrayItems",
"unit": "items per array",
"conservative": 100000,
"balanced": 1000000,
"offline": 4000000,
"check": "Before item insertion."
},
{
"metric": "stringBytes",
"unit": "decoded UTF-8 bytes per string",
"conservative": 1048576,
"balanced": 8388608,
"offline": 67108864,
"check": "Before scalar append; excludes object keys."
},
{
"metric": "aggregateTextBytes",
"unit": "decoded UTF-8 bytes",
"conservative": 4194304,
"balanced": 16777216,
"offline": 134217728,
"check": "Sum keys and string values, including retained number lexemes separately in retainedBytes."
},
{
"metric": "keyBytes",
"unit": "decoded UTF-8 bytes per key",
"conservative": 16384,
"balanced": 65536,
"offline": 262144,
"check": "Before key scalar append."
},
{
"metric": "numberDigits",
"unit": "coefficient digits per token",
"conservative": 1024,
"balanced": 4096,
"offline": 16384,
"check": "Before digit append, including zeros before normalization."
},
{
"metric": "numberTokenBytes",
"unit": "ASCII bytes per number",
"conservative": 2048,
"balanced": 8192,
"offline": 32768,
"check": "Before token append; includes exponent spelling."
},
{
"metric": "absoluteExponent",
"unit": "absolute mathematical exponent",
"conservative": 100000,
"balanced": 1000000,
"offline": 10000000,
"check": "Checked magnitude while parsing and after normalization; no dense zero expansion."
},
{
"metric": "retainedBytes",
"unit": "logical live bytes",
"conservative": 16777216,
"balanced": 67108864,
"offline": 536870912,
"check": "Before allocations/reservations in owned state; accounting weights are versioned."
},
{
"metric": "workUnits",
"unit": "primitive operations",
"conservative": 8000000,
"balanced": 64000000,
"offline": 512000000,
"check": "Charge inner loops, traversals, comparisons and copying."
},
{
"metric": "numericWorkUnits",
"unit": "decimal limb operations",
"conservative": 250000,
"balanced": 1000000,
"offline": 8000000,
"check": "Nested within total work, no reset in helpers."
},
{
"metric": "outputBytes",
"unit": "emitted UTF-8 bytes",
"conservative": 4194304,
"balanced": 33554432,
"offline": 268435456,
"check": "Before append or sink handoff; writer also applies value/depth/text limits."
},
{
"metric": "sourceMapEntries",
"unit": "entries",
"conservative": 100000,
"balanced": 1000000,
"offline": 4000000,
"check": "Opt-in only; charge entry and retained source bytes."
},
{
"metric": "issues",
"unit": "records",
"conservative": 32,
"balanced": 128,
"offline": 512,
"check": "Before append; complete output throws on limit rather than silently truncating."
},
{
"metric": "diagnosticBytes",
"unit": "UTF-8 bytes",
"conservative": 65536,
"balanced": 262144,
"offline": 1048576,
"check": "Before message/path/preview growth; no raw instance retained."
},
{
"metric": "cancellationQuantum",
"unit": "charged work units",
"conservative": 1024,
"balanced": 1024,
"offline": 1024,
"check": "At entry, before allocation/suspension, and at most this many charged units between checks."
}
],
"schema": [
{
"metric": "schemaDocuments",
"unit": "documents including root",
"conservative": 16,
"balanced": 128,
"offline": 512
},
{
"metric": "schemaBytes",
"unit": "total admitted resource bytes",
"conservative": 4194304,
"balanced": 33554432,
"offline": 268435456
},
{
"metric": "schemaNodes",
"unit": "nodes across resources",
"conservative": 20000,
"balanced": 100000,
"offline": 1000000
},
{
"metric": "referenceEdges",
"unit": "edges",
"conservative": 20000,
"balanced": 200000,
"offline": 2000000
},
{
"metric": "compileWorkUnits",
"unit": "primitive operations",
"conservative": 4000000,
"balanced": 32000000,
"offline": 256000000
},
{
"metric": "compiledPlanBytes",
"unit": "logical retained bytes",
"conservative": 8388608,
"balanced": 33554432,
"offline": 268435456
},
{
"metric": "evaluationWorkUnits",
"unit": "primitive operations",
"conservative": 2000000,
"balanced": 16000000,
"offline": 128000000
},
{
"metric": "evaluationFrames",
"unit": "active frames including reference/dynamic scopes",
"conservative": 256,
"balanced": 1024,
"offline": 4096
},
{
"metric": "annotationEntries",
"unit": "internal evaluated-location and output entries",
"conservative": 20000,
"balanced": 100000,
"offline": 1000000
},
{
"metric": "annotationBytes",
"unit": "logical retained bytes",
"conservative": 2097152,
"balanced": 8388608,
"offline": 67108864
},
{
"metric": "regexPatternBytes",
"unit": "UTF-8 bytes per pattern",
"conservative": 4096,
"balanced": 16384,
"offline": 65536
},
{
"metric": "aggregateRegexPatternBytes",
"unit": "UTF-8 bytes",
"conservative": 65536,
"balanced": 262144,
"offline": 2097152
},
{
"metric": "regexProgramInstructions",
"unit": "instructions across plan",
"conservative": 20000,
"balanced": 100000,
"offline": 1000000
},
{
"metric": "regexCompileWorkUnits",
"unit": "primitive operations",
"conservative": 250000,
"balanced": 2000000,
"offline": 16000000
},
{
"metric": "regexSearchWorkUnits",
"unit": "primitive operations per search",
"conservative": 100000,
"balanced": 500000,
"offline": 4000000
},
{
"metric": "aggregateRegexWorkUnits",
"unit": "primitive operations per evaluation",
"conservative": 250000,
"balanced": 2000000,
"offline": 16000000
},
{
"metric": "regexRetainedBytes",
"unit": "logical live match state bytes",
"conservative": 2097152,
"balanced": 8388608,
"offline": 67108864
},
{
"metric": "regexCaptureGroups",
"unit": "groups per pattern",
"conservative": 128,
"balanced": 512,
"offline": 2048
}
],
"streaming": [
{
"metric": "chunkBytes",
"unit": "accepted source bytes per chunk",
"conservative": 65536,
"balanced": 262144,
"offline": 1048576
},
{
"metric": "pendingEvents",
"unit": "unconsumed complete events",
"conservative": 1,
"balanced": 1,
"offline": 1
},
{
"metric": "pendingValues",
"unit": "unconsumed complete records",
"conservative": 1,
"balanced": 1,
"offline": 1
},
{
"metric": "totalInputBytes",
"unit": "bytes per iterator lifetime",
"conservative": 268435456,
"balanced": 1073741824,
"offline": 68719476736
},
{
"metric": "totalRecords",
"unit": "records per iterator lifetime",
"conservative": 100000,
"balanced": 1000000,
"offline": 16000000
},
{
"metric": "totalWorkUnits",
"unit": "primitive operations per iterator lifetime",
"conservative": 512000000,
"balanced": 2147483648,
"offline": 137438953472
}
],
"patch": [
{
"metric": "operations",
"unit": "operations",
"conservative": 128,
"balanced": 1024,
"offline": 10000
},
{
"metric": "pointerBytes",
"unit": "UTF-8 bytes per encoded Pointer",
"conservative": 4096,
"balanced": 16384,
"offline": 65536
},
{
"metric": "pointerTokens",
"unit": "tokens per Pointer",
"conservative": 64,
"balanced": 128,
"offline": 256
},
{
"metric": "patchWorkUnits",
"unit": "primitive operations",
"conservative": 2000000,
"balanced": 16000000,
"offline": 128000000
}
],
"units": {
"MiB": 1048576,
"GiB": 1073741824
},
"bound_semantics": "Inclusive; checked addition before growth; overflow is a resource failure; work buckets never reset in helpers.",
"enhancement_limits": [
{
"id": "totalScannedNodes",
"applies_to": "E06 enclosing array document",
"unit": "nodes",
"conservative": 2000000,
"balanced": 16000000,
"offline": 128000000
},
{
"id": "maxReusableBufferBytes",
"applies_to": "E09 iterator scratch remaining at a record boundary",
"unit": "bytes",
"conservative": 524288,
"balanced": 2097152,
"offline": 8388608
}
],
"logical_retained_weights": {
"version": 1,
"unit": "bytes",
"node": 32,
"member": 24,
"array_slot": 16,
"frame": 16,
"source_map_entry": 32,
"index_slot": 32,
"annotation_entry": 32,
"regex_instruction": 16,
"regex_state_record": 32,
"payload": "owned live bytes plus reserved buffer capacity; do not count shared payload twice within one logical graph"
},
"combined_metric_count": 49,
"calibration_evidence": {
"policy": "49 finite initial metrics, logical accounting version 1; no hard RSS/throughput claim",
"verification": "Scripts/ci.py --lane native, public cap probes and inclusive boundary tests",
"ownership_table": "Documentation/Qualification/LimitsMatrix.json"
}
}