hello,
I am coding an operating system (called Versatile) in C which will be extensible with Erlang.
My idea is to have the kernel running in ring0 and load Erlang VM so that it will be possible to make the OS development in Erlang.
I already coded GDT (with Flat Memory model), IDT, interrupts, exceptions, VGA and keyboard drivers.
Now I'm working on memory management (paging, allocation, free).
I need to define strategies for the memory manager and the scheduler.
I would like to know which memory management strategy (slab allocator, firs fit, best fit) will be the best to execute Erlang Virtual Machine in ring0.
And the threading model: one process with multiple threads or multi-threading?
What do you think?
OS with Erlang VM
OS with Erlang VM
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: OS with Erlang VM
I would recommend a slab allocator, possibly buddy allocation.
I'm all for using alternative languages for OS development. Especially in a microkernel environment where your servers run as normal programs, which you could implement in a high level applications language. e.g. with a bit of runtime support you could have a VFS written in PHP!
I'm all for using alternative languages for OS development. Especially in a microkernel environment where your servers run as normal programs, which you could implement in a high level applications language. e.g. with a bit of runtime support you could have a VFS written in PHP!
My OS is Perception.
- steveklabnik
- Member
- Posts: 72
- Joined: Wed Jan 28, 2009 4:30 pm
Re: OS with Erlang VM
*shudder*MessiahAndrw wrote:e.g. with a bit of runtime support you could have a VFS written in PHP!
I do like the idea of a microkernel with lots of higher-level services. Hmm...
Re: OS with Erlang VM
Ok, thanks, I will go for a slab allocator.
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium