-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmemory_budget.toml.example
More file actions
59 lines (42 loc) · 1.27 KB
/
memory_budget.toml.example
File metadata and controls
59 lines (42 loc) · 1.27 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
# Example Memory Budget Configuration
#
# This file shows how to configure custom memory budgets for Kiln crates.
# Copy this to memory_budget.toml to use custom budgets.
#
# Values can include unit suffixes: KB, MB, GB
# Without a suffix, values are interpreted as bytes.
# Foundation layer - core memory management
"kiln-foundation" = "8MB"
# Runtime layer - execution engine
"kiln-runtime" = "16MB"
# Component Model support
"kiln-component" = "12MB"
# WebAssembly decoding and parsing
"kiln-decoder" = "4MB"
# Format handling and WIT parsing
"kiln-format" = "2MB"
# Host environment integration
"kiln-host" = "4MB"
# Debug and development tools
"kiln-debug" = "2MB"
# Platform abstraction layer
"kiln-platform" = "8MB"
# Instruction execution
"kiln-instructions" = "4MB"
# Logging infrastructure
"kiln-logging" = "1MB"
# Interception and monitoring
"kiln-intercept" = "1MB"
# Panic handling
"kiln-panic" = "512KB"
# Synchronization primitives
"kiln-sync" = "1MB"
# Mathematical operations
"kiln-math" = "512KB"
# Error handling
"kiln-error" = "256KB"
# Helper utilities
# Environment Variables:
# You can also override budgets using environment variables:
# export KILN_BUDGET_KILN_FOUNDATION=10485760 # 10MB in bytes
# export KILN_BUDGET_KILN_RUNTIME=33554432 # 32MB in bytes