Skip to content

Commit 6261f99

Browse files
frame: fix oom on 1G
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent 227d520 commit 6261f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def run_in_emulator(args, iso_path):
451451

452452
qemu_args = ['-cdrom', iso_path,
453453
'-M', 'q35',
454-
'-m', '5G',
454+
'-m', '512M',
455455
'-smp', '5',
456456
'-serial', 'stdio']
457457

src/aero_kernel/src/mem/paging/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl GlobalFrameAllocator {
550550
for j in (0..=i).rev() {
551551
let sizee = BUDDY_SIZE[j];
552552

553-
if remaning >= sizee {
553+
while remaning >= sizee {
554554
self.set_bit(result + (remaning - sizee) + size, j);
555555
remaning -= sizee;
556556
}

0 commit comments

Comments
 (0)