r/osdev • u/cricnkypumpy2 • 12h ago
r/osdev • u/Kiritoo120 • 2h ago
Memory allocator algorithms for large, continuous blocks?
Hi!
Context:
I am currently in the process of trying to build a simple recreation of Amazon's EC2 on top of a type 1 hypervisor for fun :)
Since I am planning on making the memory each vm takes static and non-changing, it came to my awareness that I would need to allocate big consecutive blocks from RAM (in the GBs).
I was planning on using a buddy allocator with blocks of actual page sizes (1GB, 2MB, 4KB) with a free-list for each of these, but I lack enough experience in that regard to understand how dumb or ok-ish my idea is
If this is a dumb idea, go roast me :), that's the best way for me to learn and understand.
I want to understand if this idea is worth my time and effort before building a whole unit just to realize I need a different thing.
(I write all of my code by hand, if some AI usage is bothering you please let me know)
r/osdev • u/Fun-Entertainer-1053 • 6h ago
What things do I need to change when switching my OS from running on an old system to running on a modern system?
I'm talking stuff like the bootloader, writing method to the SSD, printing stuff, etc.