Skip to content

Commit

Permalink
increase_reserved_mem
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Nov 25, 2023
1 parent 7f82caf commit c71a926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compute/src/memory/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ mod tests {
#[test]
fn test_reserve_memory_bytes() {
// at least 512 MB
let (reserved, non_reserved) = reserve_memory_bytes(1 << 30);
let (reserved, non_reserved) = reserve_memory_bytes(1536 << 20);
assert_eq!(reserved, 512 << 20);
assert_eq!(non_reserved, 1536 << 20);
assert_eq!(non_reserved, 1024 << 20);

// reserve based on proportion
let (reserved, non_reserved) = reserve_memory_bytes(10 << 30);
Expand Down

0 comments on commit c71a926

Please sign in to comment.