Skip to content

Commit e9f4cf6

Browse files
authored
feat: Increase subnet memory capacity to 2 TiB and subnet memory threshold to 750 GiB (#6086)
This PR increase the subnet memory capacity from 1 TiB to 2 TiB and subnet memory threshold from 450 GiB to 750 GiB.
1 parent 3c6a516 commit e9f4cf6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rs/config/src/execution_environment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const TIB: u64 = GIB * 1024;
1212
/// This specifies the threshold in bytes at which the subnet memory usage is
1313
/// considered to be high. If this value is greater or equal to the subnet
1414
/// capacity, then the subnet is never considered to have high usage.
15-
const SUBNET_MEMORY_THRESHOLD: NumBytes = NumBytes::new(450 * GIB);
15+
const SUBNET_MEMORY_THRESHOLD: NumBytes = NumBytes::new(750 * GIB);
1616

1717
/// This is the upper limit on how much logical storage canisters can request to
1818
/// be store on a given subnet.
1919
///
2020
/// Logical storage is the amount of storage being used from the point of view
2121
/// of the canister. The actual storage used by the nodes can be higher as the
2222
/// IC protocol requires storing copies of the canister state.
23-
const SUBNET_MEMORY_CAPACITY: NumBytes = NumBytes::new(TIB);
23+
const SUBNET_MEMORY_CAPACITY: NumBytes = NumBytes::new(2 * TIB);
2424

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

rs/rust_canisters/canister_creator/test/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ fn install_code_works() {
102102
assert_eq!(result, WasmResult::Reply("null".as_bytes().to_vec()));
103103

104104
// Assert there are 1_001 canisters running with the memory usage below the
105-
// subnet storage capacity, which is currently 1 TiB
105+
// subnet storage capacity, which is currently 2 TiB
106106
assert_eq!(env.num_running_canisters(), 1_001);
107107
assert!(
108-
env.canister_memory_usage_bytes() < 1024 * 1024 * 1024 * 1024,
108+
env.canister_memory_usage_bytes() < 2 * 1024 * 1024 * 1024 * 1024,
109109
"Actual: {} bytes",
110110
env.canister_memory_usage_bytes()
111111
);

0 commit comments

Comments
 (0)