Replies: 3 comments
-
Two questions: Are you compiling in release mode? And are you using hardware assisted virtualization? (eg KVM for qemu) |
Beta Was this translation helpful? Give feedback.
-
Not using KVM and not in release mode. Switching to release mode makes it significantly faster (10 seconds or so). Switching to release mode + kvm (with -accel kvm) makes it even faster (2 seconds or so), but significantly worsens VGA graphics performance (specifically the 640 x 480 x 16 color mode). |
Beta Was this translation helpful? Give feedback.
-
@otisdog8 You could try allocating large (2 MiB) pages (Size2MiB). That should improve performance significantly. |
Beta Was this translation helpful? Give feedback.
-
I'm following the tutorial, and wanted to increase the size of the heap. This is the code for my allocator.rs:
As of right now, I've increased the heap size to be 1 MiB. However, I would like to increase it more, and setting it where I want it (64 MiB) makes the OS take about two minutes to boot. I believe the main cause of the slowdown is the
for page in page_range
, but I'm not sure if that's the actual cause.How can I shorten boot time while still allocating large quantities of memory?
Beta Was this translation helpful? Give feedback.
All reactions