3 ms·
I love the idea, always have. Does a unikernel application need statically allocated amount of RAM or is there a way to have unikernel-programs allocate memory
by gima 11y ago
I love the idea, always have. Does a unikernel application need statically allocated amount of RAM or is there a way to have unikernel-programs allocate memory dynamically?
Maybe this is where garbage-collected language would be useful.
- delinka 11y agoSeems to me a unikernel app would have access to all the RAM in the system. It is, after all, the kernel itself.
- lbarrow 11y agoYea but the hypervisor has to know how much physical memory to give the unikernel.
- wtallis 11y agoThe way it usually works is that the guest OS gets a certain allocation of RAM and if it doesn't want to use it all it can inform the hypervisor of which ranges don't need physical backing at the moment. From the guest's perspective this is often implemented using a "balloon" process/driver that reserves a large chunk of guest memory in order to return it to the hypervisor. It can also be handled by the guest having a more general memory hotplug capability.
- rdtsc 11y agoLook at a live version of Erlang on Xen. http://erlangonxen.org/ http://erlangonxen.org/ Press ESC on the front page and see the amount of GC ram reclaimed from Erlang's VM. Memory Usage: 12MB -- is also kind of a baffling number.