Skip to content

Commit 41af49d

Browse files
feat: Bump the state size limit to 1 TiB and stable memory limit to 500 GiB (#2465)
1 parent 43739c1 commit 41af49d

20 files changed

+41
-40
lines changed

rs/config/src/execution_environment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::{str::FromStr, time::Duration};
99

1010
const MIB: u64 = 1024 * 1024;
1111
const GIB: u64 = MIB * 1024;
12+
const TIB: u64 = GIB * 1024;
1213

1314
/// This specifies the threshold in bytes at which the subnet memory usage is
1415
/// considered to be high. If this value is greater or equal to the subnet
@@ -21,7 +22,7 @@ const SUBNET_MEMORY_THRESHOLD: NumBytes = NumBytes::new(450 * GIB);
2122
/// Logical storage is the amount of storage being used from the point of view
2223
/// of the canister. The actual storage used by the nodes can be higher as the
2324
/// IC protocol requires storing copies of the canister state.
24-
const SUBNET_MEMORY_CAPACITY: NumBytes = NumBytes::new(700 * GIB);
25+
const SUBNET_MEMORY_CAPACITY: NumBytes = NumBytes::new(TIB);
2526

2627
/// This is the upper limit on how much memory can be used by all guaranteed
2728
/// response canister messages on a given subnet.

rs/embedders/tests/snapshots/instrumentation__app.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ expression: out
195195
i32.sub
196196
)
197197
(memory (;0;) 17)
198-
(memory (;1;) i64 0 6553600)
199-
(memory (;2;) 1600 1600)
198+
(memory (;1;) i64 0 8192000)
199+
(memory (;2;) 2000 2000)
200200
(global (;0;) (mut i64) i64.const 0)
201201
(global (;1;) (mut i64) i64.const 0)
202202
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__app2.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ expression: out
202202
local.get 5
203203
i32.sub
204204
)
205-
(memory (;0;) i64 0 6553600)
206-
(memory (;1;) 1600 1600)
205+
(memory (;0;) i64 0 8192000)
206+
(memory (;1;) 2000 2000)
207207
(global (;0;) (mut i64) i64.const 0)
208208
(global (;1;) (mut i64) i64.const 0)
209209
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__basic.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ expression: out
101101
local.get 5
102102
i32.sub
103103
)
104-
(memory (;0;) i64 0 6553600)
105-
(memory (;1;) 1600 1600)
104+
(memory (;0;) i64 0 8192000)
105+
(memory (;1;) 2000 2000)
106106
(global (;0;) (mut i64) i64.const 0)
107107
(global (;1;) (mut i64) i64.const 0)
108108
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__basic_import.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ expression: out
103103
local.get 5
104104
i32.sub
105105
)
106-
(memory (;0;) i64 0 6553600)
107-
(memory (;1;) 1600 1600)
106+
(memory (;0;) i64 0 8192000)
107+
(memory (;1;) 2000 2000)
108108
(global (;0;) (mut i64) i64.const 0)
109109
(global (;1;) (mut i64) i64.const 0)
110110
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__basic_import_call.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ expression: out
105105
local.get 5
106106
i32.sub
107107
)
108-
(memory (;0;) i64 0 6553600)
109-
(memory (;1;) 1600 1600)
108+
(memory (;0;) i64 0 8192000)
109+
(memory (;1;) 2000 2000)
110110
(global (;0;) (mut i64) i64.const 0)
111111
(global (;1;) (mut i64) i64.const 0)
112112
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__control_flow.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ expression: out
200200
i32.sub
201201
)
202202
(memory (;0;) 1)
203-
(memory (;1;) i64 0 6553600)
204-
(memory (;2;) 1600 1600)
203+
(memory (;1;) i64 0 8192000)
204+
(memory (;2;) 2000 2000)
205205
(global (;0;) (mut i64) i64.const 0)
206206
(global (;1;) (mut i64) i64.const 0)
207207
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__element.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ expression: out
131131
i32.sub
132132
)
133133
(table (;0;) 5 5 funcref)
134-
(memory (;0;) i64 0 6553600)
135-
(memory (;1;) 1600 1600)
134+
(memory (;0;) i64 0 8192000)
135+
(memory (;1;) 2000 2000)
136136
(global (;0;) (mut i64) i64.const 0)
137137
(global (;1;) (mut i64) i64.const 0)
138138
(global (;2;) (mut i64) i64.const 0)

rs/embedders/tests/snapshots/instrumentation__export_mutable_globals.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ expression: out
8686
local.get 5
8787
i32.sub
8888
)
89-
(memory (;0;) i64 0 6553600)
90-
(memory (;1;) 1600 1600)
89+
(memory (;0;) i64 0 8192000)
90+
(memory (;1;) 2000 2000)
9191
(global (;0;) (mut i32) i32.const 0)
9292
(global (;1;) i32 i32.const 1)
9393
(global (;2;) i32 i32.const 2)

rs/embedders/tests/snapshots/instrumentation__fac.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ expression: out
119119
local.get 5
120120
i32.sub
121121
)
122-
(memory (;0;) i64 0 6553600)
123-
(memory (;1;) 1600 1600)
122+
(memory (;0;) i64 0 8192000)
123+
(memory (;1;) 2000 2000)
124124
(global (;0;) (mut i64) i64.const 0)
125125
(global (;1;) (mut i64) i64.const 0)
126126
(global (;2;) (mut i64) i64.const 0)

0 commit comments

Comments
 (0)